Learn R Programming

wsyn (version 1.0.4)

wlmtest_methods: Basic methods for the wlmtest class

Description

Set, get, summary, and print methods for the wlmtest class.

Usage

# S3 method for wlmtest
summary(object, ...)

# S3 method for wlmtest print(x, ...)

# S3 method for wlmtest set_wlmobj(obj, newval)

# S3 method for wlmtest set_drop(obj, newval)

# S3 method for wlmtest set_signif(obj, newval)

# S3 method for wlmtest set_ranks(obj, newval)

# S3 method for wlmtest set_bandp(obj, newval)

# S3 method for wlmtest get_wlmobj(obj)

# S3 method for wlmtest get_drop(obj)

# S3 method for wlmtest get_signif(obj)

# S3 method for wlmtest get_ranks(obj)

# S3 method for wlmtest get_bandp(obj)

Arguments

object, x, obj

An object of class wlmtest

...

Not currently used. Included for argument consistency with existing generics.

newval

A new value, for the set_* methods

Value

summary.wlmtest produces a summary of a wlmtest object. A print.wlmtest method is also available. For wlmtest objects, set_* and get_* methods are available for all slots (see the documentation for wlmtest for a list). The set_* methods just throw an error, to prevent breaking the consistency between the slots of a wlmtest object.

See Also

wlmtest

Examples

Run this code
# NOT RUN {
times<-1:30
dat<-list(v1=matrix(rnorm(300),10,30),v2=matrix(rnorm(300),10,30),v3=matrix(rnorm(300),10,30),
          v4=matrix(rnorm(300),10,30),v5=matrix(rnorm(300),10,30))
dat<-lapply(FUN=function(x){cleandat(x,times,1)$cdat},X=dat)
resp<-1
pred<-2:3
norm<-"powall"
wlmobj<-wlm(dat,times,resp,pred,norm)
drop<-3
sigmethod<-"fft"
h<-wlmtest(wlmobj,drop,sigmethod,nrand=10)
get_times(get_wlmobj(h))
summary(h)
print(h)

# }

Run the code above in your browser using DataLab