How to avoid index error with R spaMM package predict() function?
I am trying to run a spatial logistic regression model using the spaMM package in R. I have a stack of three predictor rasters representing canopy height, canopy layers, and large tree density, and am trying to train a model to predict “complex forest” structure across a landscape (based on known areas with older forests vs. timber harvested areas).