remakeRandomData: remakeRandomData

Description Usage Arguments Value

Description

Given an object output by makeRandomData, make another data set with the same distribution.

Usage

1
remakeRandomData(n, object, setA = NULL, setW = NULL, ...)

Arguments

n

A numeric sample size

object

An object of class "makeRandomData"

setA

Value(s) to set treatment variable to. If NULL then treatment is simulated according to observed data functions. If length(A)==1 then all values are set to this single value. Otherwise, if A is a vector of length n, A is set according to this vector.

setW

A matrix of proper size with values of covariates set to fixed levels. Useful for plotting methods. Assumes proper dimensions. If NULL simulates W according to distributions.

Value

An object of class "makeRandomData" with the following entries

W

A matrix of covariates

A

A vector of binary treatments

Y

A vector of continuously valued outcome

distW

A list containing relevant information needed to reproduce data sets

fnG0

A list of lists containing relevant information needed to reproduce data sets

fnQ0

A list of lists containing relevant information needed to reproduce data sets

distErrY

A list containing relevant information needed to reproduce data sets


benkeser/haltmle.sim documentation built on May 12, 2019, noon