twNlme-package: Prediction intervals for nlme and gnls models


Prediction intervals for nlme and gnls models


The main purpose of the package is to provide standard errors for predictions of simple models fitted by nlme or gnls.

The main function is varPredictNlmeGnls using function attachVarPrep.

Further functionality of package twNlme includes
  • Variance of sum of predictions varSumPredictNlmeGnls

  • treating gnls models as special random effects models with zero random effects, i.e accessing fixed (coefficients) and random (none) of gls models: fixef.gls, ranef.gls

  • extracting Variance Covariance matrix of fixed and random effects: varRanef.lme, varFixef.lme for both lme and gls models

  • extracting Standard error of fixed effects: varRanef, seFixef.lme for both lme and gls models

  • tree weights in relation to diameter and height: Wutzler08BeechStem

  • nlme model fit to the tree weight data: modExampleStem


Thomas Wutzler <>

Questions? Problems? Suggestions? or email at

All documentation is copyright its authors; we didn't write any of that.