Displaying 2 results from an estimated 2 matches for "tghyper".
Did you mean:
ghyper
2008 Jan 06
1
how to use R for Beta Negative Binomial
...positive real numbers.
>
> If someone can just show me the R command for this, that will help, I have
> the R package SuppDists installed, I am just not sure how to use it for
> this distribution.
>
> thanks,
> Nasser
>
I thought I should show what I did, this is R 2.6.1:
tghyper(a=-1, k=-1, N=5) %I think this makes it do Beta Negative Binomail
and now I used summary command, right?
sghyper(3, .5, 3)
But I do not think this is correct.Tried few other permitations. Hard for me
to see how to set the parameters correctly for this distribution.
thanks,
Nasser
2004 Mar 02
1
passing a string from .C()
Hi,
Could someone please point to an example of passing strings from .C()
calls back to R? I want to be able to do something like this:
str <- .C("return_foo_string", str=character(1))$str
void return_foo_string(char ** str) {
*str = "foo";
}
The above code has at least two memory allocation "concerns":
1) How to properly allocate "foo". I