程序代写案例-H0
时间:2021-02-14
Examples to Report Results in Write-up 1 Hypothesis test Test: Population mean of rt,g is significantly different from 0. • Proper way to report results: H0 :µg = 0 Ha :µg 6= 0 p-value is 0.0064, reject H0. • Improper way to report results: Use t.test(r g) in R, One Sample t-test data: r_g t = -2.7292, df = 1858, p-value = 0.006408 alternative hypothesis: true mean is not equal to 0 95 percent confidence interval: -0.11206003 -0.01834832 sample estimates: mean of x -0.06520417 2 Regression Model: rt,g = a+ brt,f + t • Proper way to report results: Estimate Std. Error t-stat p-value a -0.0352 0.0162 -2.17 0.0301 b 0.6858 0.0147 46.63 0.0000 R2 0.5394 R2 0.5391 F -stat 2175 p-value 0.0000 • Improper way to report results: Use ols <- lm(r g r f); summary(ols) in R, 1 Call: lm(formula = r_g ~ r_f) Residuals: Min 1Q Median 3Q Max -4.0100 -0.4093 0.0076 0.4302 4.4676 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -0.03523 0.01623 -2.17 0.0301 * r_f 0.68582 0.01471 46.63 <2e-16 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 0.6993 on 1857 degrees of freedom Multiple R-squared: 0.5394,Adjusted R-squared: 0.5391 F-statistic: 2175 on 1 and 1857 DF, p-value: < 2.2e-16 2
学霸联盟
essay、essay代写