# Modeling Interpersonal Dynamics

## Documentation for package ‘rties’ version 5.0.0

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

actorPartnerDataCross | Takes individual cross-sectional data from dyads and turns it into actor-partner format.
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.
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.
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
crossCorPlots | Produces cross-correlation plots of the observed state variable for lags of -+ 20 time steps for each dyad.
dataPrep | Reformat a user-provided dataframe in a generic form appropriate for _rties_ modeling
dyadic | Produces plots for sysVarIn when sysVar is dyadic.
estDerivs | Estimates first and second derivatives of an oberved state variable
histAll | Histograms for all numeric variables in a dataframe.
indiv2profilesCat | Produces plots for sysVarIn when sysVar is categorical and there are 2 profiles
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
indiv3profilesCont | Produces plots for sysVarIn when sysVar is continuous and there are 3 profiles
indiv4profilesCat | Produces plots for sysVarIn when sysVar is categorical and there are 4 profiles
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.
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.
indivInertCoord | Estimates versions of the inertia-coordination model for each dyad.
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.
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.
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.
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.
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.
Max_Min_CCF_Signed | A helper function for makeCrossCorr
plotDataByProfile | Plots of de-trended observed variable over time, with dyads separated into groups based on LPA profile membership.
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.
rties_ExampleDataShort | Data for the function examples.
rties_ExampleData_Demo | Data for demonstrating rties models.
sysVarIn | Provides results for predicting couples' latent profile membership from the system variable.
sysVarInPlots | Produces plots for interpreting the results from sysVarIn.
sysVarInResults | Produces results from sysVarIn.
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.
sysVarOutResults | Produces results from sysVarOut.