powered by
function for predictions from the results of model fitting functions (fit.glm) or (glm)
fit.glm
glm
sim.glm(fit, datapred, fam.glm = "gaussian", occ.cond = NULL)
climatic variable fitted returned from "glm" which inherits from the class "lm".
Data frame that contains dates, climatic variables and all covariates used to fit the variable to simulate
family objects to specify probability distribution used for the model ("gaussian", "gaussian-hetero", "binomial" or "Gamma")
character object that specifies the name of the occurrence variable if that exists
Value returned belong to the same class of its first argument
glm, fit.glm
# NOT RUN { temp_fitted=glm(temp~Rh, family=gaussian, data=myclimatic_data) temp.sim=sim.glm(temp_fitted, myclimatic_data, fam.glm = "gaussian", occ.cond = NULL) # }
Run the code above in your browser using DataLab