Usage
pvclust(data, method.hclust="average",
method.dist="correlation", use.cor="pairwise.complete.obs",
nboot=1000, r=seq(.5,1.4,by=.1), store=FALSE, weight=FALSE)
parPvclust(cl=NULL, data, method.hclust="average",
method.dist="correlation", use.cor="pairwise.complete.obs",
nboot=1000, r=seq(.5,1.4,by=.1), store=FALSE, weight=FALSE,
init.rand=TRUE, seed=NULL, iseed=NULL)Arguments
data
numeric data matrix or data frame.
method.hclust
the agglomerative method used in hierarchical clustering. This
should be (an abbreviation of) one of "average", "ward",
"single", "complete", "mcquitty",
"median"
method.dist
the distance measure to be used. This should be (an
abbreviation of) one of "correlation", "uncentered",
"abscor" or those which are allowed for method
argument in dist functi
use.cor
character string which specifies the method for
computing correlation with data including missing values. This
should be (an abbreviation of) one of "all.obs",
"complete.obs" or "pairwise.complete.obs"
nboot
the number of bootstrap replications. The default is
1000.
r
numeric vector which specifies the relative sample sizes of
bootstrap replications. For original sample size $n$ and
bootstrap sample size $n'$, this is defined as $r=n'/n$.
store
locical. If store=TRUE, all bootstrap replications
are stored in the output object. The default is FALSE.
cl
a cluster object created by package parallel or snow.
If NULL, use the registered default cluster. weight
logical. If weight=TRUE, resampling is made by
weight vector instead of index vector. Useful for large r
value (r>10). Currently, available only for distance
"correlation" and "absc
init.rand
logical. If init.rand=TRUE, random number generators are initialized.
Use iseed argument to achieve reproducible results.
seed
integer vector of random seeds. It should have the same
length as cl. This argument is duplicated and will be unavailable in the future. Consider using iseed instead.
iseed
an integer to be passed to clusterSetRNGStream when init.rand=TRUE.