Textbook catalogue
Chapter One basic knowledge of probability statistics
Chapter II Use of R software
Chapter III Descriptive analysis of data
The fourth chapter parameter estimation
The fifth chapter hypothesis test
The sixth chapter regression analysis
Seventh chapter analysis of variance
The eighth chapter applied Multivariate analysis (I)
The Nineth chapter applies multivariate analysis (II)
The Tenth Chapter computer simulation
Chapter One basic knowledge of probability statistics
Chapter II Use of R software
2.1 Averaging and variance
> X1 <-C ( *, +, +, the,Panax Notoginseng, $, +,Panax Notoginseng, -, the, A, the)>mean (X1) [1]40.41667>SD (X1) [1]3.028901> X2 <-C ( -, About, -, in, the, the, +, the, -, $, the, the)>mean (X2) [1]69.66667>SD (X2) [1]5.210712
2.2 Plotting two-variable scatter plots and single-variable histograms
> X1 <-C ( *, +, +, the,Panax Notoginseng, $, +,Panax Notoginseng, -, the, A, the)> X2 <-C ( -, About, -, in, the, the, +, the, -, $, the, the)>plot (X1, X2)>hist (X1)> hist (X2)
2.3 Linear regression analysis of height and weight
> RT <-read.table ("Exam0203.txt", head=TRUE) RT Name Sex Age Height Weight1Alice F - 56.5 84.02Becka F - 65.3 98.03Gail F - 64.3 90.04Karen F A 56.3 77.05Kathy F A 59.8 84.56Mary F the 66.5 112.07Sandy F One 51.3 50.58Sharon F the 62.5 112.59Tammy F - 62.8 102.5TenAlfred M - 69.0 112.5 OneDuke M - 63.5 102.5 AGuido M the 67.0 133.0 -James M A 57.3 83.0 -Jeffrey M - 62.5 84.0 theJohn M. A 59.0 99.5 -Philip M - 72.0 150.0 -Robert M A 64.8 128.0 -Thomas M One 57.5 85.0 +William M the 66.5 112.0> Lm.sol <-lm (Weight~height, Data=RT)>Summary (LM.SOL) CALL:LM (Formula= Weight ~ Height, data =RT) Residuals:min 1Q Median 3Q Max-17.6807-6.0642 0.5115 9.2846 18.3698coefficients:estimate Std. Error t value Pr (>|t|) (Intercept)-143.0269 32.2746-4.432 0.000366***Height3.8990 0.5161 7.555 7.89e-07***---Signif. Codes0‘***’0.001‘**’0.01‘*’0.05‘.’0.1‘ ’1residual StandardError:11.23On -degrees of Freedommultiple R-squared:0.7705, Adjusted r-squared:0.757F-statistic:57.08On1 and -DF, P-value:7.887e-07
Source ("myfile.r")
Load ("myworkspace.rdata")
Save.image ("myworkspace.rdata")
Chapter III Descriptive analysis of data
The fourth chapter parameter estimation
The fifth chapter hypothesis test
The sixth chapter regression analysis
Seventh chapter analysis of variance
The eighth chapter applied Multivariate analysis (I)
The Nineth chapter applies multivariate analysis (II)
The Tenth Chapter computer simulation
R statistical Modeling and R software