R 使用fDISFIT对象

R 使用fDISFIT对象,r,s4,R,S4,我使用“fBasics”软件包获得了稳定分布的拟合: 现在R对我说: > class(lstab) [1] "fDISTFIT" attr(,"package") [1] "fBasics" 我应该如何访问lstab的值?(注:用于配合的功能为stableFit) 使用FitDisr(),可以使用$符号访问对象,但在那里它不起作用: > lstab$title Error in lstab$title : $ operator not defined for this S4 cla

我使用“fBasics”软件包获得了稳定分布的拟合:

现在R对我说:

> class(lstab)
[1] "fDISTFIT"
attr(,"package")
[1] "fBasics"
我应该如何访问lstab的值?(注:用于配合的功能为stableFit)

使用FitDisr(),可以使用$符号访问对象,但在那里它不起作用:

> lstab$title
Error in lstab$title : $ operator not defined for this S4 class
例如:

> lstab@fit
$estimate
    alpha      beta     gamma     delta 
   0.8750    0.1260  299.7113 2917.4148 
str(lstab)
Formal class 'fDISTFIT' [package "fBasics"] with 6 slots
  ..@ call       : language .qStableFit(x = x, doplot = doplot, title = title, description = description)
  ..@ model      : chr "Stable Distribution"
  ..@ data       :'data.frame': 231635 obs. of  1 variable:
  .. ..$ x: num [1:231635] 2658 2789 3184 3033 2658 ...
  ..@ fit        :List of 1
  .. ..$ estimate: Named num [1:4] 0.875 0.126 299.711 2917.415
  .. .. ..- attr(*, "names")= chr [1:4] "alpha" "beta" "gamma" "delta"
  ..@ title      : chr "Stable Parameter Estimation"
  ..@ description: chr "Thu Apr 17 16:07:36 2014 by user: "
> lstab@fit
$estimate
    alpha      beta     gamma     delta 
   0.8750    0.1260  299.7113 2917.4148