estimate_scores: Estimate Prognostic Scores

Description Usage Arguments Value

View source: R/auto_stratify.R

Description

Tries to make prognostic scores. If successfull, returns them, otherwise throws an error message. Common failure mode is that the prognostic score is built on some categorical variable that takes on some values in the analysis set that are never seen in the pilot set. Outputs are on the response scale, (rather than the linear predictor), so the score is the expected value of the outcome under the control assignement based on the observed covariates.

Usage

1
estimate_scores(prognostic_model, analysis_set)

Arguments

prognostic_model

Model of prognosis

analysis_set

data set on which prognostic scores should be estimated

Value

vector of prognostic scores


raikens1/stratamatch documentation built on Aug. 6, 2020, 7:29 a.m.