gen_sim_lnorm2: Generate lognormal data from a two-condition repeated...

Description Usage Arguments Value

View source: R/gen_sim_lnorm_functions.R

Description

This function takes parameters from a previously fitted model and returns simulated data.

Usage

1
2
3
4
5
6
7
8
gen_sim_lnorm2(
  nitem = 16,
  nsubj = 42,
  beta = NULL,
  Sigma_u = NULL,
  Sigma_w = NULL,
  sigma_e = NULL
)

Arguments

nitem

Number of items, must be divisible by two.

nsubj

Number of subjects, must be divisible by two.

beta

The intercept and slope of the fixed effects.

Sigma_u

The variance-covariance matrix for subject random effects.

Sigma_w

The variance-covariance matrix for item random effects.

sigma_e

The standard deviation of the residuals.

Value

A data frame containing simulated data.


vasishth/lingpsych documentation built on Dec. 23, 2021, 2:11 p.m.