Re: [R] Function for Distribution Fitting

2022-10-26 Thread JRG via R-help
"all possible probability distributions"

I doubt that is a finite set.  To select "a bunch of them" would seem to
imply a reduction of that set based on what's
possible/promising/pertinent in your specific problem.  IMHO, what's the
"most suitable distribution" tends to depend partly on knowledge of the
subject matter of your problem.

Doesn't that put you back in your present situation?



---JRG




On 10/26/22 09:41, Paul Bernal wrote:
> Dear friends from the R community,
>
> Hope you are all doing great. So far, whenever I need to perform
> distribution fitting on a particular dataset, I make use of R package
> fitdistrplus.
>
> However, distribution fitting using the fitdist() function from
> fitdistrplus is rather manual (you need to specify which probability
> distribution you are trying to fit), and it would be more convenient if the
> function tested all possible probability distributions (or a bunch of them)
> and then estimates the parameters and suggests the most suitable
> distribution.
>
> Is there any package besides fitdistrplus that does allow automatic
> distribution fitting?
>
> Best regards,
> Paul
>
>   [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] inadequacy in as.integer....

2022-09-11 Thread JRG via R-help
On 9/11/22 12:22, akshay kulkarni wrote:
> Dear members,
> I came across this queer thing during my analysis:
>> as.integer("09098")
> 9098
>
> Any idea on how to retain the "0"?

Don't use as.integer(), which has performed precisely the service that
it advertises?


I certainly wouldn't call this an 'inadequacy'.


And please stop posting in html.


---JRG



> Yours sincerely,
> AKSHAY M KULKARNI
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] Multivariate tobit regression

2021-09-05 Thread JRG via R-help
Have you tried

RSiteSearch("tobit")

??

---JRG



On 9/5/21 6:43 AM, Franklin Feukam via R-help wrote:
> Multivariate Tobit regression

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] how to install npsm package

2021-09-01 Thread JRG via R-help
Does  this link help?

> https://rdrr.io/cran/npsm/



---JRG



On 9/1/21 10:34 AM, cag...@gmail.com wrote:
> I need to install the package "npsm" to follow Kloke & McKean book. However,
> npsm is no longer on CRAN. So, please let me know in detail how to proceed
> to install it.
> 
>  
> 
> Thanks.
> 
>  
> 
> Carlos Gonzalez
> 
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] HW help

2021-01-08 Thread JRG via R-help
This list has a no-homework policy.

---JRG




On 2021-01-08 09:43, zyra e madhe wrote:
> Hello,
> 
> I'm having difficulty doing the following exercise.
> Can you please provide the code and some written explanation?
> 
> Thank you in advance,
> 
> Zyra
> 
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] long integer handling

2020-11-13 Thread JRG via R-help
The largest consecutive integer that can be represented in double
precision is 2^53.

You'll have to move past double precision.

---JRG



On 2020-11-13 20:44, Yousri Fanous wrote:
> I want to calculate 2^64-1 which is
> 18446744073709551615
> 
> I set the following options to prevent scientific notation
> options("scipen"=100, "digits"=4)
>> x<-2^64 -1
>> x
> [1] 18446744073709551616
> 
> This is not correct. There seem to be still some approximation happening.
> How can I get the correct result?
> 
> Yousri
> IBM Canada ltd
> Software developer
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] R rounding problem?

2020-09-03 Thread JRG via R-help
On 2020-09-04 00:46, array chip via R-help wrote:
> Hello,
>
> I made a mistake today on simple counting in R, that almost got me into 
> trouble. After trying multiple times, I finally figured out it's rounding 
> issue in R.
>
> For exmaple, when I just simply type:
>
>> (6.9-6.3) > 0.6
> [1] TRUE
>
> 6.9-6.3 should be 0.6 exactly, but R thinks that it's greater than 0.6!!
>
> Similarly, R thinks 5.6-5.5 is smaller than 0.1:
>
>> (5.6-5.5) < 0.1
> [1] TRUE
>
> Why is the above happening? This rounding issue seems to be small, but this 
> could cause serious problem in real world.
>
> Can anyone shed a light on how to avoid the issue?


Maybe learn a little bit about digital arithmetic?



---JRG




> Thanks,
>
> Yi
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.