Description Usage Arguments Details Value Examples
Stratifies the popultion.
1  | ps.stratify(data, n = 5)
 | 
data | 
 Data Frame - containing the dataset with previously calculated PS. The data frame must contain propensity scores in a variable called 'ps_values'.  | 
n | 
 Number of strata to divide the dataset into (default 5)  | 
This function stratifies a popultion based on an estimated propensity score. The stratum of each subject is added to the dataset as a categorical value.
Vector - containing the categorical strata number for each subject
1 2 3 4 5  | ## Not run: 
ps.stratify(myData)
ps.stratify(myData, n = 10)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.