a) Explain how questionnaire data can be summarized using:
i. Frequency tables
ii. Percentages
iii. Descriptive statistics
b) Describe how SPSS is used to analyze Likert-scale questionnaire items, including:
i. Individual item analysis
ii. Composite score construction
c) Explain how cross-tabulation is used in analyzing questionnaire data and state one situation
where it is appropriate.
d) Describe the procedure for performing a Chi-square test of independence on questionnaire
data in SPSS.
a) Define R as a statistical computing environment and state four areas where it is commonly
applied.
c) Distinguish clearly between R scripts and R console commands.
d) State two advantages of using command-based analysis in R over menu-driven software.
a) Define a vector in R and explain why vectors are regarded as the basic data structure in R.
b) Using R commands, show how to:
i. Create a numeric vector containing the values 5, 10, 15, 20, 25
ii. Create a character vector of five states
iii. Generate a sequence from 2 to 20 in steps of 2
c) Explain the following vector operations in R, with examples:
i. Vector indexing
ii. Vector arithmetic
iii. Logical vectors
b) Using R commands, show how to:
i. Create a 3 × 3 matrix containing the numbers 1 to 9
ii. Assign row names and column names to the matrix
iii. Extract the second row and third column
c) Explain the difference between the following matrix operations in R:
i. Element-wise multiplication (*)
ii. Matrix multiplication (%*%)
(5 marks)
d) Write R commands to compute the following for a given square matrix:
i. Transpose
ii. Determinant
iii. Inverse
Explain the following types of questionnaire questions, giving one example each: i. Open-
ended questions
ii. Closed-ended questions
iii. Likert-scale questions
iv. Dichotomous questions
Explain the importance of measurement scales in questionnaire design and clearly describe
how the following are represented in SPSS:
i. Nominal scale
ii. Ordinal scale
iii. Scale (Interval/Ratio)
State five common errors in questionnaire design and their possible effects on SPSS
data analysis
State four advantages of SPSS for survey-based research and three limitations of the
Software
Distinguish clearly between R scripts and R console commands.
State two advantages of using command-based analysis in R over menu-driven software.
Define a vector in R and explain why vectors are regarded as the basic data structure in R.