Description Usage Arguments Value Examples
This function is used to create the correct structure for the variance/covariance matrix for a full social relations model.
1 2 3 4 5 6 |
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 |
a pdMat object representing a positive-definite matrix conforming to the SRM structure
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.