Learn R Programming

sirt (version 3.12-66)

scale_group_means: Scaling of Group Means and Standard Deviations

Description

Scales a vector of means and standard deviations containing group values.

Usage

scale_group_means(M, SD, probs=NULL, M_target=0, SD_target=1)

## predict method predict_scale_group_means(object, M, SD)

Value

List with entries

M1

total mean

SD1

total standard deviation

M_z

standardized means

SD_z

standardized standard deviations

M_trafo

transformed means

SD_trafo

transformed standard deviations

Arguments

M

Vector of means

SD

Vector of standard deviations

probs

Optional vector containing probabilities

M_target

Target value for mean

SD_target

Target value for standard deviation

object

Fitted object from scale_group_means

Examples

Run this code
#############################################################################
# EXAMPLE 1: Toy example
#############################################################################

M <- c(-.03, .18, -.23, -.15, .29)
SD <- c(.97, 1.13, .77, 1.05, 1.17)
sirt::scale_group_means(M=M, SD=SD)

Run the code above in your browser using DataLab