Question: Using R programming Students were recently polled on 6 separate items measuring the availability and cost of texts at the University bookstore. Their responses are

Using R programming

Students were recently polled on 6 separate items measuring the availability and cost of texts at the University bookstore. Their responses are 1=Strongly Disagree, 2=Disagree, 3=Neutral, 4=Agree, 5=Strongly Agree, 6=Missing. These coded answers for variables Y1-Y6 are stored in the Excel worksheet, along with student IDs.

(a) Read the data into SAS as the data set Survey.

(b) Use arrays and DO loops to create the character variables Q1-Q6; these variables correspond to the descriptive labels provided for the numeric variables Y1-Y6.

(c) Calculate the sum of Y1-Y6 after this recoding; dont worry about missing data.

(d) Create a format Likertfmt, which will print the character strings shown above in place of each of the coded values 1-5, and Missing for missing values. Print a frequency table for variable Y1 using the Likertfmt in your table.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!