Skip to contents

This function computes the sample based effect size of the simulated data.

Arguments

dat

Dataframe/List. List contains variable x.

a

Numeric. Default is a = self$prm$a.

b

Numeric. Default is b = self$prm$b.

sigma

Positive numeric. Default is sigma = self$prm$sigma.

Value

A numeric value.

Examples


mod <- simple_cubic_model(-1, 1, 0.5)
dat <- mod$gen(1000, fit_model = TRUE)
mod$sample_effect_size(dat)
#> [1] 1.360239