Hi Maurizio, I do not really understand what exactly your problem is. Getting the soil information stored in a raster file into a data.frame? General use of factor variables in a model? I also do not see the link between a factor variable and model bias.
Happy to help after clarification. Regards, Patrick On 09/27/2017 04:59 PM, Maurizio Marchi wrote:
Dear R users, I would like to include soil as predictor in my model and in addition to climatic variables. Anyway I have some doubts concerning the usd of categorical values such as the format of my raster file. Actually, my soil type data are categorical codes, should these codes be described as categories prior to be used? Or shoul I reclassify my raster into numeric values? My main concern is if I would create directional influence and bias in the results. Thanks
_______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo