mkNewReTrms: Utility function to make RE terms objects

View source: R/helpers.R

mkNewReTrmsR Documentation

Utility function to make RE terms objects

Description

Utility function to make RE terms objects

Usage

mkNewReTrms(
  object,
  newdata,
  re.form = NULL,
  na.action = na.pass,
  allow.new.levels = FALSE
)

Arguments

object

a model object

newdata

a data.frame to build RE terms for

re.form

a random effect formula to simulate, generated by reOnly

na.action

an object describing how NA values should be handled in newdata

allow.new.levels

logical, should new levels be allowed in factor variables

Value

a random effect terms object for a merMod


merTools documentation built on March 31, 2023, 8:43 p.m.