The twNlme
package helps with estimating uncertainty of predictions of nonlinear mixed effects models.
While the residual variance decreases with averaging over many predictions, the uncertainty due to random effects does not decrease in general.
# From CRAN (in future)
#install.packages("twNlme")
# First install dependencies
install.packages("nlme")
# Install from github
# install.packages("devtools")
devtools::install_github("bgctw/twNlme")
See the Tree biomass vignette and other package vignettes (*.md) for examples.