getglmmTMBFit: Pulls glmmTMB model results with t and p-vals

View source: R/miscFuncs.R

getglmmTMBFitR Documentation

Pulls glmmTMB model results with t and p-vals

Description

Extracts effect numbers, effect types, effect names, thetas (estimated parameters) and standard errors from a glmmTMB 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

getglmmTMBFit(fitObj, fxNames, alpha = 0.05, tails = 2)

Arguments

fitObj

An RSiena 'sienaFit' object (output from siena07)

fxNames

A character vector the same length as the total number of fixed effects in the model. For the future: These names must be available somewhere, but I can't find them in the fitObj so far, so they have to be entered manually. (This is really fine, though, as usually you would want custom row names in any published table.)

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.

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.