Compute the sample baased effect size of the simulated data
Source:R/zzz_VI_MODEL.R
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
andz
.- a
Numeric. Default is
a = self$prm$a
.- b
Numeric. Default is
b = self$prm$b
.- c
Numeric. Default is
c = self$prm$c
.- sigma
Positive numeric. Default is
sigma = self$prm$sigma
.
Examples
mod <- cubic_model(-1, 1, 1, 0.5)
dat <- mod$gen(1000, fit_model = TRUE)
mod$sample_effect_size(dat)
#> [1] 3.776623