sim.glm {MetGen} | R Documentation |
Simulation of glm
Description
function for predictions from the results of model fitting functions (fit.glm
) or
(glm
)
Usage
sim.glm(fit, datapred, fam.glm = "gaussian", occ.cond = NULL)
Arguments
fit |
climatic variable fitted returned from "glm" which inherits from the class "lm". |
datapred |
Data frame that contains dates, climatic variables and all covariates used to fit the variable to simulate |
fam.glm |
family objects to specify probability distribution used for the model ("gaussian", "gaussian-hetero", "binomial" or "Gamma") |
occ.cond |
character object that specifies the name of the occurrence variable if that exists |
Value
Value returned belong to the same class of its first argument
See Also
Examples
temp_fitted=glm(temp~Rh, family=gaussian, data=myclimatic_data)
temp.sim=sim.glm(temp_fitted, myclimatic_data, fam.glm = "gaussian", occ.cond = NULL)
[Package MetGen version 0.5 Index]