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


raikens1/BigMatch documentation built on April 1, 2022, 9:47 p.m.