compareParam: compareParam

View source: R/fraping.R

compareParamR Documentation

compareParam

Description

Compare a specific parameter between two data sets.

Usage

compareParam(
  data1,
  data2,
  fit,
  param,
  type = "RCB",
  area = T,
  stand = T,
  simulated = F,
  Nsim = 50,
  seed = NA,
  conf.level = 0.95,
  alternative = "two.sided",
  return = F,
  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.

param

The name of the parameter to compare.

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).

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.

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 parameter between two data sets
compareParam(data1, data2, fit = myFit, param = "alpha")

# Compare the parameter and return the test results
result <- compareParam(data1, data2, fit = myFit, param = "alpha", return = TRUE)
print(result)


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