Displaying 4 results from an estimated 4 matches for "prob_".
Did you mean:
probe
2009 Dec 21
2
Reading multiple Input Files
...f you) as of now is sort of hard coding when it comes to reading interest rates as an input e.g.
## INPUT
rate_1 = read.csv('rate1_range.csv')
rate_2 = read.csv('rate2_range.csv')
rate_3 = read.csv('rate3_range.csv')
rate_4 = read.csv('rate4_range.csv')
prob_1 = read.csv('rate1_probs.csv')
prob_2 = read.csv('rate2_probs.csv')
prob_3 = read.csv('rate3_probs.csv')
prob_4 = read.csv('rate4_probs.csv')
However, since I am not sure how many interest rates I will be dealing with to begin with, I have tried to call thes...
2007 Jun 08
2
pnorm how to decide lower-tail true or false
Hi to all,
maybe the last question was not clear enough.
I did not found any hints how to decide whether it should use lower.tail
or not.
As it is an extra R-feature ( written in
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/66250.html )
I do not find anything about it in any statistical books of me.
Regards Carmen
2002 Aug 08
0
RE: rmultinom
...ltinom_ function( n, size, prob, method=if(k>size) "tabulate" else
"sucbin") {
# returns a n X length( prob) matrix of integers, each row adding up to
size
k_ length( prob)
if( pmatch( method, c( 'sucbin', 'tabulate')) == 1) { # successive
binomials
prob_ prob / sum( prob)
prob[-1]_ prob[-1] / (1-clip( cumsum( prob)))
x_ matrix( as.integer( 0), n, k)
nn_ rep( size, n)
for( i in 1 %upto% (k-1)) {
x[,i]_ as.integer( rbinom( n, size=nn, prob=prob[ i]))
nn_ nn - x[,i]
}
x[,k]_ nn
} else # tabulation
x_ matrix(...
2002 Aug 08
0
RE: rmultinom
...method=if(k>size) "tabulate" else
>"sucbin") {
> # returns a n X length( prob) matrix of integers, each row adding up to
>size
>
> k_ length( prob)
> if( pmatch( method, c( 'sucbin', 'tabulate')) == 1) { # successive
>binomials
> prob_ prob / sum( prob)
> prob[-1]_ prob[-1] / (1-clip( cumsum( prob)))
> x_ matrix( as.integer( 0), n, k)
> nn_ rep( size, n)
>
> for( i in 1 %upto% (k-1)) {
> x[,i]_ as.integer( rbinom( n, size=nn, prob=prob[ i]))
> nn_ nn - x[,i]
> }
>
> x[,k]_...