Linear modelling


I'm using the Palmerpenguin dataset in R studio to fit a linear model. However, there are three species of penguin and my data is only showing the output for two of these. I'll try and explain better by showing my console below.

> speciesmass<- lm(penguins$body_mass_g ~ penguins$species)
> speciesmass

lm(formula = penguins$body_mass_g ~ penguins$species)

              (Intercept)  penguins$speciesChinstrap     penguins$speciesGentoo  
                  3700.66                      32.43                                 1375.35 

The output provides information on two species of penguin but not the Adelaide penguin. Any help would be greatly appreciated. Thanks!

The Adelaide penguin is being used as the baseline case. That is, the coefficients of the other two species are the change seen between them and the baseline.

If you want more information, there are discussions about this in Tidy Models with R as well as Feature Engineering and Selection

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.