indivInertCoord: Estimates the full "inertia-coordination" model for each...

Description Usage Arguments Value

Description

The observed state variables (with linear trends removed) are predicted from each person's intercept, each person's own observed state variable lagged at the amount specified during the dataPrep step (again with linear trends removed), and each person's partner's concurrent state variable (again with linear trends removed).

Usage

1
indivInertCoord(basedata, dist0name, dist1name, obsName, coVar = NULL)

Arguments

basedata

A dataframe that was produced with the "dataPrep" function.

dist0name

A name for the level-0 of the distinguishing variable (e.g., "Women").

dist1name

A name for the level-1 of the distinguishing variable (e.g., "Men").

obsName

A name for the observed state variables being plotted (e.g., "Emotional Experience").

Value

The function returns a list including: 1) the adjusted R^2 for the model for each dyad (called "R2"), 2) the parameter estimates for the model for each dyad (called "paramData", for use in either predicting, or being predicted by, the system variable), and 3) plots of the predicted values against the observed values for each dyad (called "plots"). The plots are also written to the working directory as a pdf file called "inertCoordPlots.pdf"


ebmtnprof/qid documentation built on May 13, 2019, 6:08 p.m.