[R] Result show the values of fitting gamma parameter
    smart hendsome 
    putra_autumn86 at yahoo.com
       
    Mon Jan 29 09:25:22 CET 2018
    
    
  
Hi,
Let say I have data by two columns A and B, and I have fit each column using the gamma distribution by 'fitdist' . I just want the result show only the shape and rate only. 
Eg:
library(fitdistrplus)
A <-c(1,2,3,4,5)
B<-c(6,7,8,9,10)
C <-cbind(A,B)
apply(C, 2, fitdist, "gamma")
Output show like this:
$A
Fitting of the distribution ' gamma ' by maximum likelihood 
Parameters:
      estimate Std. Error
shape 3.702253  2.2440052
rate  1.234126  0.8011369
$B
Fitting of the distribution ' gamma ' by maximum likelihood 
Parameters:
       estimate Std. Error
shape 31.300800   19.69176
rate   3.912649    2.48129
I want the output to be like this:
                 A                    B
 shape 3.702253  31.300800rate  1.234126  3.912649
Can anyone solve my problem? Many thanks. 
Regards,
Zuhri
	[[alternative HTML version deleted]]
    
    
More information about the R-help
mailing list