inertCoordResids: Produces histograms of the residuals from the...

View source: R/inertCoord.R

inertCoordResidsR Documentation

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

Description

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

Usage

inertCoordResids(prepData, whichModel, printPlots = T)

Arguments

prepData

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

whichModel

Whether the model to be estimated is the inertia only model ("inert"), the coordination only model ("coord"), or the full inertia-coordination model ("inertCoord").

printPlots

If true (the default) plots are displayed on the screen.

Value

A list with the histograms of the residuals for each dyad.

Examples

data <- rties_ExampleDataShort
newData <- dataPrep(basedata=data, dyadId="couple", personId="person", 
obs_name="dial", dist_name="female", time_name="time", time_lag=2)
temp <- newData[newData$dyad < 5, ]
residPlots <- inertCoordResids(prepData=temp, whichModel="inertCoord")


ebmtnprof/rties documentation built on Aug. 25, 2022, 7:47 p.m.