gen_fake_lnorm2x2x2: Generate lognormal data from an eight-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
9
gen_fake_lnorm2x2x2(
  ncond = 8,
  nitem = NULL,
  nsubj = NULL,
  beta = NULL,
  Sigma_u = NULL,
  Sigma_w = NULL,
  sigma_e = NULL
)

Arguments

ncond

Number of conditions (eight).

nitem

Number of items, must be divisible by eight.

nsubj

Number of subjects, must be divisible by eight.

beta

The intercept and slopes 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.