Learn R Programming

wsyn (version 1.0.4)

wlm_methods: Basic methods for the wlm class

Description

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

Usage

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

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

# S3 method for wlm set_times(obj, newval)

# S3 method for wlm set_timescales(obj, newval)

# S3 method for wlm set_coefs(obj, newval)

# S3 method for wlm set_modval(obj, newval)

# S3 method for wlm set_coher(obj, newval)

# S3 method for wlm set_dat(obj, newval)

# S3 method for wlm set_wtopt(obj, newval)

# S3 method for wlm set_norm(obj, newval)

# S3 method for wlm set_wts(obj, newval)

# S3 method for wlm get_times(obj)

# S3 method for wlm get_timescales(obj)

# S3 method for wlm get_coefs(obj)

# S3 method for wlm get_modval(obj)

# S3 method for wlm get_coher(obj)

# S3 method for wlm get_dat(obj)

# S3 method for wlm get_wtopt(obj)

# S3 method for wlm get_norm(obj)

# S3 method for wlm get_wts(obj)

Arguments

object, x, obj

An object of class wlm

...

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

newval

A new value, for the set_* methods

Value

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

See Also

wlm

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<-2
pred<-c(1,3,4)
norm<-"powall"
h<-wlm(dat,times,resp,pred,norm)
get_times(h)
summary(h)
print(h)

# }

Run the code above in your browser using DataLab