destandardize: Destandardize effect sizes (r)

Description Usage Arguments Examples

View source: R/destandardize.r

Description

This function allows to destandarize (or vice versa: standardize) an effect size (Pearson's r or a typical Beta-coefficient) using the standard deviations of the independent and dependent variable.

Usage

1
destandardize(b = NULL, Beta = NULL, sd_x, sd_y)

Arguments

b

The unstandarized effect size.

Beta

The standardized effect size.

sd_x

The standard deviation of the independent variable.

sd_y

The standard deviation of the dependent variable.

Examples

1
2
3
4
x <- rnorm(100, 2, 1)
y <- 2*x + rnorm(100, 0, 1)

destandardize(Beta = .1, sd_x = sd(x), sd_y = sd(y))

masurp/pmstats documentation built on Oct. 6, 2020, 9:24 p.m.