Description Usage Arguments Value Author(s) See Also Examples
This function is in an experimental status.
The mplm
function computes a multivariate piecewise regression model.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
data |
A single-case data frame. See |
dvar |
Character string with the name of the dependent variable. Defaults to the attributes in the scdf file. |
mvar |
Character string with the name of the measurement time variable. Defaults to the attributes in the scdf file. |
pvar |
Character string with the name of the phase variable. Defaults to the attributes in the scdf file. |
model |
Model used for calculating the slope parameter (see Huitema &
McKean, 2000). Default is |
trend |
A logical indicating if a trend parameters is included in the model. |
level |
A logical indicating if a level parameters is included in the model. |
slope |
A logical indicating if a slope parameters is included in the model. |
formula |
Defaults to the standard piecewise regression model. The parameter phase followed by the phase name (e.g., phaseB) indicates the level effect of the corresponding phase. The parameter 'inter' followed by the phase name (e.g., interB) adresses the slope effect based on the method provide in the model argument (e.g., "B&L-B"). The formula can be changed for example to include further variables into the regression model. |
update |
An easier way to change the regression formula (e.g., . ~ . + newvariable). |
na.action |
Defines how to deal with missing values |
... |
Further arguments passed to the lm function. |
model |
Character string from function call (see
|
full.model |
Full regression model list |
Juergen Wilbert
Other regression functions:
corrected_tauSC()
,
hplm()
,
plm()
1 2 | ##
mplm(exampleAB_add, dvar = c("wellbeing", "depression"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.