get_regression_estimates | R Documentation |
This function summarizes the results for multiple types of regression. You can specify the model structure by providing the dataset, outcome and predictors. Alternatively, you can directly provide the fitted model object.
get_regression_estimates(
df = NULL,
outcome = NULL,
predictor_vec = NULL,
outcome_type,
random_slope_var = NULL,
lme_method = "REML",
time_var = NULL,
event_var = NULL,
format = F,
interaction = NULL,
fit = NULL,
weights = NULL,
tobit_upper = NULL,
test_hypo = NULL,
aic = F,
highlight = F,
highlight_p = 0.05
)
df |
A dataframe, optional if you provide fit |
outcome |
A string, the name of the outcome, optional if you provide fit |
predictor_vec |
A character vector of predictors, optional if you provide fit |
outcome_type |
A string, can be one of these options:linear, binary, poisson, ordinal, tobit, normal_gee, binary_gee, poisson_gee, ordinal_gee, lme(random intercept), lme2(random intercept and random slope), logistic_glme, cox |
random_slope_var |
A string, the name of the random slope variable, optional |
lme_method |
A string, can be 'REML' or "ML", default is "REML" |
time_var |
A string, the name of the time variable for cox regression |
event_var |
A string, the name of the event variable for cox regression |
format |
logical, format=T outputs a formatted table, only supported for logistic regression |
interaction |
a character vector of interaction terms, optional if you provide fit |
fit |
A fitted model object, optional if you provide df, outcome and predictor_vec |
weights |
a numeric vector of weights, optional if you provide fit |
tobit_upper |
a number, the upper bound of tobit models, optional if you provide fit |
test_hypo |
a linear hypothesis, only for linear regression |
aic |
logical, aic=T also outputs AIC of the model, only for linear regression |
highlight |
logical, highlight=T highlights p values, default is F |
highlight_p |
a numeric value of the p value cutoff to highlight, default is 0.05 |
A dataframe or a formatted html table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.