fit_prognostic_model function

Fit Prognostic Model

Fit Prognostic Model

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)

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

Returns

a glm or lm object fit from prognostic_formula on data

  • Maintainer: Rachael C. Aikens
  • License: GPL-3
  • Last published: 2022-03-31