Figured it out.

given that object 'cit' is of class S4, extracting information works as
follows:

1)finding out names of slots in object 'cit'

> slotNames(cit)
 [1] "x"         "Z0"        "Z1"        "ZK"        "type"      "model"    
 [7] "ecdet"     "lag"       "P"         "season"    "dumvar"    "cval"     
[13] "teststat"  "lambda"    "Vorg"      "V"         "W"         "PI"       
[19] "DELTA"     "GAMMA"     "R0"        "RK"        "bp"        "spec"     
[25] "call"      "test.name"

2) extracting info from wanted slot
> cit@teststat
[1]  5.348440  9.068113 10.643293



--
View this message in context: 
http://r.789695.n4.nabble.com/object-of-type-S4-is-not-subsettable-tp4529063p4529432.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to