Description Usage Arguments Details Value Author(s) References Examples
Provides residual sum of squares (RSS) contours
1 2 3 4 5 |
nls |
an object of class 'nls' |
lseq |
length of the sequences of parameters |
exp |
expansion factor of the parameter intervals defining the grids |
nlev |
number of contour levels to add to the likelihood contour at level 95 percent |
col |
logical. Contours are plotted with colors if |
col.pal |
Palette of colors. Colors to be used as background (default is terrain.colors(100); unused if col is FALSE) |
x |
an object of class 'nlsContourRSS' |
ask |
if TRUE, draw plot interactively (default is FALSE) |
useRaster |
a bitmap raster is used to plot the image instead of polygons (default is TRUE) |
... |
further arguments passed to or from other methods |
The aim of these functions is to plot the residual sum of squares (RSS) contours which correspond to likelihood contours for a Gaussian model. For each pair of parameters the RSS is calculated on a grid centered on the least squares estimates of both parameters, the other parameters being fixed to their least square estimates. The contours of RSS values are then plotted for each pair of parameters. For each pair of parameters, one of this contour corresponds to a section of the 95 percent Beale's confidence region in the plane of these parameters. This contour is plotted in a different color.
nlsContourRSS
returns a list of three objects:
seqPara |
a matrix with the sequence of grid values for each parameter |
lrss |
a list of matrices with logarithm values of RSS in the grid for each pair of parameters |
lrss95 |
the logarithm of the 95 percent residual sum of squares threshold according to Beale (1960) |
Florent Baty florent.baty@gmail.com
Marie-Laure Delignette-Muller ml.delignette@vetagro-sup.fr
Beale EML (1960) Confidence regions in non-linear estimations. Journal of the Royal Statistical Society, 22B, 41-88.
Bates DM and Watts DG (1988) Nonlinear regression analysis and its applications. Wiley, Chichester, UK.
1 2 3 4 5 | data(growthcurve4)
nls1 <- nls(gompertzm, growthcurve4,
list(lag = 10, mumax = 0.1, LOG10N0 = 6, LOG10Nmax = 9))
crss <- nlsContourRSS(nls1)
plot(crss)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.