fn.createListData: Create structured data list from input vectors

View source: R/other-functions.R

fn.createListDataR Documentation

Create structured data list from input vectors

Description

Converts raw input vectors into a structured list format used throughout the package

Usage

fn.createListData(S, Z, X, Y = NULL)

Arguments

S

Vector of study memberships (factor or numeric, values 1...J)

Z

Vector of group memberships (factor or numeric, values 1...Z)

X

Covariate matrix (N + p)

Y

Outcome matrix (N + L), optional

Value

Structured list containing:

  • S, Z, X, Y - Original inputs

  • N - Total sample size

  • J - Number of studies

  • K - Number of groups

  • p - Number of covariates

  • Plus all components added by preStage1()


WMAP documentation built on Oct. 6, 2026, 1:07 a.m.