srmRun: Run the Social Relations Model using Multilevel Modeling

Description Usage Arguments Value Examples

View source: R/srmRun.R

Description

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.

Usage

1
srmRun(dv, groupId, actId, partId, feVars = NULL, data)

Arguments

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

Value

a list with two items:

Examples

1
2
3
o = srmRun(dv="liking", groupId="groupId", actId="actId", partId="partId",
feVars=c("actEx", "partEx", "contact"),
data=sampleDyadData[sampleDyadData$timeId==1, ])

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