223
plot.profile.nls <- function(x, levels, conf = c(99, 95, 90, 80, 50)/100,
225
function(x, levels, conf = c(99, 95, 90, 80, 50)/100, absVal = TRUE, ...)
227
228
dfres <- attr(obj, "summary")$df[2]
230
230
levels <- sqrt(qf(pmax(0, pmin(1, conf)), 1, dfres))
234
232
levels <- levels[levels > 0]
235
233
warning("levels truncated to positive values only")
238
confstr <- paste(format(100 * pf(levels^2, 1, dfres)), "%", sep = "")
240
235
mlev <- max(levels) * 1.05
242
237
opar <- par(mar = c(5, 4, 1, 1) + 0.1)