mkStruct {pwr4exp}R Documentation

Building Design Matrices and Covariance Structures for Linear Mixed Models

Description

Constructs design matrices for fixed and random effects, along with variance-covariance structures for random effects (G-side) and residuals (R-side).

Usage

mkStruct(formula, data, corcall)

Arguments

formula

a model formula.

data

a data frame containing the variables used in the model.

corcall

a call object specifying the residual correlation structure. If NULL, an identity matrix is assumed.

Value

A list containing:


[Package pwr4exp version 1.0.0 Index]