slopelm: Compute cluster-mass statistics using the mean and the slope...

Description Usage Arguments Details Value Author(s)

Description

Compute the clustermass statistic on the combined hypothesis that the slope or the mean of the signal are different from zero.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
slopelm(
  formula,
  data = NULL,
  np = 5000,
  method = NULL,
  type = "permutation",
  test = "fisher",
  threshold = NULL,
  aggr_FUN = NULL,
  slope_FUN = slope_lpepa,
  multcomp = "slope",
  ...
)

Arguments

formula

A formula object where the left part is a matrix defined in the global environnement.

data

A data frame for the independant variables.

np

The number of permutations. Default value is 5000.

method

A character string indicating the method used to handle nuisance variables. Default is NULL and will switch to "freedman_lane" for the fixed effects model and to "Rd_kheradPajouh_renaud" for the repeated measures ANOVA. See lmperm or aovperm for details on the permutation methods.

type

A character string indicating the type of resampling. Default is "permutation" and "signflip" is also available.

test

A character string to specify the name of the test. Default is "fisher". "t" is available for the fixed effects model.

threshold

A numerical vector that specify the limit of a cluster for the "clustermass" multiple comparisons procedure. If it is a vector each value will be associated to an effect. If it is vector the same threshold will be used for each test. Default value is NULL and will compute a threshold based on the 0.95 quantile of the choosen test statistic.

aggr_FUN

A function that will be used to aggregate the statistics of a cluster into one scalar. Default is the sum of squares fot t statistic and sum for F statistic.

slope_FUN

A function that will be used to compute the slope of the response variables. Default is slope_lpepa (local polynomial) and slope_spline or slope_diff are also available.

multcomp

A vector of character defining the methods of multiple comparisons to compute. Default is "slope", and "glue" is an additional option available. "slope" considers tests on signals and slopes equally and "glue" uses tests on slopes only to bind clusters.

...

Futher arguments, see details.

Details

See the clusterlm function for detail about

Value

A list containing : a table of the clusters, or a multcomp object for the other multiple comparison procedures. Use the plot.slopelm method to have a quick overview of the results.

Author(s)

jaromil.frossard@unige.ch


jaromilfrossard/permucoSlope documentation built on March 30, 2020, 4:08 p.m.