lm2Wsmry-package: Fit a linear regression and return related summary statistics

Description Details Author(s) Examples

Description

lm2Wsmry is a package for homework project process. By this package, a linear regression can be fitted, and a related summary output contains information like residuals, coefficient, standard errors, R^2, adjusted R^2, F statistics, related p-value and some other statistics value can be achieved. This package is trying to reproduce the output result given by lm() and summary(lm()) in base, by lm2() and summary_lm2() respectively. To have more details on each function, please check the help page for each function.

Details

The DESCRIPTION file: This package was not yet installed at build time.
Index: This package was not yet installed at build time.
lm2Wsmry is a package for homework project process. By this package, a linear regression can be fitted, and a related summary output contains information like residuals, coefficient, standard errors, R^2, adjusted R^2, F statistics, related p-value and some other statistics value can be achieved. This package is trying to reproduce the output result given by lm() and summary(lm()) in base, by lm2() and summary_lm2() respectively. To have more details on each function, please check the help page for each function.

Author(s)

Tiankai Xie

Maintainer: Who to complain to <tiankai@umich.edu>

Examples

1
2
3
4
5
6
7
8
9
lm2(formula = Temp ~ Wind + Solar.R, data = airquality, na.handle = "na.omit")
result = lm2(formula = Rape ~ Murder+Assault+UrbanPop, data = USArrests, res_display = FALSE)
result$coefficients

summary_lm2(lm2(formula = Rape ~ Murder+Assault+UrbanPop, data = USArrests, res_display = FALSE))

result = summary_lm2(lm2(formula = Rape ~ Murder+Assault+UrbanPop, data = USArrests, res_display = FALSE), res_display = FALSE)
result$resd.tb
result$rank

TKUmich96/biostat625hw4 documentation built on Dec. 18, 2021, 4:02 p.m.