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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
roles |
A vector with all role labels. |
var.id |
A vector with the variable names of the DV indicators |
self |
Should self-ratings be included in the analysis (if present in the data set)? |
IGSIM |
Define intragenerational similarity correlations. Must be a list where the levels of actor.id and partner.id are combined, e.g.: |
drop |
In three-member families at least one component has to be dropped. |
err |
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. |
means |
Should the structured means of the SRM factors be calculated? |
diff |
Compare groups with the delta method? |
pairwise |
Compute pairwise comparison of actor and partner means between all roles? Only works when |
groupnames |
Vector with the names of the groups (i.e., the values of the group column in the data set) |
add.variable |
Not yet fully implemented: Add external variables to the model syntax. |
selfmode |
Defines the style how the selfratings are combined with the latent actor and partner effects. If |
noNegVar |
Should variance estimates be constrained to be positive? |
rolesEqual |
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 |
... |
Additional arguments (not documented yet) |
None.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.