| clust_methods | R Documentation |
clust classSet, get, summary, and print methods for the clust class.
## S3 method for class 'clust' summary(object, ...) ## S3 method for class 'clust' print(x, ...) ## S3 method for class 'clust' set_times(obj, newval) ## S3 method for class 'clust' set_adj(obj, newval) ## S3 method for class 'clust' set_clusters(obj, newval) ## S3 method for class 'clust' set_modres(obj, newval) ## S3 method for class 'clust' set_mns(obj, newval) ## S3 method for class 'clust' set_dat(obj, newval) ## S3 method for class 'clust' set_coords(obj, newval) ## S3 method for class 'clust' set_methodspecs(obj, newval) ## S3 method for class 'clust' set_wmfs(obj, newval) ## S3 method for class 'clust' set_wpmfs(obj, newval) ## S3 method for class 'clust' get_times(obj) ## S3 method for class 'clust' get_adj(obj) ## S3 method for class 'clust' get_clusters(obj) ## S3 method for class 'clust' get_modres(obj) ## S3 method for class 'clust' get_mns(obj) ## S3 method for class 'clust' get_dat(obj) ## S3 method for class 'clust' get_coords(obj) ## S3 method for class 'clust' get_methodspec(obj) ## S3 method for class 'clust' get_wmfs(obj) ## S3 method for class 'clust' get_wpmfs(obj)
object, x, obj |
An object of class |
... |
Not currently used. Included for argument consistency with existing generics. |
newval |
A new value, for the |
summary.clust produces a summary of a clust object.
A print.clust method is also available. For clust objects,
set_* and get_* methods are available for all slots (see
the documentation for clust for a list). The set_* methods
just throw an error, to prevent breaking the consistency between the
slots of a clust object.
Daniel Reuman, reuman@ku.edu
clust
sig<-matrix(.8,5,5)
diag(sig)<-1
lents<-50
if (requireNamespace("mvtnorm",quietly=TRUE))
{
dat1<-t(mvtnorm::rmvnorm(lents,mean=rep(0,5),sigma=sig))
dat2<-t(mvtnorm::rmvnorm(lents,mean=rep(0,5),sigma=sig))
}else
{
dat1<-t(matrix(rep(rnorm(lents),times=5),lents,5))
dat2<-t(matrix(rep(rnorm(lents),times=5),lents,5))
}
dat<-rbind(dat1,dat2)
times<-1:lents
dat<-cleandat(dat,times,clev=1)$cdat
coords<-data.frame(Y=rep(0,10),X=1:10)
method<-"coh.sig.fast"
h<-clust(dat,times,coords,method,nsurrogs = 50)
#nsurrogs should be much higher for a real application
get_times(h)
summary(h)
print(h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.