extract_fit: Extract model output to dataframe

extract_fitR Documentation

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 documentation built on Nov. 17, 2023, 1:09 a.m.