Compute the sample based effect size of the simulated data
Source:R/zzz_VI_MODEL.R
POLY_MODEL-cash-sample_effect_size.RdThis function computes the sample based effect size of the simulated data.
Arguments
- dat
Dataframe/List. List contains variable
xandz.- sigma
Positive numeric. Default is
sigma = self$prm$sigma.- include_z
Boolean. Default is
include_z = self$prm$include_z.- shape
Positive integer. Default is
shape = self$prm$shape.- type
Character. Type of the effect size measure. Default is
type = kl.
Examples
mod <- poly_model(4, 0.5)
dat <- mod$gen(1000, fit_model = TRUE)
mod$sample_effect_size(dat)
#> [1] 610.4448