I am trying to run a gam on a data frame containing a numerical (outcome) variable and two factors.
Here is a sample:
df = structure(list(ProviderCount