{RFoptions(modus_operandi="sloppy")
}
RFoptions(seed=0)
## see also ?soil
data(soil)
str(soil)
soil <- RFspatialPointsDataFrame(
coords = soil[, c("x.coord", "y.coord")],
data = soil[, c("moisture", "NO3.N", "Total.N",
"NH4.N", "DOC", "N20N")],
RFparams=list(vdim=6, n=1)
)
model <- ~1 + RMplus(RMwhittle(scale=NA, var=NA, nu=NA), RMnugget(var=NA))
submodel <- ~1 + RMplus(RMwhittle(scale=NA, var=NA, nu=NA), RMnugget(var=0))
test <- RFratiotest(submodel, model, data=soil["moisture"], n=20)
str(test)
{RFoptions(modus_operandi="normal")
}
RFoptions(seed=NA)
Run the code above in your browser using DataLab