Description Usage Arguments Details
To provide SEMA with good starting values, it might help to use the first part of the data as a training set.
1 2 3 4 |
data |
A data frame |
id |
Integer, indicating in which column the grouping variable can be found. |
y |
Integer, indicating in which column the dependent variable can be found. |
start.fixed |
This is optional if the user wants to provide start values of the fixed effects, if no start values are provided, 0 is used. NOTE, if start values are provided make sure that the length of the vector of start values matches the number of fixed effects. |
start.random |
This is optional if the user wants to provide a start values of the variance of the random effects covariates, default start value is 1. NOTE, if start values are provided make sure that the length of the vector of start values matches the number of random effects. |
data.random |
A vector with indexes of the variables treated as random. |
start.cor |
Start value for correlation between the random effects. |
start.res |
This is optional if the user wants to provide a start value of the residual variance, default start value is 1. |
max.iter |
Integer, maximum number of iterations for EM algorithm. |
crit.value |
A threshold or stopping criterion, if the maximum change in parameter values from one iteration to the next is less than this value, the algorithm stops. |
This function fits the multilevel models offline to a small part of the data set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.