# NOT RUN {
#linear regression of log(electrical conductivity) in streams
#against four independent variables describing catchment
#characteristics (from Hatt et al. 2004).
# }
# NOT RUN {
data(urbanwq)
env <- urbanwq[,2:5]
rand.hp(urbanwq$lec, env, fam = "gaussian",
gof = "Rsqu", num.reps = 999)$Iprobs
# }
# NOT RUN {
#logistic regression of an amphipod species occurrence in
#streams against four independent variables describing
#catchment characteristics (from Walsh et al. 2004).
# }
# NOT RUN {
data(amphipod)
env1 <- amphipod[,2:5]
rand.hp(amphipod$australis, env1, fam = "binomial",
gof = "logLik", num.reps = 999)$Iprobs
# }
Run the code above in your browser using DataLab