R/computePval_maxLR.R
computePval_maxLR.Rd
Wrapper function for computing the maxLR corrected p value from strucchange
computePval_maxLR(maxLR, q, covariate, from, to, nrep)
maximum of the LR test statistics
number of free SEM parameters / degrees of freedom
covariate under evaluation. This is important to get the level of measurement from the covariate and the bin size for ordinal and categorical covariates.
numeric from interval (0, 1) specifying start of trimmed sample period. With the default from = 0.15 the first and last 15 percent of observations are trimmed. This is only needed for continuous covariates.
numeric from interval (0, 1) specifying end of trimmed sample period. By default, to is 1.
numeric. Number of replications used for simulating from the asymptotic distribution (passed to efpFunctional). Only needed for ordinal covariates.
Numeric. p value for maximally selected LR statistic