Question: Using the following mydata statement in R (mydata = read.sas7bdat('/full-path/bfp.sas7bdat') please produce the shell/script that will do the following (along with necessary packages) 1. Import
Using the following mydata statement in R
(mydata = read.sas7bdat('/full-path/bfp.sas7bdat')
please produce the shell/script that will do the following (along with necessary packages)
1. Import library inside R to read a SAS7bdat file and print the top 10 rows of the data
2. Print all of the variable names in the data
3. Print summary statistic for a variable called VARONE
4. Print a histogram plot of VARONE
5. Print output from running a stepwise regression with VARONE as dependent variable and VARtwo, VARthree, VARfour, VARfive, VARsix, VARseve, VAReight as independent variables. Use p-value selection with 0.05 for both entry and removal
bfp.sas7bdat is located in Exercises_fall/bfp.sas7bdat
You can submit the script or a shell of the script and I will validate it or make changes to variable names as necessary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
