| 1 |
\name{p.profileTraces} |
| 2 |
\alias{p.profileTraces} |
| 3 |
\title{Plot a profile.nls Object With Profile Traces} |
| 4 |
\description{ |
| 5 |
Displays a series of plots of the profile t function and the likelihood |
| 6 |
profile traces for the parameters in a nonlinear regression model that |
| 7 |
has been fitted with \code{\link{nls}} and profiled with |
| 8 |
\code{\link{profile.nls}}. |
| 9 |
} |
| 10 |
\usage{ |
| 11 |
p.profileTraces(x, cex = 1, |
| 12 |
subtitle = paste("t-Profiles and traces of ", |
| 13 |
deparse(attr(x,"summary")$formula))) |
| 14 |
} |
| 15 |
\arguments{ |
| 16 |
\item{x}{an object of class \code{"profile.nls"}, typically resulting from |
| 17 |
\code{profile(\link[stats]{nls}(.))}, see |
| 18 |
\code{\link[stats]{profile.nls}}.} |
| 19 |
\item{cex}{character expansion, see \code{\link{par}(cex =)}.} |
| 20 |
\item{subtitle}{a subtitle to set for the plot. The default now |
| 21 |
includes the \code{\link{nls}()} formula used.} |
| 22 |
} |
| 23 |
%- \details{ |
| 24 |
% ......... |
| 25 |
%- } |
| 26 |
\author{Andreas Ruckstuhl, \R port by Isabelle Flückiger and Marcel Wolbers} |
| 27 |
\note{the \pkg{stats}-internal \code{stats:::plot.profile.nls} plot |
| 28 |
method just does \dQuote{the diagonals}. |
| 29 |
} |
| 30 |
\seealso{\code{\link{profile}}, and \code{\link{nls}} (which has |
| 31 |
unexported \code{profile} and \code{stats:::plot.profile.nls} methods). |
| 32 |
} |
| 33 |
\examples{ |
| 34 |
require(stats) |
| 35 |
data(Puromycin) |
| 36 |
Treat <- Puromycin[Puromycin$state == "treated", ] |
| 37 |
fm <- nls(rate ~ T1*conc/(T2+conc), data=Treat, |
| 38 |
start = list(T1=207,T2=0.06)) |
| 39 |
(pr <- profile(fm)) # quite a few things.. |
| 40 |
op <- par(mfcol=1:2) |
| 41 |
plot(pr) # -> 2 'standard' plots |
| 42 |
par(op) |
| 43 |
## ours: |
| 44 |
p.profileTraces(pr) |
| 45 |
} |
| 46 |
\keyword{hplot} |
| 47 |
\keyword{nonlinear} |