View source: R/auto_stratify.R
fit_prognostic_model | R Documentation |
Given a pilot set and a prognostic formula, return the fitted formula. If the outcome is binary, fit a logistic regression. Otherwise, fit a linear model.
fit_prognostic_model(dat, prognostic_formula, outcome)
dat |
data.frame on which model should be fit |
prognostic_formula |
formula for prognostic model |
outcome |
string giving name of column of data where outcomes are recorded |
a glm or lm object fit from prognostic_formula
on data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.