estimate_scores: Estimate Prognostic Scores

View source: R/auto_stratify.R

estimate_scoresR Documentation

Estimate Prognostic Scores

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

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


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