1. Engineering
  2. Computer Science
  3. using the following mydata statement in r mydata readsas7bdatfullpathbfpsas7bdat...

Question: using the following mydata statement in r mydata readsas7bdatfullpathbfpsas7bdat...

Question details

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

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution