Learn R Programming

conquestr (version 1.4.5)

transformPvs: transformPvs

Description

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.

Usage

transformPvs(data, mT = 0, sdT = 1, weights = 1)

Value

a List of transformed PVs with as many elements as PVs were listed in 'x'.

Arguments

data

A data frame or matrix that contains the PVs

mT

The desired mean of the PVs

sdT

The desired sd of the PVs

weights

a vector of weights, the same length as data[1] used to calculate the mean and SD across the PVs