extract_fit: Extract model output to dataframe

Description Usage Arguments

Description

Internal function, not usually called directly.

Internal function, not called directly.

Internal function, not called directly.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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 June 11, 2021, 5:17 p.m.