tab_covariate_coefs: Tabulate coefficients associated with covariates

View source: R/tables_of_coefficients.R

tab_covariate_coefsR Documentation

Tabulate coefficients associated with covariates

Description

This pulls out a table of the coefficients of the covariates only in the model. Confidence intervals are calculated using 'confint'. The function may fail for logistic regression if the MASS package is not installed.

Usage

tab_covariate_coefs(
  model = NULL,
  scale_type = "lp",
  level = 0.95,
  comp_labels,
  part_1 = NULL
)

Arguments

model

Model for which extracting coefficients.

scale_type

Can take value "lp" (linear predictors) or "exp" (exponentiated- relevant for interpretation of logistic and Cox models).

level

The level argument of the confidence intervals. Passed directly to 'stats::confint'.

comp_labels

The labels of the compositional columns.

part_1

Used with ilr-pivot coordinate transformation to specify which should be first part. Passed to alter_order_comp_labels unless NULL.

Value

Table of covariates and their associated coefficients (parameter value with lower and upper confidence interval). Note that, unlike the plotting and some other default model summary functions in R, this uses confidence intervals based on stats::confint.


OxWearables/epicoda documentation built on Dec. 7, 2022, 9:07 p.m.