delfplot function

Plot graph of function delta=f(Rmax)

Plot graph of function delta=f(Rmax)

delfplot(parameters)

Arguments

  • parameters: A vector of parameters that is generated after estimating the short, intermediate and auxiliary regressions.

Returns

A plot object created with ggplot

Examples

## Load data set data("NLSY_IQ") ## Set age and race as factor variables NLSY_IQ$age <- factor(NLSY_IQ$age) NLSY_IQ$race <- factor(NLSY_IQ$race) ## Collect parameters from the short, intermediate and auxiliary regressions parameters <- collect_par( data = NLSY_IQ, outcome = "iq_std", treatment = "BF_months", control = c("age","sex","income","motherAge","motherEDU","mom_married","race"), other_regressors = c("sex","age")) ## Set limits for the bounded box Rlow <- parameters$Rtilde Rhigh <- 0.61 deltalow <- 0.01 deltahigh <- 0.99 e <- 0.01 ## Oster's method: Plot of delta = f(Rmax) p4 <- delfplot(parameters = parameters) print(p4)
  • Maintainer: Deepankar Basu
  • License: MIT + file LICENSE
  • Last published: 2022-03-28