Learn R Programming

⚠️There's a newer version (1.9.7) of this package.Take me there.

nlraa: R package for Nonlinear Regression for Agricultural

Applications

Documentation

NOTE: the vignettes (nlraa-Oddi-LFMC and nlraa-AgronJ-paper) that used to be distributed with the package have been moved to the documentation above because of CRAN size limits.

Nonlinear Models (video) - part I

Nonlinear Models (video) - part II

Nonlinear Models (video) - part III

To install

library(remotes)
remotes::install_github("femiguez/nlraa")
library(nlraa)

This package supports the following publications:

  1. Archontoulis, S. V., and F. E. Miguez. 2015. Nonlinear Regression Models and Applications in Agricultural Research. Agron. J. 107:786-798.
    https://doi.org/10.2134/agronj2012.0506

  2. Miguez, F., S. Archontoulis, H. Dokoohaki 2018. Chapter 15: Nonlinear Regression Models and Applications. In: B. Glaz, K. M. Yeater, editors, Applied Statistics in Agricultural, Biological, and Environmental Sciences, ASA, CSSA, and SSSA, Madison, WI. p. 401-448.
    https://doi.org/10.2134/appliedstatistics.2016.0003

  3. Oddi et. al. (2019). A nonlinear mixed-effects modelling approach for ecological data: Using temporal dynamics of vegetation moisture as an example. Ecology and Evolution.
    https://doi.org/10.1002/ece3.5543

Some recent publications that cite this package:

27. Love under lockdown:How changes in time with partner impacted stress and relationship outcomes during the COVID-19 pandemic. https://doi.org/10.1177/02654075231162599

26. Mitchell E. Baum, John E. Sawyer, Emerson D. Nafziger, Isaiah Huber, Peter J. Thorburn, Michael J. Castellano, Sotirios V. Archontoulis. Evaluating and improving APSIM's capacity in simulating long-term corn yield response to nitrogen in continuous- and rotated-corn systems, Agricultural Systems, Volume 207, 2023, https://doi.org/10.1016/j.agsy.2023.103629.

25. Physical Modes of Action of Fungicides Against Apple Scab: Timing is Everything, but Dose Matters Vincent Philion, Valentin Joubert, Marc Trapman, and Arne Stensvand. Published Online:23 Feb 2023https://doi.org/10.1094/PDIS-11-22-2758-RE

24. Song, S., Ding, Y., Li, W. et al. Mangrove reforestation provides greater blue carbon benefit than afforestation for mitigating global climate change. Nat Commun 14, 756 (2023). https://doi.org/10.1038/s41467-023-36477-1

23. Bonansea, S.; Ernst, O.R.; Mazzilli, S.R. Baseline for Brassica carinata Components of Nitrogen-Use Efficiency in Southern South America. Agronomy 2023, 13, 412. https://doi.org/10.3390/agronomy13020412

22. Gonzalo Carracelas, Nicolas Guilpart, Kenneth G. Cassman, Patricio Grassini, Distinguishing between yield plateaus and yield ceilings: A case study of rice in Uruguay, Field Crops Research, https://doi.org/10.1016/j.fcr.2023.108808.

21. McMaster ES, Chen SH, Yap J-YS, Rossetto M (2022) Conservation genomics of Persoonia hirsuta support of management. Research Centre for Ecosystem Resilience, Royal Botanic Garden Sydney.

20. Alejo Ruiz, Sotirios V. Archontoulis, Lucas Borrás, Kernel weight relevance in maize grain yield response to nitrogen fertilization, Field Crops Research, Volume 286, 2022, 108631, https://doi.org/10.1016/j.fcr.2022.108631.

19. Miguez, F. E., & Poffenbarger, H. (2022). How can we estimate optimum fertilizer rates with accuracy and precision? Agricultural & Environmental Letters, 7, e20075. https://doi.org/10.1002/ael2.20075

18. Pearce, A.W., Slaton, N.A., Lyons, S.E., Bolster, C.H., Bruulsema, T.W., Grove, J.H., Jones, J.D., McGrath, J.M., Miguez, F.E., Nelson, N.O., Osmond, D.L., Parvej, M.R., Pena-Yewtukhiw, E.M. and Spargo, J.T. (2022), Defining relative yield for soil test correlation and calibration trials in the fertilizer recommendation support tool. Soil Sci. Soc. Am. J.. Accepted Author Manuscript. https://doi.org/10.1002/saj2.20450

17. Rebecca L. Atkins, Kathleen M. Clancy, William T. Ellis, and Craig W. Osenberg. Thermal Traits Vary with Mass and across Populations of the Marsh Periwinkle, Littoraria irrorata. The Biological Bulletin. 2022. https://doi.org/10.1086/719850

16. Guamani-Quimis, Lenin A., Ariolfo L. Solís-Bowen, Diego Portalanza, and Felipe R. Garcés-Fiallos. 2022. Can Mathematical Models Describe Spear Rot Progress in Oil Palm Trees? A Five-Year Black Weevil-Disease Assessment from Ecuador. Agriculture 12, no. 2: 257. https://doi.org/10.3390/agriculture12020257

15. Nichols, V. A., Moore, E. B., Gailans, S., Kaspar, T. C., & Liebman, M. (2022). Site-specific effects of winter cover crops on soil water storage. Agrosyst Geosci Environ, 5:e220238. https://doi.org/10.1002/agg2.20238

14. Positive associations of soil organic matter and crop yields across a regional network of working farms. Emily E. Oldfield, Mark A. Bradford, Abigail J. Augarten, Eric T. Cooley, Amber M. Radatz, Timothy Radatz, Matthew D. Ruark. Soil Science Society of America. 2021. https://doi.org/10.1002/saj2.20349

13. Improvement of the Mass-Rearing Protocols for the South American Fruit Fly for Application of the Sterile Insect Technique. Mastrangelo et al. Insects 2021, 12(7), 622; https://doi.org/10.3390/insects12070622

12. High-yielding sugarcane in tropical Brazil – Integrating field experimentation and modelling approach for assessing variety performances. Henrique Boriolo Dias, Geoff Inman-Bamber, Paulo Cesar Sentelhas, Yvette Everingham, Rodrigo Bermejo, Diomedes Christodoulou. Field Crops Research. 2021. https://doi.org/10.1016/j.fcr.2021.108323.

11. Evaluation of mehlich-3 for determination of cation exchange capacity in Kansas soils. Edmond Bryan Rutter, Dorivar Ruiz Diaz,Lynn M. Hargrave. 2021. Soil Science Society of America. https://doi.org/10.1002/saj2.20354

10. Effects of human disturbance on postnatal growth and baseline corticosterone in a long-lived bird. Hannah Watson, Pat Monaghan, Britt J Heidinger, Mark Bolton. Conservation Physiology, Volume 9, Issue 1, 2021. https://doi.org/10.1093/conphys/coab052

9. The use of R in photosynthesis research. Yasi Liu, Xiangping Wang, Dayong Fan and Jiangshan Lai. Functional Plant Biology 1-8 https://doi.org/10.1071/FP21102

8. Topographic effects on soil microclimate and surface cover crop residue decomposition in rolling cropland. Sam J. Leuthold, Dan Quinn, Fernando Miguez, Ole Wendroth, Monsterrat Salmerón, Hanna Poffenbarger. Agriculture, Ecosystems & Environment, Volume 320, 2021. https://doi.org/10.1016/j.agee.2021.107609.

7. Long-term no-till increases soil nitrogen mineralization but does not affect optimal corn nitrogen fertilization practices relative to inversion tillage. Lucas Pecci Canisares, John Grove, Fernando Miguez and Hanna Poffenbarger. Soil and Tillage Research. Volume 213. 2021. 105080. https://doi.org/10.1016/j.still.2021.105080.

6. Rotating maize reduces the risk and rate of nitrate leaching. Heather Randolph Pasley, Nichols Virginia, Michael J Castellano, Matthew J Helmers, Mitchell E Baum, Eileen J Kladivko and Sotirios Archontoulis. 2021. Environmental Research Letters. https://doi.org/10.1088/1748-9326/abef8f

5. Abendroth, L.J., Miguez, F.E., Castellano, M.J., Carter, P.R., Messina, C.D., Dixon, P.M. and Hatfield, J.L. (2021), Lengthening of maize maturity time is not a widespread climate change adaptation strategy in the US Midwest. Glob Change Biol. https://doi.org/10.1111/gcb.15565

4. Interactive effect of glyphosate-based herbicides and organic soil layer thickness on growth and reproduction of the tropical earthworm Pontoscolex corethrurus (Müller, 1857). Garcia-Perez et al. (2020). https://doi.org/10.1016/j.apsoil.2020.103648

3. Cuando la variabilidad varía: Heterocedasticidad y funciones de varianza. Oddi, F. J., Miguez, F. E., Benedetti, G. G., & Garibaldi, L. A. (2020). Ecología Austral; 30; 438-453.

2. Short-term effects of integrated tillage systems and cover crop on agronomic response and soil health in North Central Iowa. Alex Cleveringa. 2020. MS Thesis. Iowa State University.

1. The Effects of Agronomic Management and 40 Years of Variety Release on Soybean Seed Fill and Yield Components. Kathryn Graf. 2018. MS thesis. Purdue University.

Other publications where we have used nonlinear mixed models:

  1. Fernando E. Miguez, María Bonita Villamil, Stephen P. Long, Germán A. Bollero, Meta-analysis of the effects of management factors on Miscanthus × giganteus growth and biomass production, Agricultural and Forest Meteorology, Volume 148, Issues 8–9, 2008, Pages 1280-1292, ISSN 0168-1923,
    https://doi.org/10.1016/j.agrformet.2008.03.010.
    Supporting information:
    http://miguezlab.agron.iastate.edu/OldWebsite/Research/Miscanthus/MetaMiscan.tar.gz

  2. Eichenberger, S., F. Miguez, J. Edwards, and A. Knapp. 2015. Changes in Kernel Filling with Selection for Grain Yield in a Maize Population. Crop Sci. 55:521-526.
    https://doi.org/10.2135/cropsci2014.07.0462

  3. Stein, M., F. Miguez, and J. Edwards. 2016. Effects of Plant Density on Plant Growth before and after Recurrent Selection in Maize. Crop Sci. 56:2882-2894.
    https://doi.org/10.2135/cropsci2015.09.0599

Talks:

2008 ACS meeting.

Slides:
http://miguezlab.agron.iastate.edu/OldWebsite/Research/Talks/ASA_Miguez.pdf

Data and code:
http://miguezlab.agron.iastate.edu/OldWebsite/Research/Talks/Barley.zip

Copy Link

Version

Install

install.packages('nlraa')

Monthly Downloads

795

Version

1.9.3

License

GPL-3

Maintainer

Fernando Miguez

Last Published

June 15th, 2023

Functions in nlraa (1.9.3)

SSquadp

self start for quadratic-plateau function
SSplin

self start for plateau-linear function
SSpquad

self start for plateau-quadratic function
boot_lme

Bootstraping for linear mixed models
boot_lm

Bootstrapping for linear models
SSquadp3

self start for quadratic-plateau function
fm1.P.bt

object for confidence bands vignette fm1.P.bt
SSdlf

self start for Declining Logistic Function
SSexpf

self start for an exponential function
SSricker

self start for Ricker Function
SSscard3

self start for smooth cardinal temperature response
SSratio

self start for a rational curve
fm1.P.at.x.0.4

object for confidence bands vignette fm1.P.at.x.0.4
predict_nlme

Average predictions from several (non)linear models based on IC weights
SSpquad3

self start for plateau-quadratic function
SScard3

self start for cardinal temperature response
SSblin

self start for a bilinear Function
SSprofd

self start for profile decay function
print_boot

predict_nls

Average predictions from several (non)linear models based on IC weights
boot_nls

Bootstrapping for nonlinear models
SSpexpf

self start for plateau-exponential function
SStemp3

self start for Collatz temperature response
SSsharp

self start for temperature response
SSnrh

self start for non-rectangular hyperbola (photosynthesis)
boot_nlme

Bootstraping for generalized nonlinear models and nonlinear mixed models
predict2_nls

Prediction Bands for Nonlinear Regression
simulate_gam

predict_gam

Modified prediciton function based on predict.gam
fmm1.bt

object for confidence bands vignette fmm1.bt
lfmc

Live fuel moisture content
simulate_nlme

Simulate samples from a nonlinear mixed model from fixed effects
SStrlin

self start for a trilinear Function
barley

Barley response to nitrogen fertilizer
maizeleafext

Maize leaf extension rate as a response to temperature
nlsLMList

Create a list of nls objects with the option of using nlsLM in addition to nls
fm1.P.bt.ft

object for confidence bands vignette fm1.P.bt.ft
nlsLMList.formula

Formula method for nls ‘LM’ list method
simulate_gls

nlraa.env

Environment to store options and data for nlraa
simulate_gnls

fm2.Lob.bt

object for confidence bands vignette fm2.Lob.bt
simulate_nls

simulate_nlme_one

sm

Sorghum and Maize growth in Greece
var_cov

Variance Covariance matrix of for g(n)ls and (n)lme models
summary_simulate

Summarize a matrix of simulations by their mean (median), sd (mad), and quantiles
swpg

Water limitations for Soybean growth
simulate_lm

simulate_lme

SSbgf

self start for Beta Growth Function
SSbell

self start for a bell-shaped curve
Lob.bt.pe

object for confidence bands vignette Lob.bt.pe
SSbg4rp

self start for the reparameterized Beta growth function with four parameters
SSbgf4

self start for Beta growth function with four parameters
R2M

R-squared for nonlinear mixed models
IA_tab

Indexes of Agreement Table
SSbgrp

self start for the reparameterized Beta growth function
IC_tab

Information Criteria Table
SSbeta5

self start for Beta 5-parameter function
SSexpfp

self start for an exponential-plateau function
SSexplin

self start for the exponential-linear growth equation
SShill

self start for Hill Function
SSmoh

self start for modified hyperbola (photosynthesis)
SSlogis5

self start for five-parameter logistic function
SSquadp3xs

self start for quadratic-plateau function (xs)
SSlinp

self start for linear-plateau function