simulate_data_re: simulate_data_re

View source: R/simulate_data_re.R

simulate_data_reR Documentation

simulate_data_re

Description

Simulate a 500x500 dataset with 8 true fixed effects, 492 junk variables and a clustered outcome suitable for a 2 level random effects analysis. The strength of association between true variables and the outcome is governed by the error added at level 1 (defined by parameter sd_level_1) and level 2 (sd_level_2).

Arguments

sd_level_1

Standard deviation of level 1 variables

sd_level_2

Standard deviation of level 2 variables

Value

A simulated dataset with a clustered outcome sutable for random effects analysis


stabiliser documentation built on May 31, 2023, 9:10 p.m.