dh.predictLmer | R Documentation |
Currently there is no 'predict' method for lmer models within DataSHIELD. This function replicates this, by calculating predicted values for fixed effects based on the model coefficients. Standard errors are returned for individual cohorts but yet for pooled models.
dh.predictLmer(model = NULL, new_data = NULL, coh_names = NULL, newdata = NULL)
model |
Model object returned by ds.lmerSLMA. |
new_data |
Tibble or data frame containing values for variables in 'model' at which to predict values of the outcome. The column names in 'new_data' must be identical to those in 'model', and all variables included in 'model' must be present in 'new_data'. |
coh_names |
Vector of cohort names. These must be in the order that cohorts were specified in 'model'. |
newdata |
Retired argument name. Please use ‘new_data’ instead. |
Tibble of predicted outcome values based on values provided in 'new_data'.
Other trajectory functions:
dh.lmeMultPoly()
,
dh.makeAgePolys()
,
dh.makeLmerForm()
,
dh.trimPredData()
,
dh.zByGroup()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.