View source: R/conquestrFunc.R
transformPvs | R Documentation |
Helper function to Transform PVs onto a new metric (e.g., PISA Mean = 500, SD = 100). Uses the method described in the PISA 2012 technical manual.
transformPvs(x, mT = 0, sdT = 1, weights, data, addToDf = FALSE, debug = TRUE)
x |
A concatenated vector of varnames in data, PV1, PV2, ..., PVm. |
mT |
The desired mean of the PVs |
sdT |
The desired sd of the PVs |
weights |
The name of the weight variable in 'data' used to caulculate the mean and SD accross the PVs |
data |
The data frame that contains the PVs and weights. |
addToDf |
A Boolean, if TRUE, the transformed PVs are coerced into the DF, data, with name data$x_T (not yet implmented). |
debug |
A temporary flag to spit-out objects to global env for chekcing. Will be removed when pushed to CRAN |
a List of transofrmed PVs with as many elements as PVs were listed in 'x'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.