makelist_samp: Convert multi-outcome data structure to dataframe for each...

View source: R/simulation.R

makelist_sampR Documentation

Convert multi-outcome data structure to dataframe for each outcome.

Description

Given the simulated multi-outcome structure, make a list of complete (tidy) rectangular datasets, one for each outcome.

Usage

makelist_samp(samp.obs, T.x = NULL, include_POs = FALSE)

Arguments

samp.obs

a single iteration of observed data

T.x

vector of treatment assignments

include_POs

Include columns for the potential outcomes in addition to the observed outcome.

Value

List of dataframes.


MDRCNY/PUMP documentation built on Feb. 26, 2025, 11:22 a.m.