Learn R Programming

MBmca (version 1.0.1-3)

MFIerror: Multiple comparison of the temperature dependent variance of the refMFI

Description

MFIerror is used for a fast multiple comparison of the temperature dependent variance of the refMFI. MFIerror returns an object of the class data.frame with columns ``Temperature'', ``Location'' (Mean, Median), ``Deviation'' (Standard Deviation, Median Absolute Deviation) and ``Coefficient of Variation''.

Usage

MFIerror(
  x,
  y,
  CV = FALSE,
  RSD = FALSE,
  rob = FALSE,
  errplot = TRUE,
  type = "p",
  pch = 19,
  length = 0.05,
  col = "black"
)

Arguments

x

is the column of a data frame for the temperature.

y

are multiple columns of fluorescence values from a data.frame (e.g., [, c(1:n)]).

CV

If CV is true the coefficient of variation (RSD, CV) is plotted. If set to FLASE the deviation as Standard Deviation or Median Absolute Deviation is plotted.

RSD

Setting the option RSD = TRUE shows the relative standard deviation (RSD) in percent.

rob

Using the option rob as TRUE the median and the median absolute deviation (MAD) is plotted instead of the mean and standard deviation.

errplot

sets MFIerror() to plot the results (default). In the default setting (CV = FALSE) the mean with the standard deviations is plotted.

type

is a graphical parameter setting the plot use lines, points or both (see plot).

pch

is a graphical parameter used to define the symbol used in the plot.

length

length is a graphical parameter used to define the length of the error bar used in the plot.

col

col is a graphical parameter used to define the color of the error bar used in the plot.

Value

res

returns a data.frame containing the "Temperature", "Location" (mean, median), "Deviation" (standard deviation, median absolute deviation), "Coefficient of Variance" (CV, RSD) sequential in the columns.

See Also

mcaSmoother

Examples

Run this code
# NOT RUN {
# First Example
# Temperature dependent variance of the refMFI using standard measures 
# (Mean, Standard Deviation (SD)).
# Use Standard Deviation (SD) in the plot

data(MultiMelt)
MFIerror(MultiMelt[, 1], MultiMelt[, c(2L:13)])

# Second Example
# Temperature dependent relative variance of the refMFI using robust 
# measures (Median, Median Absolute Deviation (MAD)). The parameter 
# errplot is set to FALSE in order to prevent the plot of the 
# coefficient of variation versus the temperature.

MFIerror(MultiMelt[, 1], MultiMelt[, c(2L:13)], errplot = FALSE, 
	  RSD = TRUE, rob = TRUE)

# Third Example
# Temperature dependent relative variance of the refMFI using 
# robust measures (Median, Median Absolute Deviation (MAD)).
MFIerror(MultiMelt[, 1], MultiMelt[, c(2L:13)], RSD = TRUE, 
  rob = TRUE)

# }

Run the code above in your browser using DataLab