indivCloCouple: Estimates a "coupled oscillator" model for each dyad.

Description Usage Arguments Value

Description

The second derivatives of the observed state variables (with linear trends removed) are predicted from each person's own and partner's observed state variables (again with linear trends removed), as well as each person's own and partner's first derivatives of the observed state variables (again with linear trends removed).

Usage

1
2
indivCloCouple(basedata, idConvention, dist0name, dist1name, obsName,
  coVar = FALSE)

Arguments

basedata

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

idConvention

The number that was added to the dist0 partner to get the ID number for the dist1 partner.

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 "cloPlotsCouple.pdf"


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