pla(data, alpha = 0.05, indexOfReference = 1, StdName = sampleLabels[indexOfReference], sampleLabels = "data", imputeMissing = FALSE, dfAdjustment = NA, dilutionRatio = NA, factor = NA, selectFun = function (array) NULL, echoData = TRUE, colors = "default", projectTitle = "", assayTitle = "", design = "", ...)
plaCRD(data, alpha = 0.05, imputeMissing = FALSE, dfAdjustment = NA, dilutionRatio = NA, factor = NA, echoData = TRUE, colors = "default", projectTitle = "", assayTitle = "")
plaRBD(data, alpha = 0.05, imputeMissing = FALSE, dfAdjustment = NA, dilutionRatio = NA, factor = NA, echoData = TRUE, colors = "default", projectTitle = "", assayTitle = "")
plaLSD(data, alpha = 0.05, imputeMissing = FALSE, dfAdjustment = NA, dilutionRatio = NA, factor = NA, echoData = TRUE, colors = "default", projectTitle = "", assayTitle = "")
samples
. By default, "data"
, the labels are extracted
from the data. If the resulting column "Sample"
from
data
has one of these values, then these rows are used in
fits and plots.
sampleLabels
.
Samples
of the input data data
.
By default, this is sampleLabels[indexOfReference]
.
TRUE
then imputation is
used for missing values. 0.05
. See pla.fit. TRUE
then the data table is
printed. impute
: epsilon
,
maxit
, and trace
.
The functions print, show, plot, and fit are available for returned objects of class pla-class of these functions. The returned object of fit has the usual methods of lm plus the function potency.
pla (also called by plaCRD, plaRBD, and
plaLSD) does the job of checking the input data, and adding
necessary variables for pla.fit and pla.plots.
The model is specified by the design
argument, or slot
of the argument data object. Similar for dfAdjustment
,
factor
, and dilutionRatio
. The preference here is
that if the argument is given to pla
, the value of this
argument is used.
Else, if the value is found in the argument object data
, that
value is used. If the argument is not given, and the value neither is
found in the argument object with data, then a default value, "crd", 0
or 1, is used. Also the significance level, and default colors and
titles for plots are set.
Last but not least, imputation of data is performed in pla,
if this is wanted, by setting imputeMissing
to TRUE
.
Thus the imputed data in the resulting object can be inspected before
the model is fitted, and the imputation is performed separated from
the reading the data.
The imputation is performed as described in Ph.Eur. (EUROPEAN
PHARMACOPOEIA). See also Bliss (1952).