RPPAFit-class {SuperCurve} | R Documentation |
Objects of the RPPAFit
class represent the results of
fitting a four-parameter logistic model to the dilution series in a
reverse-phase protein array experiment.
## S4 method for signature 'RPPAFit': summary(object, ...) ## S4 method for signature 'RPPAFit': coef(object, ...) ## S4 method for signature 'RPPAFit': coefficients(object, ...) ## S4 method for signature 'RPPAFit': fitted(object, type=c("Y", "y", "X", "x"), ...) ## S4 method for signature 'RPPAFit': residuals(object, type=c("raw", "standardized", "linear"), ...) ## S4 method for signature 'RPPAFit': resid(object, ...) ## S4 method for signature 'RPPAFit': image(x, type=c("Residuals", "StdRes", "LinRes","X", "Y"), ...) ## S4 method for signature 'RPPAFit': hist(x, type=c("Residuals", "StdRes", "LinRes"), xlab = NULL, main = NULL, ...) ## S4 method for signature 'RPPAFit': plot(x, y, type=c("cloud", "series", "individual"), xlab="Log Concentration", ylab="Intensity", colors=NULL, ...)
object |
A RPPAFit object. |
x |
A RPPAFit object. |
type |
A list of options describing the type of fitted values, residuals, images, histograms, or plots. |
xlab |
Graphics parameter; how the x-axis should be labeled. |
ylab |
Graphics parameter; how the y-axis should be labeled. |
main |
Character string used as a title for the plot. |
y |
not used. |
colors |
A graphical parameter, used only if
type='series' , to color the lines connecting different
dilution series. Eight default colors are used if the argument is NULL. |
... |
The usual extra arguments for generic or plotting routines. |
The RPPAFit
class holds the results of fitting a
four-parameter joint logistic model to all the dilution series on a
reverse-phase protein array. For details on how the model is fit, see
the RPPAFit
function. The basic mathematical model
is given by
Y = α + β*g(gamma*(X+delta_i)),
where Y is the observed intensity and X is the designed dilution step. The heart of the model is the function g(x) = e^x/(1+e^x), which is the inverse of the logistic function
f(x) = log(p/(1-p)).
By fitting a joint model, we assume that the parameters α, β, and gamma are the same for all dilution series on the array. The real point of the model, however, is to be able to draw inferences on the delta_i, which represent the (log) concentrations of the protein present in different dilution series.
The summary
method has no return value.
The coef
and coefficients
methods return a named vector
of length three.
The fitted
method returns a numeric vector.
The resid
and residuals
methods return a numeric vector.
The image
method invisibly returns the object x
on which
it was invoked.
The hist
method returns an object of the histogram
class.
The plot
method invisibly returns the object x
on which
it was invoked.
Objects should be constructed using the RPPAFit
function.
call
:rppa
:design
:measure
:method
:coefficients
:concentration
:lower
:upper
:conf.width
:intensities
:linear.p
:ss.ratio
:warn
:version
:RPPAFit
object. At present, this only reports the function call used to
fit the model.coefficients
.type
argument. The fitted log concentrations are
returned when type
is set to either uppercase or
lowercase 'x'. In the notation used above to describe the model,
these fitted values are given by X_i = X + delta_i.fitted
function.
The 'standardized' residuals are obtained by standardizing the
raw residuals. The 'linear' residuals, by contrast, arise from
a reinterpretation of the model. Converting from the observed
intensity scale by a logistic transformation yields
f((Y - α)/β) = gamma*(X + delta_i) = gamma*X_i.
To compute the linear residuals, we use the observed Y values on the left side and the fitted X values on the right side and take the difference.
residuals
.image
method produces a 'geographic' plot of the
residuals or of the fitted values, depending on the value of the
type
argument. The implementation reuses code from the
image
method for an RPPA
object.hist
method produces a histogram of
the residuals. The exact form of the residuals being displayed
depends on the value of the type
argument.plot
method
produces a diagnostic plot of the model fit. The default
type
, 'cloud', simply plots the fitted X values
against the observed Y values as a cloud of points around
the jointly estimated sigmoid curve. The 'series' plot uses
different colored lines to join points belonging to the same
dilution series. The 'individual' plot produces separate graphs
for each dilution series, laying each one alongside the jointly
fitted sigmoid curve.Kevin R. Coombes <kcoombes@mdanderson.org>
RPPAFit
, RPPA
,
RPPADesign
, hist
path <- system.file("rppaTumorData", package="SuperCurve") erk2 <- RPPA("ERK2.txt", path=path) design <- RPPADesign(erk2, grouping="blockSample", controls=list("neg con", "pos con")) fit.nls <- RPPAFit(erk2, design, "Mean.Net") image(fit.nls, measure="Residuals") image(fit.nls, measure="LinRes") plot(fit.nls, type="cloud") fit.q <- RPPAFit(erk2, design, "Mean.Net", method="quantiles") hist(fit.q, type="StdRes") plot(fit.q, type="series") coef(fit.nls) coef(fit.q) plot(fitted(fit.q), resid(fit.q))