strucParseFormula: Parse a mixed model formula

Description Usage Arguments Value

Description

Parse a mixed model formula

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
strucParseFormula(formula, data, addArgs = list(), reTrmsList = NULL,
  parList = NULL, ...)

## S3 method for class 'strucParseFormula'
print(x, ...)

## S3 method for class 'strucParseFormula'
model.matrix(object, ...)

## S3 method for class 'strucParseFormula'
simulate(object, nsim = 1, seed = NULL,
  weights = NULL, family = binomial(), ...)

getParTypes(object)

## S3 method for class 'strucParseFormula'
update(object, parList, ...)

Arguments

formula

mixed model formula

data

an object coercible to data frame

addArgs

list of additional arguments to setReTrm methods

reTrmsList

if NULL mkReTrmStructs is used

parList

potential named list of initial parameters

...

additional parameters to as.data.frame

x

strucParseFormula objects

object

strucParseFormula objects

nsim

number of simulations

seed

random seed (see set.seed)

weights

weights for each observation

family

family object

Value

A list with components:

response

The response vector

fixed

The fixed effects model matrix

random

List of random effects terms returned by mkReTrmStructs and updated with setReTrm.

Zt

The sparse transposed random effects model matrix, of class dgCMatrix.

Lambdat

The sparse transposed relative covariance factor, of class dgCMatrix

mapToModMat

function taking the loads parameters and returning the values of the non-zero elements of Zt (i.e. the x slot of Zt)

mapToCovFact

function taking the covar parameters and returning the values of the non-zero elements of Lambdat (i.e. the x slot of Lambdat)

initPars

The initial parameter vector

parInds

List of indices to the different types of parameters.

lower, upper

Vectors of lower and upper bounds on initPars.

devfunEnv

Environment of the deviance function.

formula

Model formula.


stevencarlislewalker/lme4ord documentation built on May 30, 2019, 4:43 p.m.