lmhgroups | R Documentation |
This will return three variables detailing whether the participant should be placed in a 'low', 'medium' or 'high' subgroup
lmhgroups(voi, cuts, per = F)
voi |
variable of interest |
cuts |
Two numbers specifying (1) highest value for LOW membership, and (2) lowest value for HIGH membership. Remainder will be placed in MIDDLE group. |
per |
Should VOI be converted to a 'percentage rank' variable? (Default to |
Note that the sum of the three groups will equal the total sample
of non-missing values. Can be used in combination with effectiveN
.
weight for low, medium, and high z-score groups
#create about equal sized subgroups (~33%) if(!) there are no ties in data
xcuts<-lmhgroups(x, cuts = c(1/3,2/3), per = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.