Description Usage Arguments Value Examples

This function calculate AIC criterion given a vector of observation, a vector of prediction and number of parameter. Note that number of parameters should include variance. AICcomplete is the same calculation of the AIC function of R (AICcomplete = n*log(RSS/n)+n+n*log(2*pi)+2*p, with p including variance). AICshort is the calculation described in chapter 6 Working with crop model (AICshort =n*log(RSS/n)+2*p, with p including variance). difference between AICcomplete and AICshort is AICcomplete-AICshort=n+n*log(2*pi) As you use AIC to compare models (with different number of parameters) on a same data (with same n, number of observation), you can use AICshort or AICcomplete.

1 | ```
AICf(Yobs, Ypred, npar)
``` |

`Yobs` |
: observed values |

`Ypred` |
: prediction values from the model |

`npar` |
: number of parameters (should include variance that count for one supplementary parameter) |

a vector with AICcomplete and AICshort

1 2 3 4 5 |

ZeBook documentation built on March 18, 2018, 2:30 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.