fit_prognostic_model: Fit Prognostic Model

View source: R/auto_stratify.R

fit_prognostic_modelR 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


stratamatch documentation built on March 31, 2022, 9:07 a.m.