calc_inst_effect_h5X: Calculates correlation and standard error of instrument with...

View source: R/inspre_h5.R

calc_inst_effect_h5XR Documentation

Calculates correlation and standard error of instrument with target feature.

Description

Calculates correlation and standard error of instrument with target feature.

Usage

calc_inst_effect_h5X(inst_id, target, X, X_control, X_ids, X_vars)

Arguments

inst_id

String. Id of instrumental 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.


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