I have two non-parametric plots. I am told to:
"Try to produce something similar to Figure 3, Panel A of the published article. That is, take the difference between these two non-parametric plots, and plot them out. I think you will need to calculate the difference based on a grid of X-values of the 2000 test score (the x variable) and calculate the conditional expectation of the Y-value. Then graph these in a connected line). Note, you probably won’t be able to exactly replicate their results because you are using a nonparametric kernel regression whereas they use a fan locally weighted regression. Try to get as close as you can. To get a confidence interval on this graph, bootstrap using the following procedure: one: draw a bootstrap sample from the pooled (treatment and control) distribution two: estimate the regression for the treatment group three: estimate the regression for the control group four: Estimate the difference for each of the grid points of x-values, and save this. Five: Repeat until you estimate the standard error at each point on the graph: then graph the confidence intervals."
I don't have any idea how ot being at this. Can someone help? I am trying to imitate the following graph:
"Try to produce something similar to Figure 3, Panel A of the published article. That is, take the difference between these two non-parametric plots, and plot them out. I think you will need to calculate the difference based on a grid of X-values of the 2000 test score (the x variable) and calculate the conditional expectation of the Y-value. Then graph these in a connected line). Note, you probably won’t be able to exactly replicate their results because you are using a nonparametric kernel regression whereas they use a fan locally weighted regression. Try to get as close as you can. To get a confidence interval on this graph, bootstrap using the following procedure: one: draw a bootstrap sample from the pooled (treatment and control) distribution two: estimate the regression for the treatment group three: estimate the regression for the control group four: Estimate the difference for each of the grid points of x-values, and save this. Five: Repeat until you estimate the standard error at each point on the graph: then graph the confidence intervals."
I don't have any idea how ot being at this. Can someone help? I am trying to imitate the following graph:
Comment