scale_group_means: Scaling of Group Means and Standard Deviations

View source: R/scale_group_means.R

scale_group_meansR Documentation

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)

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

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

Examples

#############################################################################
# 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)

sirt documentation built on May 29, 2024, 8:43 a.m.