testRCPMM | R Documentation |
Realizes the supremum score test on longdata according to formu.
testRCPMM(
longdata,
formu,
covariate = NULL,
gamma = 0.1,
nbnodes = 5,
nbpert = 500
)
longdata |
A longitudinal dataset containing all variables used in the formula |
formu |
A formula object describing which variables are to be used. The formula has to be of the following form |
covariate |
An eventual covariate dependence of all the parameters in the model. Not implemented yet. |
gamma |
A smoothing parameter for the transition on the changepoint date. 0.1 by default. |
nbnodes |
Number of pseudo-adaptive Gaussian quadrature nodes used to compute the numeric integrals. 5 by default. |
nbpert |
Number of perturbations used to compute the empirical p-value. 500 by default. |
The function returns a list with the computed empirical p-value and the observed test statistic.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.