DeAngelisA / ISSS23

Material for the lecture "Introduction to Statistics for the Social Sciences"
MIT License
12 stars 4 forks source link

Problemset 2 Exercise 1.1 #32

Open LisaZimmi opened 11 months ago

LisaZimmi commented 11 months ago

I am trying to solve the excessive 1.1 now for about 2 hours. Somehow I always get errors and R can not read my data. I tried these codes:

load("/Pfad/zur/Datei/Mein_Avengers_Datensatz_rec.Rdata") --> this is my filtered and transformed data from Problemset 1 in a Rdata format. Loading the data works as far as there are no errors. But then I try this Code:

fit1 <- lm(Number_of_appearances ~ Years_since_joining, data = Mein_Avengers_Datensatz_rec) --> This step isn't working. I get the error:

Error in eval(mf, parent.frame()) : object 'Mein_Avengers_Datensatz_rec' not found

Trying other ways I get this error: load(avengers_problemset1_clean_filtered_transformed) : bad 'file' argument

Next I tried the code load(link of the path). But then I get this error: Error in terms.formula(formula, data = data) : invalid term in model formula

I just don't know what to do. Am I using the wrong data? Why isn't it working? Is my data in the wrong format? It's really frustrating that I can't even solve the first part of exercise one.

LisaZimmi commented 11 months ago

I was finally able to solve my problem:)