buildSRMSyntax: Build lavaan syntax for a Social Relations Model with roles...

Description Usage Arguments Details References

View source: R/buildSRMSyntax.R


Build lavaan syntax for a Social Relations Model with roles ("Family SRM"). This function is called by the fSRM function, but can be also called directly to build an appropriate lavaan syntax.


buildSRMSyntax(roles,, self = FALSE, IGSIM = list(),
  drop = "default", err = "default", means = FALSE, diff = FALSE,
  pairwise = FALSE, groupnames = NULL, add.variable = c(),
  selfmode = "cor", noNegVar = FALSE, rolesEqual = FALSE, ...)



A vector with all role labels.

A vector with the variable names of the DV indicators


Should self-ratings be included in the analysis (if present in the data set)?


Define intragenerational similarity correlations. Must be a list where the levels of and are combined, e.g.: IGSIM=list(c("m", "f"), c("c", "y")). Here "m"other and "f"ather are defined as one generation, and "y"ounger and "o"lder as the other generation.


In three-member families at least one component has to be dropped. drop defines which one: "none": drop nothing; "family" - drop family effect; "GR" - drop generalized reciprocities; "actor" - drop actor factors and actor-partner covariances; "partner" - drop partner effects and actor-partner covariances; "default": drop nothing in >= 4 members and drop family effect with 3 members. Although usually not necessary, the drop parameter can also be applied to >= 4 member families.


Defines the type of correlations between error terms. err = "no": no error term correlations - this is the required mode for single indicators. err = "all": If multiple indicators are present, correlate same items BETWEEN raters (e.g., Dyadic Data Analysis, Kenny, Kashy, & Cook, 2000). err = "default": Set err to "no" for single indicators and to "all" for multiple indicators.


Should the structured means of the SRM factors be calculated?


Compare groups with the delta method?


Compute pairwise comparison of actor and partner means between all roles? Only works when means is also set to TRUE


Vector with the names of the groups (i.e., the values of the group column in the data set)


Not yet fully implemented: Add external variables to the model syntax.


Defines the style how the selfratings are combined with the latent actor and partner effects. If selfmode="cor" they are correlated (as in REFERENCE), if selfmode="kq" the k and q paths are calculated (see Kenny & West, 2010)


Should variance estimates be constrained to be positive?


Maximal constraints: Do roles matter at all? If this parameter is set to TRUE, it is a model with no mean difference, the actor variances equal, partner variances equal, relationship variances equal, and the respective reciprocities equal (Thanks to a suggestion of David Kenny). Model comparisons via anova can show whether roles matter at all.


Additional arguments (not documented yet)




Kenny, D. A., & West, T. V. (2010). Similarity and Agreement in Self-and Other Perception: A Meta-Analysis. Personality and Social Psychology Review, 14(2), 196-213. doi:10.1177/1088868309353414

fSRM documentation built on May 30, 2017, 8:18 a.m.