opt-class {TIMP} | R Documentation |
Class "opt" stores options for fitting and plotting
Description
Class "opt" stores options for fitting and plotting applicable to all model types
Details
See kinopt-class
, specopt-class
and
massopt-class
for
the specification of fitting/plotting options that are specific to the
class type.
Objects from the Class
Objects can be created by calls of the form new("opt", ...)
or
opt(...)
.
Slots
- getStartTri
- imagepal
- maxfev
- minFactor
- nnlscrit
- noplotest
- notraces
- optimmethod
- parscale
- residtraces
- selectedtraces
- sumnls
- trilinear
- triStart
- writedata
- writefitivo
- xlim
algorithm
:Object of class
"character"
that defaults toalgorithm="nls"
, so that the functionnls
is used to optimize nonlinear parameters under least squares criteria. Other options arenls.lm
:optimize nonlinear parameters under least squares criteria using
nls.lm
optim
:optimize nonlinear parameters under poisson regression criteria with the Nelder-Mead algorithm in
optim
; if this option is used then it MUST be used in conjunction withnnls=TRUE
. Currently, it must also be used withstderrclp=FALSE
.
nnls
:Object of class
"logical"
that defaults toFALSE
. Ifnnls=TRUE
, constrain the conditionally linear parameters to nonnegativity via a nonnegative least squares algorithm as implemented via the functionnnls
from the package by the same name.writecon
:Object of class
"logical"
that defaults toFALSE
; if true then concentrations are written to a txt file; row labels arex
writespec
:Object of class
"logical"
that defaults toFALSE
; ifTRUE
then spectra are written to a txt file; row labels arex2
writenormspec
:Object of class
"logical"
that defaults toFALSE
; ifTRUE
then normalized spectra are written to a txt file; row labels arex2
writefit
:Object of class
"logical"
that defaults toFALSE
; ifTRUE
then fit is written to a txt file; row and column labels arex
andx2
writeclperr
:Object of class
"logical"
that defaults to FALSE; if true then the error bars for clp are written to a txt file. This option is only sensible withstderrclp=TRUE
.output
:Object of class
"character"
that defaults to"ps"
, which means that plots written to file are postscript. Alternatively, specifyoutput = "pdf"
, and plots are written as pdf filesaddfilename
:Object of class
"logical"
that, for each data file, tries to add the filename to plots associated with output for that data.residplot
:Object of class
"logical"
defaults toFALSE
; ifTRUE
generate a plot of residuals in a separate window.adddataimage
:Object of class
"logical"
defaults toFALSE
; ifTRUE
adding imageplot of data in summary plot.plot
:Object of class
"logical"
that defaults toTRUE
; ifFALSE
then do not write output in the form of plots and other windows to the screen.divdrel
:Object of class
"logical"
that defaults toFALSE
; ifTRUE
, plot traces and concentration profiles divided by the dataset scaling parameters where they apply; this allows for the fit of datasets having different intensities on the same scale.plotkinspec
:Object of class
"logical"
that defaults toFALSE
; ifTRUE
, generates a separate plot of the spectra associated with the components that are not a part of a coherent artifact/scatter model.superimpose
:Object of class
"vector"
containing dataset indices whose results should be superimposed in plotsxlab
:Object of class
"character"
containing label for x-axis, e.g.,"nanoseconds"
or"picoseconds"
ylab
:Object of class
"character"
containing label for y-axis, e.g.,"wavelength"
title
:Object of class
"character"
containing title to write at the top of plots.makeps
:Object of class
"character"
containing prefix to plot files written to postscript; if present postscript will be written. Note that this string is also used as the preffix of txt output fileslinrange
:Object of class
"numeric"
giving linear range of time axis for plotting; time will be plotted linearly from -linrange to linrange and plotted on a logarithmic (base 10) axis elsewheresummaryplotrow
:Object of class
"numeric"
giving number of rows in summary plot; defaults to4
summaryplotcol
:Object of class
"numeric"
giving number of columns in summary plot; defaults to4
iter
:Object of class
"numeric"
giving number of iterations to optimize model parameters; ifnls=FALSE
so that the Levenberg-Marquardt algorithm is applied, theniter
is interpreted as the maximum number of residual function evaluations (see the help page of the functionnls.lm
for details)paropt
:Object of class
"list"
of graphical parameters in formatpar(...)
to apply to plots.stderrclp
:Object of class
"logical"
that defaults toFALSE
; ifTRUE
, estimates of the standard error of conditionally linear parameters are madeaddest
:Object of class
"vector"
containing character strings of which parameter estimates should be added to the summary plot, e.g.,addest = c("kinpar", "irfpar")
- kinspecerr
Object of class
"logical"
that defaults toFALSE
; ifTRUE
, add standard error estimates to the clp a plot generated withkinspecest=TRUE
orplotkinspec=TRUE
. This option can only be used if the estimates were generated during fitting via the optionstderrclp=TRUE
- xlimspec
Object of class
"vector"
that defaults tovector()
; if changed, it should specify the desired x-limits of the plot of clp- ylimspec
Object of class
"vector"
that defaults tovector()
; if changed, it should specify the desired y-limits of the plot of clp. In the case of plotting the results of FLIM image analysis,ylimspec
can be used to determine the range used in the image plot of lifetimes.- ylimspecplus
Object of class
"vector"
that defaults tovector()
; if changed, the first value should specify a vector to add to the y-limits of the plot of clp- samespecline
Object of class
"logical"
that defaults toFALSE
; ifTRUE
, then the line-type for clp is the same for all datasets- specinterpol
Object of class
"logical"
that defaults toFALSE
; ifTRUE
, use spline instead of lines between the points representing estimated clp- specinterpolpoints
Object of class
"logical"
that defaults toTRUE
; ifTRUE
, add points representing the actual estimates for clp to plots of the curves representing smoothed clp- specinterpolseg
Object of class
"numeric"
that defaults to50
; represents the number of segments used in a spline-based representation of clp- specinterpolbspline
Object of class
"logical"
that defaults toFALSE
; determines whether a B-spline based representation of clp is used (whenspecinterpol=TRUE
) or a piecewise polynomial representation- normspec
Object of class
"logical"
that determines whether clp are normalized in plots- writespecinterpol
Object of class
"logical"
that defaults toFALSE
; ifTRUE
, a spline-based representation of clp is written to ASCII files- nlsalgorithm
Object of class
"character"
that defaults to"default"
and determines the algorithm used bynls
, ifnls
is used in optimization. Seehelp(nls)
for other possibilities, such as"port"
, which is more stable with respect to starting values but requires more time.- ltyfit
Object of class
"numeric"
if given, sets the line type of the fit in plots of the fit/data; seelty
inhelp(par)
for options.- ltydata
Object of class
"numeric"
if given, sets the line type of the data in plots of the fit/data; seelty
inhelp(par)
for options.- colfit
Object of class
"vector"
if given, sets the color of the fit corresponding to each dataset in plots of the fit/data; seecol
inhelp(par)
for options. If givenlength(colfit)
must be equal to the number of datasets in the analysis- coldata
Object of class
"vector"
if given, sets the color of the data for each dataset in plots of the fit/data; seecol
inhelp(par)
for options. If given,length(coldata)
must be equal to the number of datasets in the analysis
Author(s)
Katharine M. Mullen, Ivo H. M. van Stokkum