Linear Regression Analysis

In this exercise, you will perform a simple linear regression analysis on the “Spiral of Silence” dataset.

Dataset

The dataset is already loaded for you in a variable called data. It contains survey data with the following relevant variables:

Task

Create a linear regression model called simple_model that predicts Willingness_To_Speak_1_5 based on Perceived_Majority_Support_pct.

Requirements

Your code should:

Solution

simple_model <- lm(Willingness_To_Speak_1_5 ~ Perceived_Majority_Support_pct, data)