Hi,
I'm trying to run a logistic regression with species presence/absence data as the response variable (across several years), and various environmental conditions (e.g. temperature) as predictors. I also have abundance data (number of individuals counted each day when the species was present, zero if none observed, null if no survey was conducted), which I would like to include as a frequency.
I can run a logistic regression model perfectly fine without including the abundance data. However, when I include the abundance data as a frequency (or as a weighting - tried both) I get the error "Response variable must have at least two levels".
I have my response variable set as a nominal variable (0 for absent, 1 for present, and • for null i.e. no survey conducted). The abundance data column is set to continuous, and the predictors are all continuous.
I thought that the problem may lie in the huge amount of null values in the dataset (the species is only active for a few months of the year, so is not monitored most of the time). However, I still got the same error when I excluded all of the null values.
To see if the issue occurred specifically with the abundance data I tried putting something irrelevant but continuous (Year of Observation) in as a pretend 'frequency', and JMP had no problems running that.
I'm using JMP Student Edition 19.0.1.
Thanks in advance! :)
~ Bobby