View source: R/scale_group_means.R
scale_group_means | R Documentation |
Scales a vector of means and standard deviations containing group values.
scale_group_means(M, SD, probs=NULL, M_target=0, SD_target=1)
## predict method
predict_scale_group_means(object, M, SD)
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 |
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 |
#############################################################################
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.