In this exercise, you will perform a simple linear regression analysis on the “Spiral of Silence” dataset.
The dataset is already loaded for you in a variable called data. It contains survey data with the following relevant variables:
Willingness_To_Speak_1_5: Willingness to speak out on a scale from 1 to 5 (dependent variable)Perceived_Majority_Support_pct: Perceived majority support as a percentage (independent variable)Create a linear regression model called simple_model that predicts Willingness_To_Speak_1_5 based on Perceived_Majority_Support_pct.
Your code should:
data variable (do not load the data yourself)lm() functionsimple_modelsimple_model <- lm(Willingness_To_Speak_1_5 ~ Perceived_Majority_Support_pct, data)