Skip to Content
Nonlinear Parameter Optimization Using R Tools
book

Nonlinear Parameter Optimization Using R Tools

by John C. Nash
May 2014
Intermediate to advanced
304 pages
7h 37m
English
Wiley
Content preview from Nonlinear Parameter Optimization Using R Tools

Chapter 21Miscellaneous nonlinear estimation tools for R

This chapter concerns a number of R tools that are extensions or accessories to the materials we have discussed so far. Because they are treated here at the end of the book does not mean that they are unimportant. However, my concerns have been the machinery to find estimates of nonlinear parameters by optimizing functions. A number of the tools in this chapter stress other aspects of statistical estimation that illuminate the data or models in other ways.

21.1 Maximum likelihood

As maximum likelihood estimation is such a common task in computational statistics, several tools and packages exist for carrying out some of the forms of ML tasks.

mle in the stats4 (part of the base R distribution, R Core Team (2013), but it appears that one needs to load it with require(stats4)) is intended for minimizing a function minuslogl using a method chosen from optim(). This tool appears to have fallen into disuse, possibly because it seems to be rather fragile. However, it does compute the solution for our Hobbs maximum likelihood example introduced in Chapter 12, and we include an illustration of use of fixed parameters (masks).

require(stats4, quietly = TRUE)
lhobbs.res <- function(xl, y) {
    # log scaled Hobbs weeds problem - - residual base parameters on log(x)
    x <- exp(xl)
    if (abs(12 * x[3]) > 50) {
        # check computability
        rbad <- rep(.Machine$double.xmax, length(x))
        return(rbad)
    }
    if (length(x) != 3)
        stop("hobbs.res - - parameter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microscope Image Processing

Microscope Image Processing

Qiang Wu, Fatima Merchant, Kenneth Castleman

Publisher Resources

ISBN: 9781118883969Purchase bookDownloads