preStage1: Preprocess data for Stage 1 analysis

View source: R/other-functions.R

preStage1R Documentation

Preprocess data for Stage 1 analysis

Description

Creates an index lists and counts for each study-group combination, which are used throughout the weighting calculations

Usage

preStage1(data.local)

Arguments

data.local

List containing S (studies), Z (groups), X (covariates), and metadata

Value

Updated data list with added components:

  • N.sz - Matrix of counts for each study-group combination

  • indx.sz.lst - List of indices for each study-group combination

  • N.z - Total count per group

  • N.s - TOtal count per study

  • which.binary - Indices of binary covariates


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