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

Description Usage Arguments Value Examples

View source: R/inertCoord.R

Description

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

Usage

1
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

1
2
3
4
5
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")

rties documentation built on July 2, 2020, 4:11 a.m.