a) Explanatory and Response Variables: The study examined the following variables:
b) Response Scales: - Sleep Duration: Measured in hours per night, ranging from 4 to 12 hours. - Lifestyle Factors: Categorical scales for exercise frequency (e.g., Rarely, Occasionally, Regularly), screen time (e.g., Low, Moderate, High), and caffeine intake (e.g., None, Low, Moderate, High). - Demographic Information: Age was measured in years, gender as categorical (Male, Female), and academic major as a categorical variable.
c) Variable Management: - Cleaning and Imputation: Missing values in demographic and lifestyle variables were handled through imputation techniques, ensuring a complete dataset for analysis. - Normalization: Academic performance and sleep duration were normalized to a common scale to facilitate comparison and interpretation. - Categorization: Lifestyle variables were categorized for ease of analysis, ensuring meaningful insights into the impact of different lifestyle factors on sleep and academic performance.
Bar Chart - Sleep Duration
Scatter Plot - Age vs. GPA
Box Plot - Screen Time Distribution
## No trace type specified:
## Based on info supplied, a 'heatmap' trace seems appropriate.
## Read more about this trace type -> https://plotly.com/r/reference/#heatmap
```
This code includes different types of charts for visual representation. You can copy and paste this code into an R Markdown (.Rmd) file and knit it to HTML or any other format you prefer. Adjustments can be made based on your preferences or specific requirements.