multiple_iv_reg_h5X: Implements simple multiple-outcome instrumental variables...

View source: R/inspre_h5.R

multiple_iv_reg_h5XR Documentation

Implements simple multiple-outcome instrumental variables regression.

Description

Implements simple multiple-outcome instrumental variables regression.

Usage

multiple_iv_reg_h5X(
  inst_id,
  target,
  X,
  X_control,
  X_ids,
  X_vars,
  vars_to_use = NULL,
  obs_to_use = NULL
)

Arguments

inst_id

String. Id of instrument to calculate outcomes from.

target

String. Target feature of the instrument.

X

H5D. Example: ‘X=hfile[[’X']]' where hfile is an hdf5r object containing a data matrix stored under label 'X'.

X_control

Matrix. features by control observations. Usually pulled from X but stored in memory so you don't have to pull the same control observations off of disk for every instrument.

X_ids

Sequence of strings with length equal to number of columns in X. Entries correspond to the instrument applied to that entry.

X_vars

Sequence of strings with length equal to the number of rows in X. Name of the feature measured in that row.

vars_to_use

Sequence of strings. Entries in X_vars to keep. Default NULL to keep all.


brielin/inspre documentation built on Dec. 3, 2023, 4:55 a.m.