compareMean: compareMean

View source: R/fraping.R

compareMeanR Documentation

compareMean

Description

Compare the mean recovery curves between two data sets.

Usage

compareMean(
  data1,
  data2,
  fit,
  type = "RCB",
  area = T,
  stand = T,
  simulated = F,
  Nsim = 50,
  seed = NA,
  saveable = !is.na(seed),
  conf.level = 0.95,
  alternative = "two.sided",
  return = F,
  p.value = T,
  npoints = 100,
  new.plot = T,
  plot.lines = T,
  plot.points = F,
  col = NULL,
  ...
)

Arguments

data1

The first data set, of class dataFrap.class.

data2

The second data set, of class dataFrap.class.

fit

An optional fit object obtained from the newFit function.

type

A vector or list of recovery curve types. Default is "RCB".

area

A vector or list indicating whether to use area normalization. Default is TRUE.

stand

A vector or list indicating whether to apply standardization. Default is TRUE.

simulated

A vector or list indicating whether to perform simulations. Default is FALSE.

Nsim

A vector or list specifying the number of simulations to perform. Default is 50.

seed

A vector or list specifying the seed for the random number generator. Default is NA (no seed).

saveable

A vector or list indicating whether to save the simulation results. Default is TRUE if seed is provided, otherwise FALSE.

conf.level

Confidence level for hypothesis testing. Default is 0.95.

alternative

The alternative hypothesis for hypothesis testing. Default is "two.sided".

return

Boolean indicating whether to return the test results. Default is FALSE.

p.value

Boolean indicating whether to plot the p-value. Default is TRUE.

npoints

Number of points to use for generating the comparison plot. Default is 100.

new.plot

Boolean indicating whether to create a new plot. Default is TRUE.

plot.lines

Boolean indicating whether to plot the comparison as lines. Default is TRUE.

plot.points

Boolean indicating whether to plot the comparison as points. Default is FALSE.

col

Colors to use for the plot. If NULL, colors are automatically assigned.

...

Additional plot parameters.

Value

If return is TRUE, returns the test results. Otherwise, generates the comparison plot.

Examples

# Compare the mean recovery curves between two data sets
compareMean(data1, data2, fit = myFit)

# Compare the mean recovery curves and return the test results
result <- compareMean(data1, data2, fit = myFit, return = TRUE)
print(result)


artitzco/fraping documentation built on June 1, 2024, 10:08 a.m.