Compute the sample based effect size of the simulated data
Source:R/zzz_VI_MODEL.R
SIMPLE_CUBIC_MODEL-cash-sample_effect_size.Rd
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
.
Examples
mod <- simple_cubic_model(-1, 1, 0.5)
dat <- mod$gen(1000, fit_model = TRUE)
mod$sample_effect_size(dat)
#> [1] 1.360239