check_pilot_set_options: Check Pilot set options

Description Usage Arguments Value

View source: R/split_pilot_set.R

Description

Check Pilot set options

Usage

1
2
check_pilot_set_options(pilot_sample, pilot_fraction, group_by_covariates,
  data)

Arguments

pilot_sample

a data.frame of held aside samples for building prognostic score model.

pilot_fraction

numeric between 0 and 1 giving the proportion of controls to be allotted for building the prognostic score (default = 0.1)

group_by_covariates

character vector giving the names of covariates to be grouped by (optional). If specified, the pilot set will be sampled in a stratified manner, so that the composition of the pilot set reflects the composition of the whole data set in terms of these covariates. The specified covariates must be categorical.

data

data.frame with observations as rows, features as columns

Value

nothing


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