
Sample from an estimated parametric covariate model
Source:R/covar_sim.R
sample_covar_parametric_model.RdSample from an estimated parametric covariate model
Examples
data <- data.table::data.table(
x = rnorm(1e3), y = as.factor(rbinom(1e3, size = 1, prob=0.5))
)
m <- estimate_covar_model_full_cond(data)
samples <- sample_covar_parametric_model(n=10, model = m)
print(head(samples))
#> x y
#> 1 0.5018601 1
#> 2 0.6231961 1
#> 3 1.1595774 1
#> 4 -0.2567582 1
#> 5 0.7674510 1
#> 6 -0.6650931 0