stratify_ivregfit: runs ivregfit() on output of stratify_data()

View source: R/stratify_ivregfit.R

stratify_ivregfitR Documentation

runs ivregfit() on output of stratify_data()

Description

This function runs ivregfit() on a stratified data set.

Usage

stratify_ivregfit(
  wdata,
  outcome,
  exposure,
  instrument,
  covariates = NA,
  weights_variable = NA,
  rnt_outcome = FALSE
)

Arguments

wdata

a list objecft from stratify_data() made up of data frames containing necessary data for ivregfit() analysis

outcome

a single string character of the column name for the outcome or dependent or response variable

exposure

a single string character of the column name for the exposure or independent or explanatory variable

instrument

a data frame passed to function containing necessary data for analysis

covariates

a character vector that are also column names used to define variables that will be set as covariates.

weights_variable

a single string character of the column name for a weights variable

rnt_outcome

binary TRUE or FALSE if the dependent or response variable should be rank normal transformed.

Value

returns

Examples

stratify_ivregfit()

hughesevoanth/glsmr documentation built on May 14, 2023, 3:41 p.m.