{"id":57587,"date":"2021-10-10T16:34:34","date_gmt":"2021-10-10T16:34:34","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/10\/10\/r-programming-101\/"},"modified":"2021-10-10T16:34:34","modified_gmt":"2021-10-10T16:34:34","slug":"r-programming-101","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/10\/10\/r-programming-101\/","title":{"rendered":"r programming 101"},"content":{"rendered":"<p>Q1:The linear regression results below display the effect of six indices that might affect happiness across different regions in the world: economic production, social support, life expectancy, freedom, absence of corruption, and generosity. The data question is: <br \/>What affects happiness? <br \/>Based on the output below, how can we answer the question above? <br \/>## <br \/> ## Call:<br \/> ## lm(formula = ladder_score ~ logged_gdp_per_capita social_support <br \/> ## healthy_life_expectancy freedom_to_make_life_choices <br \/> ## generosity perceptions_of_corruption, data = .)<br \/> ## <br \/> ## Residuals:<br \/> ## Min 1Q Median 3Q Max <br \/> ## -1.85049 -0.30026 0.05735 0.33368 1.04878 <br \/> ## <br \/> ## Coefficients:<br \/> ## Estimate Std. Error t value Pr(&gt;|t|) <br \/> ## (Intercept) -2.23722 0.63049 -3.548 0.000526 ***<br \/> ## logged_gdp_per_capita 0.27953 0.08684 3.219 0.001595 ** <br \/> ## social_support 2.47621 0.66822 3.706 0.000301 ***<br \/> ## healthy_life_expectancy 0.03031 0.01333 2.274 0.024494 * <br \/> ## freedom_to_make_life_choices 2.01046 0.49480 4.063 7.98e-05 ***<br \/> ## generosity 0.36438 0.32121 1.134 0.258541 <br \/> ## perceptions_of_corruption -0.60509 0.29051 -2.083 0.039058 * <br \/> ## &#8212;<br \/> ## Signif. codes: 0 &#8216;***&#8217; 0.001 &#8216;**&#8217; 0.01 &#8216;*&#8217; 0.05 &#8216;.&#8217; 0.1 &#8216; &#8216; 1<br \/> ## <br \/> ## Residual standard error: 0.5417 on 142 degrees of freedom<br \/> ## Multiple R-squared: 0.7558, Adjusted R-squared: 0.7455 <br \/> ## F-statistic: 73.27 on 6 and 142 DF, p-value: &lt; 2.2e-16<br \/> question2 see attached file<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q1:The linear regression results below display the effect of six indices that might affect happiness across different regions in the world: economic production, social support, life expectancy, freedom, absence of corruption, and generosity. The data question is: What affects happiness? Based on the output below, how can we answer the question above? ## ## Call: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20],"class_list":["post-57587","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-programming"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/57587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=57587"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/57587\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=57587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=57587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=57587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}