fit_prognostic_model {stratamatch} | R Documentation |
Fit Prognostic Model
Description
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.
Usage
fit_prognostic_model(dat, prognostic_formula, outcome)
Arguments
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 |
Value
a glm or lm object fit from prognostic_formula
on data
[Package stratamatch version 0.1.9 Index]