/
model_get_coefficients_type.Rd
68 lines (57 loc) · 2.02 KB
/
model_get_coefficients_type.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_get_coefficients_type.R
\name{model_get_coefficients_type}
\alias{model_get_coefficients_type}
\alias{model_get_coefficients_type.default}
\alias{model_get_coefficients_type.glm}
\alias{model_get_coefficients_type.geeglm}
\alias{model_get_coefficients_type.glmerMod}
\alias{model_get_coefficients_type.clogit}
\alias{model_get_coefficients_type.polr}
\alias{model_get_coefficients_type.multinom}
\alias{model_get_coefficients_type.clm}
\alias{model_get_coefficients_type.clmm}
\alias{model_get_coefficients_type.coxph}
\title{Get coefficient type}
\usage{
model_get_coefficients_type(model)
\method{model_get_coefficients_type}{default}(model)
\method{model_get_coefficients_type}{glm}(model)
\method{model_get_coefficients_type}{geeglm}(model)
\method{model_get_coefficients_type}{glmerMod}(model)
\method{model_get_coefficients_type}{clogit}(model)
\method{model_get_coefficients_type}{polr}(model)
\method{model_get_coefficients_type}{multinom}(model)
\method{model_get_coefficients_type}{clm}(model)
\method{model_get_coefficients_type}{clmm}(model)
\method{model_get_coefficients_type}{coxph}(model)
}
\arguments{
\item{model}{a model object}
}
\description{
Indicate the type of coefficient among "generic", "logistic",
"poisson" and "prop_hazard".
}
\examples{
lm(hp ~ mpg + factor(cyl), mtcars) \%>\%
model_get_coefficients_type()
Titanic \%>\%
dplyr::as_tibble() \%>\%
dplyr::mutate(Survived = factor(Survived, c("No", "Yes"))) \%>\%
glm(Survived ~ Class + Age * Sex, data = ., weights = .$n, family = binomial) \%>\%
model_get_coefficients_type()
}
\seealso{
Other model_helpers:
\code{\link{model_get_contrasts}()},
\code{\link{model_get_model_frame}()},
\code{\link{model_get_model_matrix}()},
\code{\link{model_get_model}()},
\code{\link{model_get_xlevels}()},
\code{\link{model_identify_variables}()},
\code{\link{model_list_contrasts}()},
\code{\link{model_list_terms_levels}()},
\code{\link{model_list_variables}()}
}
\concept{model_helpers}