In R software, randomly generate the bivariate data of 30 observations for regression model Y = 32 + 11X + ε, with X ∼ N(0,1);ε ∼ N(0,s). Let the error variance s is the square root of the last 3 digits from your student ID. Save the data as .csv file. Fit the simple linear regression model to the generated data, and interpret the results in detail. Your written assignment must contain:
• Your student ID # ie 212
• the R code for the data generation; the value of the error variance s used(re
to your ID#)
• the generated dataset (in appendix)
• R code for analysis
• detailed interpretation of the results
• Your student ID # ie 212
• the R code for the data generation; the value of the error variance s used(re
to your ID#)
• the generated dataset (in appendix)
• R code for analysis
• detailed interpretation of the results