getRSFit: Pulls RSiena model results with t and p-vals

View source: R/miscFuncs.R

getRSFitR Documentation

Pulls RSiena model results with t and p-vals

Description

Extracts effect numbers, effect types, effect names, thetas (estimated parameters) and standard errors from a sientFit object, then calculates t-statistics, one or two-tailed p-values, and (if tails = 2) an alpha-level confidence interval for each effect. The alpha level is also ouput, for later reference.

Usage

getRSFit(fitObj, alpha = 0.05, tails = 2)

Arguments

fitObj

An RSiena 'sienaFit' object (output from siena07)

alpha

A number (Default=.05) to use for creating confidence intervals around the parameter

tails

Numeric: default is 2; enter 1 if 1-tailed pval preferred.

Details

Uses a version of JMLUtils::pValT (pvT) which does not output anything, just calculates 1 or 2-tailed p-vals.

Value

A tibble with 8 columns (if tails = 1) or 10 columns (if tails =2; only in this case are alpha-level CIs calculated and output, as well as alpha itself).


johninpdx/JMLUtils documentation built on Dec. 29, 2024, 1:27 p.m.