[R] error message in fitdistr

vincent.stoliaroff@sgcib.com vincent.stoliaroff at sgcib.com
Tue Aug 5 12:34:37 CEST 2003


Hi R lovers

Here is a numerical vector test
> test
  [1] 206  53 124 112  92  77 118  75  48 176  90  74 107 126  99  84 114
147  99 114  99  84  99  99  99  99  99 104   1 159 100  53
 [33] 132  82  85 106 136  99 110  82  99  99  89 107  99  68 130  99  99
110  99  95 153  93 136  51 103  95  99  72  99  50 110  37
 [65] 102 104  92  90  94  99  76  81 109  91  98  96 104 104  93  99 125
89  99  99 108  90 105  92 106 103  99  99  99  94 102 103
 [97]  97  99 118  91 110  99  99  99  98 105  99  97  99 101  95  98  99
102  99  99  99  99  95  93  86  96 113  87 112 120  71  99
[129]  99  81  96 113  85 116 112  84 120  88  97 104  99 105 153 103  92
99  99  99  90 108 104  99 105  97  94  93  99  85  91  99
[161] 118  99  91  99 103 101 102  96  99 123  85 101  88  99  93  73  97
89  94  69  74  99  97  91  92

Assuming it follows a lognormal distribution I'd like to determine the mean
and the sd thanks to maximum likelihood estimation

> fitdistr(test,"lognormal",start=list(200,10))
Error in print.fitdistr(structure(list(estimate = c(4.54666263736726,  :
        more elements supplied than there are to replace

I chose the parameter start randomly

I don't understand the error message. Has anybody ever encountered such
one?
thanks for the help

have a wonderful day




******************************************************************
The sender's email address has changed to 
firstname.lastname@ sgcib.com. You may want to update your 
personal address book. Please see http://www.sgcib.com for more 
information.
                               **
This message and any attachments (the "message") are confide...{{dropped}}




More information about the R-help mailing list