not able to regress a linear regression model, don't know what to put for data

`The instructions from my instructor are:

Regress lnyears on afro`

Insert a code chunk, then fit a simple linear regression model – regress lnyears on afro. Call the model slr1. Use the tidy() function to request the output.

When I try to code, I cannot understand what the correct command is and I cannot figure out what my data frame is: it keeps saying it is wrong.

Hi, welcome to the forum.

We are going to need a lot more information if we are going to help.

You need to read the RStudio Homework Policy and also have a look at FAQ Asking Questions

Do what @jrkrideau says. :smile:

Then look up the lm() function.

This topic was automatically closed 42 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.