Function for calculating risk means within intervals and visualization.
riskmean(formula, data = NULL)
# S3 method for riskmean
print(x, ...)
# S3 method for riskmean
plot(x, ...)
a formula of response and explanatory variables
a data.frame includes response and explanatory variables
a list of risk mean values
ignore
rm1 <- riskmean(NDVIchange ~ Climatezone + Mining, data = ndvi_40)
rm1
plot(rm1)
# \donttest{
data <- ndvi_40[,1:3]
rm2 <- riskmean(NDVIchange ~ ., data = data)
rm2
# }
Run the code above in your browser using DataLab