Description Usage Arguments Value References Examples
Test the mean or differences in means of functional data are zero or not.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
X |
a matrix (one-sample) or a list of matrices (multiple-samples), with each row representing observations from a function. |
alpha |
significance level; default value: 0.05. |
tau |
real number(s) in the interval |
B |
the number of bootstrap replicates; default value: |
pairs |
a matrix with two columns, only used when there are more than two populations, where each row specifies a pair of populations for which the SCI is constructed; default value: |
transform |
TRUE/FALSE, whether to transform the data into frequency domain via a basis; default: TRUE. |
K |
a positive integer specifying the number of basis functions for transforming the data when |
verbose |
T/F to indicate whether to output auxillary information |
basis |
basis for transformation, for which possible options are |
tau.method |
the method to select tau; possible values are 'MGB' (default), 'MGBA', 'WB' and 'WBA' (see |
R |
the number of Monte Carlo replicates for estimating the empirical size; default: |
ncore |
the number of CPU cores to be used; default value: 1. |
cuda |
T/F to indicate whether to use CUDA GPU implementation when the package |
nblock |
the number of block in CUDA computation |
tpb |
number of threads per block; the maximum number of total number of parallel GPU threads is then |
seed |
the seed for random number generator |
a list that includes all objects returned by hdsci
and the following additional objects:
reject
a T/F value indicating whether the hypothesis is rejected.
accept
a T/F value indicating whether the hypothesis is rejected.
rej.paris
optionally gives the pairs of samples that lead to rejection.
pvalue
the p-value of the test.
Lopes2020hdanova
\insertRefLin2020hdanova
1 2 3 4 5 6 7 8 9 10 11 | # simulate a dataset of 4 samples
X <- lapply(1:4, function(g) synfd::reg.fd(mu=0.05*g, X=synfd::gaussian.process(), n=30, m=50)$y)
# test for the equality of mean vectors with pairs={(1,3),(2,4)}
res <- fdtest(X,alpha=0.05,pairs=matrix(1:4,2,2),tau=c(0.4,0.5,0.6))
# get p-value
res$pvalue
# get selected tau
res$selected.tau
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.