Unexpected Input In lm Command

Hi all!

First post, here goes! I'm trying to do an lm for variable " equality" with regards to variables "age + income + female + educ" for dataframe "Jor". I wrote the following command >mymodel <- lm(equality ∼ age + income + female + educ, data = Jor), but got the message Error: unexpected input in "mymodel <- lm(equality �"
I've checked my variable and dataframe names, my quotes, and my parentheses. Any idea what might be tripping up the command? Thank you very much in advance for your help!

Looks like it’s choking on the tilde. Check the character encoding, which should be UTF-8

Worked! Thank you so much!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.