stratify_data: stratify data

View source: R/stratify_data.R

stratify_dataR Documentation

stratify data

Description

This function stratifies the working data set into either quantiles or user defined bins

Usage

stratify_data(wdata, stratify_on, strata = 4)

Arguments

wdata

a data frame passed to function containing necessary data for analysis

stratify_on

column name to identify the variable to stratify on

strata

a string or vector to define how strata should be defined.Defaulted to 4 bins or quartiles.

Value

returns

Examples

stratify_data()

hughesevoanth/glsmr documentation built on May 14, 2023, 3:41 p.m.