pdSRM: Construct the pdSRM object

Description Usage Arguments Value Examples

Description

This function is used to create the correct structure for the variance/covariance matrix for a full social relations model.

Usage

1
2
3
4
5
6
pdSRM(
  value = numeric(0),
  form = NULL,
  nam = NULL,
  data = sys.frame(sys.parent())
)

Arguments

value

an optional initialization value

form

an optional one-sided linear formula specifying the row/column names for the matrix

nam

an optional vector of character strings specifying the row/column names for the matrix

data

inherited from the surrounding nlme call

Value

a pdMat object representing a positive-definite matrix conforming to the SRM structure

Examples

1
2
3
4
5
6
7
o = nlme::lme(liking ~ 1, random=list(groupId=nlme::pdBlocked(list(nlme::pdIdent(~1),
pdSRM(~-1 + a1 + a2 + a3 + a4 + p1 + p2 + p3 + p4)))),
correlation=nlme::corCompSymm(form=~1 | groupId/pdSRM_dyad_id),
data=
createDummies(group.id="groupId", act.id="actId", part.id="partId",
             d=sampleDyadData[sampleDyadData$timeId==1, ],
               merge.original=TRUE), na.action=na.omit)

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