pred_se: Prediction and Standard errors for models

Description Usage Arguments Value

Description

Create point predictions and their standard errors for a list of models and newdata data frames. Predictions are specific to merMod-class objects and specific to this project.

Usage

1
2
3
pred_se(obj.list, newdata.list, allow.new.levels = rep(TRUE, 3), trans.func,
  alpha = 0.05, R.slope = rep("none", 3), title = rep(FALSE, 3),
  level3 = rep(FALSE, 3), usa = rep(FALSE, 3))

Arguments

obj.list

A list of model objects of class merMod-class

newdata.list

A list of newdata data.frames matching the models above on which predictions are desired

allow.new.levels

Logical. Should new random effects levels be allowed? Defaults to TRUE

trans.func

A list of reverse transformation functions.

alpha

A numeric scalar. The signigance level desired for Standard Errors. Defaults to 0.05

R.slope

A character vector denoting the random slopes of the models. In c("none", "xmas", "mf_day", "both")

title

A logical vector denoting if the level-2 grouping variable is at the 'title' level. Defaults to FALSE

level3

A logical vector denoting if the models are 3-level models. Defaults to FALSE

Value

A list of predictions and standard errors for each dataset / model.


alexWhitworth/concord documentation built on May 11, 2019, 11:25 p.m.