corMatrix.pdSRM: Extract Correlation Matrix from a 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. The correlation matrix corresponding to the positive-definite matrix represented by object is obtained.

Usage

1
2
## S3 method for class 'pdSRM'
corMatrix(object, ...)

Arguments

object

an object inheriting from pdSRM

...

some methods for this require additional arguments

Value

the correlation matrix corresponding to the positive-definite matrix represented by object

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.