coef.pdSRM: Extract Coefficients from a pdSRM Object

View source: R/coef.pdSRM.R

coef.pdSRMR Documentation

Extract Coefficients from a pdSRM Object

Description

Internal method called by coef.pdMat to extract the three underlying SRM parameters: actor standard deviation, partner standard deviation, and actor-partner correlation.

Usage

## S3 method for class 'pdSRM'
coef(object, unconstrained = TRUE, ...)

Arguments

object

an object inheriting from pdSRM

unconstrained

logical; if TRUE (default) the unconstrained parameterization is returned; if FALSE the three named SRM parameters are returned

...

additional arguments (currently unused)

Value

a named numeric vector with elements std. dev-a, std. dev-p, and corr.

Examples


d <- createDummies(
  group.id = "groupId", act.id = "actId", part.id = "partId",
  d = sampleDyadData[sampleDyadData$timeId == 1, ],
  merge.original = TRUE
)
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 = d,
  na.action = stats::na.omit
)


roundRobinR documentation built on Sept. 18, 2026, 1:06 a.m.