Watts-College / paf-510-template

https://watts-college.github.io/paf-510-template/
0 stars 0 forks source link

Question 1, part 2 #69

Closed ElvisYoh closed 1 month ago

ElvisYoh commented 1 month ago

Hello everyone, I am having difficulties formulating the auxiliary regression model, and my chunk won't render. I proposed a model as PSS = a0 +a1.ND. Please, I need your help to proceed with the assignment. @nickmcmullen @AntJam-Howell

nickmcmullen commented 1 month ago

@ElvisYoh please post a screenshot of your code chunk and the error you're seeing

ElvisYoh commented 1 month ago

Sir, @nickmcmullen, this is the code chunk I am trying to run

# m.auxiliary <- lm( PSS ~ a0 + a1.ND, data=dat )

stargazer( m.auxiliary,  
           type = "html", digits=2,
           dep.var.caption = "DV: PSS",
           omit.stat = c("rsq","f","ser"),
           notes.label = "Standard errors in parentheses")

a1 <- 
B2 <- 
bias <- 
bias
nickmcmullen commented 1 month ago

@ElvisYoh your m.auxiliary is wrong. You should be regressing two existing variables from the data on each other to get alpha1. You already know Beta2. As far as I can tell a0 is not a defined variable, unless you have set it to reference something else in your code. Check back on the lecture materials to see which two variables you need in order to create an auxiliary regression model. The omitted variable bias attachment in M4 lecture materials is a good place to start.

ElvisYoh commented 1 month ago

Thank you Sir! I will review the material.

ElvisYoh commented 1 month ago

@nickmcmullen Sir, do we use use the values of slope in the full model for m.auxiliary ? I have used those values and have some results, but not certain if it is the right way to go.

nickmcmullen commented 1 month ago

@ElvisYoh m.auxiliary is its own model, you don't construct it using coefficients from another model. Coefficients from both m.auxiliary and m.full are required to calculate the bias, if that's what you're asking.

ElvisYoh commented 1 month ago

@AntJam-Howell @nickmcmullen Good day Sir. I am working on the current assignment, but have not received feedback from assignment in module 04.

nickmcmullen commented 1 month ago

@ElvisYoh I'm posting grades for Lab 04 tomorrow. That shouldn't stop you from working on Lab 05 today if you want to

ElvisYoh commented 1 month ago

@nickmcmullen Thank you for the information.