getmf: Produce fixed and random effects design matrices from single...

Description Usage Arguments Value Note Author(s) See Also

View source: R/getmf.R

Description

An internal function to dpgrow and dpgrowmm

Usage

1
getmf(formula, random.only, data, na.action)

Arguments

formula

A formula of format y ~ x_1 + x_2*x_3 | z_1*z_2 where | separates fixed (to the left of |) and random effects.

random.only

A boolean scalar used in the case that either fixed or random effects are entered in formula, but not both, which case the | is not entered (e.g. y ~ x_1 + x_2*x_3 . Then, if random.only == TRUE the variables on the right-hand side are interpreted to be random effects; otherwise fixed for use in dpgrow and dpgrowmm.

data

Associated data.frame containing names variables in formula

na.action

Should be left blank for use in dpgrow and dpgrowmm, where is automatically set to na.fail.

Value

res A list object containing list(y = y, x = x, z = z, m = m, mf = mf).

Note

Intended as an internal function for dpgrow and dpgrowmm

Author(s)

Terrance Savitsky tds151@gmail.com

See Also

dpgrow dpgrowmm


growcurves documentation built on May 2, 2019, 7:03 a.m.