sysVarOutResults: Produces results from sysVarOut.

View source: R/sysVarInOut.R

sysVarOutResultsR Documentation

Produces results from sysVarOut.

Description

Produces results from sysVarOut.

Usage

sysVarOutResults(baseModel, testModel, Gaussian = TRUE)

Arguments

baseModel

The name of the model that was produced by sysVarOut to be used as the null model for comparison (e.g., sysOut$models$base).

testModel

The name of the model that was produced by sysVarOut that you want results for (e.g., sysOut$models$profile, sysOut$models$profilePlusDist, sysOut$models$profileByDist).

Gaussian

Whether the system variable is Gaussian. Default is true.

Value

A list of results including an LRT comparison of the test model to the null, an omnibus anova test for the parameters in the model (this is identical to the LRT test for Gaussian dyadic system variables), a summary of the parameter estimates, and exponentiated parameter estimates (e.g., odds ratios) if Gaussian = FALSE.

Examples

data <- rties_ExampleDataShort
newData <- dataPrep(basedata=data, dyadId="couple", personId="person", 
obs_name="dial", dist_name="female", time_name="time", time_lag=2)
ic <- indivInertCoord(prepData=newData, whichModel="inertCoord")
profiles <- inspectProfiles(whichModel="inertCoord", prepData=newData, 
paramEst=ic$params, n_profiles=2)
fullData <- makeFullData(basedata=data, dyadId="couple", personId="person", 
dist_name="female", lpaData=profiles, params=ic$params)
sysOut <- sysVarOut(fullData=fullData, sysVar_name="conflict", sysVarType="indiv")
sysVarOutResults(baseModel=sysOut$models$base, testModel=sysOut$models$profileByDist)


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