Description Usage Arguments Value Examples
This is a wrapper function to efficiently run the social relations model with a basic directed dyad-level dataset. The function will create the necessary dummy variables and build out the correct formula for lme.
1 |
dv |
string giving the name of the directed dyadic criterion variable |
groupId |
string giving the name of the group identifier variable |
actId |
string giving the name of the actor identifier variable |
partId |
string giving the name of the partner identifier variable |
feVars |
vector containing the names of fixed effect variables |
data |
data.frame at the directed dyad level |
a list with two items:
lme.output is the full lme output object
srm.output is the variance decomposition with reciprocity correlations
1 2 3 | o = srmRun(dv="liking", groupId="groupId", actId="actId", partId="partId",
feVars=c("actEx", "partEx", "contact"),
data=sampleDyadData[sampleDyadData$timeId==1, ])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.