simulate_Mix: Function simulating the observations under a simple LMM

View source: R/simulate.R

simulate_MixR Documentation

Function simulating the observations under a simple LMM

Description

This function creates observations under LMM.

Usage

simulate_Mix(
  intercept = 50,
  slope = 1.5,
  n = 30,
  group_nb = 10,
  var.rand = 2,
  var.error = 0.5
)

Arguments

intercept

the value for the intercept

slope

the value for the slope

n

the sample size

group_nb

the number of levels for the random effect

var.rand

the variance of the random effect

var.error

the residual error variance

Value

a data.frame containing the simulated data

Examples

simulate_Mix()


courtiol/LM2GLMM documentation built on July 3, 2022, 7:42 a.m.