Tutorial on how to do simple linear regression in R

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 7

  • @RameshMahtani
    @RameshMahtani 3 роки тому +4

    This course comes highly recommended!

  • @denisdarwis3054
    @denisdarwis3054 3 роки тому

    Would you lunch another course?
    I'm looking forward to it.

  • @walterwhite7376
    @walterwhite7376 3 роки тому +1

    Can i make a question? Would the following work in a lm() function? species ~ Environmental_factor (e.g temperature) . I want to see if they are related.

    • @RforEcology
      @RforEcology  3 роки тому

      Great question, Walter! It depends on the variables you are using - what kind of variable is "species" (e.g., is it a categorical variable)? If "species" is a categorical variable, you will need to create "dummy variables" for it (www.statisticssolutions.com/dummy-coding-the-how-and-why/).
      If "species" is continuous, you could certainly do something like "lm(mean species size ~ temperature)", where you want to see how the size of a species might change with temperature.