I am a newbie to regression, and I was trying to answer the following question using this data.
Is there a meaningful difference between the distribution of damage caused by hurricanes with female names and the distribution of damage caused by hurricanes with male names?
This link says,
The response variable is the focus of a question in a study or experiment. An explanatory variable is one that explains changes in that variable.
By using the definition, gender affects the distribution of damage caused by hurricanes, and it's the explanatory variable. Am I right?
By considering gender as an explanatory variable, does GAM regression give a good fit?
set.seed(100) library(mgcv) library(rio) url = "https://www.pnas.org/highwire/filestream/616321/field_highwire_adjunct_files/0/pnas.1402786111.sd01.xlsx" data = rio::import(url) data = data[1:92,] log.reg = gam(NDAM ~ Gender_MF, data = data)