Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extract_fit

Extract model output to dataframe


Description

Internal function, not usually called directly.

Internal function, not called directly.

Internal function, not called directly.

Usage

extract_fit(...)

## S3 method for class 'glm'
extract_fit(.data, explanatory_name = "explanatory",
  estimate_name = "OR", estimate_suffix = "", p_name = "p",
  exp = TRUE, confint_type = "profile", confint_level = 0.95, ...)

## S3 method for class 'glmerMod'
extract_fit(.data, explanatory_name = "explanatory",
  estimate_name = "OR", estimate_suffix = "", p_name = "p",
  exp = TRUE, confint_type = "Wald", confint_level = 0.95, ...)

## S3 method for class 'lm'
extract_fit(.data, explanatory_name = "explanatory",
  estimate_name = "Coefficient", estimate_suffix = "", p_name = "p",
  confint_level = 0.95, ...)

## S3 method for class 'lmerMod'
extract_fit(.data, explanatory_name = "explanatory",
  estimate_name = "OR", estimate_suffix = "", p_name = "p",
  confint_type = "Wald", confint_level = 0.95, ...)

## S3 method for class 'coxph'
extract_fit(.data, explanatory_name = "explanatory",
  estimate_name = "HR", estimate_suffix = "", p_name = "p", ...)

## S3 method for class 'crr'
extract_fit(.data, explanatory_name = "explanatory",
  estimate_name = "HR", estimate_suffix = "", p_name = "p", ...)

## S3 method for class 'coxme'
extract_fit(.data, explanatory_name = "explanatory",
  estimate_name = "HR", estimate_suffix = "", p_name = "p",
  confint_level = 0.95, ...)

## S3 method for class 'stanfit'
extract_fit(.data, explanatory_name = "explanatory",
  estimate_name = "OR", estimate_suffix = "", p_name = "p",
  digits = c(2, 2, 3), X, ...)

Arguments

...

Other arguments.

.data

Model output.

explanatory_name

Name for this column in output.

estimate_name

Name for this column in output.

estimate_suffix

Appeneded to estimate name.

p_name

Name given to p-value estimate

confint_type

One of c("profile", "default") for GLM models or c("profile", "Wald", "boot") for glmer/lmer models. Not implemented for lm, coxph or coxphlist.

confint_level

The confidence level required.

X

Design matrix from Stan modelling procedure.


finalfit

Quickly Create Elegant Regression Results Tables and Plots when Modelling

v1.0.2
MIT + file LICENCE
Authors
Ewen Harrison [aut, cre], Tom Drake [aut], Riinu Ots [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.