pdConstruct.pdSRM: Construct pdSRM Object

Description Usage Arguments Value Examples

Description

This function is used internally as part of the construction of the pdSRM object that will fit the appropriate structure for the SRM.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'pdSRM'
pdConstruct(
  object,
  value = numeric(0),
  form = stats::formula(object),
  nam = nlme::Names(object),
  data = sys.frame(sys.parent()),
  ...
)

Arguments

object

an object inheriting from pdSRM

value

an optional initialization value

form

an optional one-sided linear formula

nam

an optional vector of character strings

data

an optional data frame in which to evaluate the variables

...

optional arguments for some methods

Value

a pdSRM object representing a positive-definite matrix

Examples

1
2
3
4
5
6
7
## Not run: 
o = lme(liking ~ 1, random=list(groupId=pdBlocked(list(pdIdent(~1),
pdSRM(~-1 + a1 + a2 + a3 + a4 + p1 + p2 + p3 + p4)))),
correlation=corCompSymm(form=~1 | groupId/pdSRM_dyad_id),
data=d, na.action=na.omit)

## End(Not run)

andrewpknight/roundRobinR documentation built on Dec. 19, 2021, 3:34 a.m.