Skip to contents

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

Arguments

dat

Dataframe/List. List contains variable x and z.

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.

Value

A numeric value.

Examples


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