I am running a GLM with catch data from a fishery. I understand how to run
a GLM in R. What I don't understand is how to declare the types of
variables that I have. For example, I am modeling catch with several
different types of variables. Here are details on my variables:
Variable Type
comment
Anglers random factor I
have the names of over 100 anglers.
Season fixed factors I
broke it up into the 4 seasons
Tide phase Continuous variable I have the
proportion of the tide phase during the fishing event
My R code for the GLM is:
fish <- glm(Catch ~ Angler +Season + Tide, family=gaussian(identity),
data=fishcatch)
However, how do declare the types of variables used in the model? For
example, how do I declare that the angler variable is a random factor?
Any help would be greatly appreciated.
Mike
[[alternative HTML version deleted]]