Learn R Programming

rties (version 5.0.0)

Modeling Interpersonal Dynamics

Description

The name of this package grew out of our research on temporal interpersonal emotion systems (TIES), hence 'rties'. It provides tools for using a set of models to investigate temporal processes in bivariate (e.g., dyadic) systems. The general approach is to model, one dyad at a time, the dynamics of a variable that is assessed repeatedly from both partners, extract the parameter estimates for each dyad, and then use those parameter estimates as input to a latent profile analysis to extract groups of dyads with qualitatively distinct dynamics. Finally, the profile memberships can be used to either predict, or be predicted by, another variable of interest. Currently, 2 models are supported: 1) inertia-coordination, and 2) a coupled-oscillator. Extended documentation is provided in vignettes. Theoretical background can be found in Butler (2011) and Butler & Barnard (2019) .

Copy Link

Version

Install

install.packages('rties')

Monthly Downloads

21

Version

5.0.0

License

GPL-3

Maintainer

Emily Butler

Last Published

May 11th, 2020

Functions in rties (5.0.0)

indivInertCoordCompare

Compares model fit for the inertia-only, coordination-only and full inertia-coordination model for each dyad's state trajectories using an R-square comparison.
indivInertCoord

Estimates versions of the inertia-coordination model for each dyad.
actorPartnerDataTime

Takes individual repeated measures data from dyads and turns it into actor-partner format.
autoCorPlots

Produces auto-correlation plots of the observed state variable for lags of -+ 20 time steps for each dyad.
sysVarIn

Provides results for predicting couples' latent profile membership from the system variable.
rties_ExampleData_Demo

Data for demonstrating rties models.
indiv4profilesCont

Produces plots for sysVarIn when sysVar is continuous and there are 4 profiles
indivClo

Estimates either an uncoupled or coupled oscillator model for each dyad.
indivInertCoordPlots

Produces plots of the inertia-coordination model-predicted trajectories overlaid on raw data for each dyad.
inertCoordPlotTraj

Plots the bivariate state variables' model-predicted temporal trajectories for each latent profile of inertia-coordination parameters.
makeFullData

Combines profile membership data from the latent profile analysis with other data for using the profile membership to predict and be predicted by the system variable.
plotDataByProfile

Plots of de-trended observed variable over time, with dyads separated into groups based on LPA profile membership.
sysVarOutResults

Produces results from sysVarOut.
cloCoupledOde

Provides the equation for a coupled oscillator model for the differential equation solver (ode) to plot
cloPlotTraj

Plots the bivariate state variable's clo model-predicted temporal trajectories for each latent profile of clo parameters.
dataPrep

Reformat a user-provided dataframe in a generic form appropriate for rties modeling
crossCorPlots

Produces cross-correlation plots of the observed state variable for lags of -+ 20 time steps for each dyad.
indiv4profilesCat

Produces plots for sysVarIn when sysVar is categorical and there are 4 profiles
indiv3profilesCont

Produces plots for sysVarIn when sysVar is continuous and there are 3 profiles
Max_Min_CCF_Signed

A helper function for makeCrossCorr
actorPartnerDataCross

Takes individual cross-sectional data from dyads and turns it into actor-partner format.
indiv2profilesCont

Produces plots for sysVarIn when sysVar is continuous and there are 2 profiles
indiv3profilesCat

Produces plots for sysVarIn when sysVar is categorical and there are 3 profiles
estDerivs

Estimates first and second derivatives of an oberved state variable
dyadic

Produces plots for sysVarIn when sysVar is dyadic.
makeCrossCorr

Calculates cross-correlations for a given variable and returns a dataframe with the largest absolute cross-correlation and its lag added for each dyad (e.g., it returns either the most negative or most positive cross-correlation, whichever is larger in absolute terms).
makeDist

Create a distinguishing variable (called "dist") for non-distinguishable dyads by assigning the partner who is lower on a chosen variable a 0 and the partner who is higher on the variable a 1.
inertCoordResids

Produces histograms of the residuals from the inertia-coordination model for each dyad.
inspectProfiles

Provides information to help decide how many profiles to use for subsequent rties analyses.
rties_ExampleDataShort

Data for the function examples.
plotRaw

Plots of observed variable over time by dyad.
removeDyads

Remove data for specified dyads from a dataframe
rties_ExampleDataFull

Data for examples in the vignettes.
sysVarOut

Provides results for predicting the system variable from the latent profiles of the dynamic parameters.
sysVarOutPlots

Produces plots for interpreting the results from sysVarIn.
indivCloCompare

Compares model fit for the uncoupled and coupled oscillator for each dyad's state trajectories using an R-square comparison.
indivCloPlots

Produces plots of either an uncoupled or coupled oscillator model-predicted trajectories overlaid on raw data for each dyad.
sysVarInPlots

Produces plots for interpreting the results from sysVarIn.
sysVarInResults

Produces results from sysVarIn.
histAll

Histograms for all numeric variables in a dataframe.
indiv2profilesCat

Produces plots for sysVarIn when sysVar is categorical and there are 2 profiles
cloResids

Produces histograms of the residuals from the oscillator model for each dyad.
cloUncoupledOde

Provides the equation for an un-coupled oscillator model for the differential equation solver (ode) to plot