Learn R Programming

sfsmisc (version 0.9-4)

p.profileTraces: Plot a profile.nls Object With Profile Traces

Description

Displays a series of plots of the profile t function and the likelihood profile traces for the parameters in a nonlinear regression model that has been fitted with nls and profiled with profile.nls.

Usage

p.profileTraces(x, cex = 1, subtitle = "t-Profil-Plot und Profilspuren")

Arguments

x
an object of class nls, typically resulting from nls(.).
cex
character expansion, see par(cex =).
subtitle
a subtitle to set for the plot.

See Also

profile, and from the nls package, nls, profile.nls, plot.profile.nls.

Examples

Run this code
require(nls)
data(Puromycin)
Treat <- Puromycin[Puromycin$state == "treated", ]
fm <- nls(rate ~ T1*conc/(T2+conc), data=Treat,
          start = list(T1=207,T2=0.06))
(pr <- profile(fm)) # quite a few things..
op <- par(mfcol=1:2)
plot(pr) # -> 2 `standard' plots
par(op)
## ours:
p.profileTraces(pr)

Run the code above in your browser using DataLab