Watts-College / cpp-523-fall-2021

https://watts-college.github.io/cpp-523-fall-2021/
1 stars 3 forks source link

CSE/RSE #10

Open danafuller opened 2 years ago

danafuller commented 2 years ago

Can someone tell me where to get the information to answer question 2 Part 1 and Part 4? I do not see any code in R that would indicate a graph/table nor do I see any reference to either of those variables in our lab besides those specific questions. What am I missing?

Schlinkert commented 2 years ago

Hi Dana, I am going to put you in touch with another student who had a similar question, so she can show you.

ajhopki2 commented 2 years ago

@danafuller I had a similar question about this, were you given information that helped you clarify your issue??

danafuller commented 2 years ago

Not yet, but Dr. Schlinkert put me in touch with another student who had a somilar question that he worked with and asked her if she would be willing to help me. We are doing a zoom at 2pm today. Reach out to me at @.*** and I can forward you the link. If you can't I will post here after I get some clarity.

On Wed, Sep 15, 2021, 10:52 PM ajhopki2 @.***> wrote:

@danafuller https://urldefense.com/v3/__https://github.com/danafuller__;!!IKRxdwAv5BmarQ!IYNDhGhesn1wcUu9lVq7N5uHhqvCi0vkW2NqKebo2_LJdYF3V54ieRF62WtZZVSX$ I had a similar question about this, were you given information that helped you clarify your issue??

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/Watts-College/cpp-523-fall-2021/issues/10*issuecomment-920599182__;Iw!!IKRxdwAv5BmarQ!IYNDhGhesn1wcUu9lVq7N5uHhqvCi0vkW2NqKebo2_LJdYF3V54ieRF62aJioFDm$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AVKGRUQZWB2DQYJCHFB56TTUCGAZXANCNFSM5EBGECWQ__;!!IKRxdwAv5BmarQ!IYNDhGhesn1wcUu9lVq7N5uHhqvCi0vkW2NqKebo2_LJdYF3V54ieRF62YhgnsT1$ . Triage notifications on the go with GitHub Mobile for iOS https://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!IKRxdwAv5BmarQ!IYNDhGhesn1wcUu9lVq7N5uHhqvCi0vkW2NqKebo2_LJdYF3V54ieRF62Z677IRJ$ or Android https://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!IKRxdwAv5BmarQ!IYNDhGhesn1wcUu9lVq7N5uHhqvCi0vkW2NqKebo2_LJdYF3V54ieRF62SMlXMPn$.

mrowland1 commented 2 years ago

That would be great if you could post some clarification here after, I am also confused. Thank you!

danafuller commented 2 years ago

The information is not all in one place which makes it confusing. Also, the data chucks that are written are done so in html version which means once you knit it you are able to see the tables. However, I needed to see the tables beforehand and the jumping back and forth knitting after each step doesn't work well for me. To see the tables in R, this is what you need to do: In the chunk you will see an area that says "html" If you change that to "text" and run it you will be able to see the tables embedded there in R. Don't forget to change it back to "html" before you knit it. There is also a data chunk that is missing from the lab in R, so you can't see that table. I added this chunk around line 187:

m.auxiliary <- lm( RSE ~ CSE, data=dat )
m.full <- lm( SWB ~ CSE + RSE, data=dat )

stargazer( m.auxiliary, m.full,
           type = "text", digits=2,
           dep.var.caption = "",
           omit.stat = c("rsq","f","ser"),
           notes.label = "Standard errors in parentheses",
           covariate.labels = c("CSE (a1,B1)", 
                                "RSE (B2)", 
                                "Constant") )

You will be able to see the information regarding CSE, RES, and SWB in a table so you can fill in the data and answer the questions that you need to. If all else fails, just print out the LAB 4 instructions and have them next to you so you can see the tables and information needed when you are working in R. I hoped this helped clarify things for you. If not, reach back out!

danafuller commented 2 years ago

@mrowland1 see response above

mrowland1 commented 2 years ago

Thank you @danafuller !!

BrettMFoster commented 2 years ago

The missing information can also be found here: https://watts-college.github.io/cpp-523-fall-2021/labs/lab-04-instructions.html

m.01 <- lm( SWB ~ CSE, data=dat )
m.02 <- lm( SWB ~ RSE, data=dat )
m.03 <- lm( SWB ~ CSE + RSE, data=dat )
stargazer( m.01, m.02, m.03, 
           type = "html", digits=2,
           dep.var.caption = "DV: Subjective Well-Being",
           omit.stat = c("rsq","f","ser"),
           notes.label = "Standard errors in parentheses")
asukajames commented 2 years ago

@danafuller Thanks for helping all! The code for Q2 you posted above, it says a1 is -0.32. but, wouldn't it be -0.44 because a1 represents correlation between CSE and RSE? I guess my question is how did you get this coding?

BrettMFoster commented 2 years ago

@danafuller Thanks for helping all! The code for Q2 you posted above, it says a1 is -0.32. but, wouldn't it be -0.44 because a1 represents correlation between CSE and RSE? I guess my question is how did you get this coding?

Should be the regression correlation used from the table, not the Pearson correlation. It'll be the b1.