Im trying to run a linera regression model. I've ran this code before so I'm copy and pasting it from the r script.
This is the code I ran:
plot(latentmean_FA~ind_total_OFS, data=mydata,
+ main="Human Rights in Latin America by United States Foriegn Direct Investment",
+ xlab= "U.S. Foreign Direct Investment",
+ ylab= "Respect for Human Rights in Host Country")
This is the error I got:
> plot(latentmean_FA~ind_total_OFS, data=mydata,
+ + main="Human Rights in Latin America by United States Foriegn Direct Investment",
Error: unexpected '=' in:
"plot(latentmean_FA~ind_total_OFS, data=mydata,
+ main="
+ xlab= "U.S. Foreign Direct Investment",
Error: unexpected ',' in " + xlab= "U.S. Foreign Direct Investment","
+ ylab= "Respect for Human Rights in Host Country")
Error: unexpected ')' in " + ylab= "Respect for Human Rights in Host Country")"
Does anyone know how I could fix this?