search for: qpois

Displaying 20 results from an estimated 21 matches for "qpois".

Did you mean: rpois
1998 Mar 25
1
R-beta: qpois help
version .62: --------------------------------------------- > ?qpois The Poisson Distribution dpois(x, lambda) ppois(q, lambda) qpois(p, lambda) rpois(n, lambda) Arguments: x: vector of (positive) quantiles. p: vector of probabilities. n: number of random values to return. lambda: vector...
2017 Aug 07
1
Latin hypercube sampling from a non-uniform distribution
...s the observed distribution? One simple way is to use the uniform random output of randomLHS as input to the quantile function for your desired distribution(s). For example: q <- randomLHS(1000, 3) colnames(q) <- c("A", "B", "mort") q[, "mort"] <- qpois(q[,"mort"], 1.5) S Ellison ******************************************************************* This email and any attachments are confidential. Any use, copying or disclosure other than by the intended recipient is unauthorised. If you have received this message in error, please...
2004 Jan 09
6
Poisson distribution help requested
Could somebody help me to understand the syntax of R''s ppois function? I''m looking to calculate the cumulative probability density of an observed value (y) given the expected mean (mu) and the level of significance (alpha). I''m coming from using SAS to do this and don''t recognize the descriptions of the arguments for ppois. The definitions of lambda and p as
2017 Aug 07
1
Latin hypercube sampling from a non-uniform distribution
Thanks for your answer. However, my variable is simulated from the cumulative distribution function of the Poisson distribution. So, the pattern obtained from the function "qpois" is not the same as the observed pattern (i.e., obtained from the function "ppois") set.seed(5) mortality_probability <- round(ppois(seq(0, 7, by = 1), lambda = 0.9), 2) barplot(mortality_probability, names.arg = seq(0, 7, by = 1), xlab = "Age class", ylab = "Proba...
2005 May 01
5
simulate zero-truncated Poisson distribution
Dear All I would like to know whether it is possible with R to generate random numbers from zero-truncated Poisson distribution. Thanks in advance, Galina
1997 Jul 09
1
R-beta: Problem with `rpois'
There is a problem with `rpois'. It does seem to take care about the order of the arguments. This is an example: > rpois(n=1,lambda=2) [1] 3 > rpois(lambda=2,n=1) [1] 2 0 It obviously uses the first argument as the number of samples to be drawn, which is wrong. I used Version 0.49 Beta (April 23, 1997). Fredrik
1997 Jul 09
1
R-beta: Problem with `rpois'
There is a problem with `rpois'. It does seem to take care about the order of the arguments. This is an example: > rpois(n=1,lambda=2) [1] 3 > rpois(lambda=2,n=1) [1] 2 0 It obviously uses the first argument as the number of samples to be drawn, which is wrong. I used Version 0.49 Beta (April 23, 1997). Fredrik
2008 Sep 15
0
how to calculate PPCC?
...,mean,sd) { x <- sort(x) pp <- ppoints(x) cor(qnorm(pp,mean=mean,sd=sd),x) } PPCCLOG <- function(x,mean,sd) { x <- sort(x) pp <- ppoints(x) cor(qlnorm(pp,meanlog=mean,sdlog=sd),x) } PPCCPOIS <- function(x,lambda) { x <- sort(x) pp <- ppoints(x) cor(qpois(pp,lambda=lambda),x) } PPCCEXP <- function(x,rate) { x <- sort(x) pp <- ppoints(x) cor(qexp(pp,rate=rate),x) }/ Thanks in advanced, [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.e...
2017 Aug 04
1
Latin hypercube sampling from a non-uniform distribution
Hello, I am performing a sensitivity analysis using a Latin Hypercube sampling. However, I have difficulty to draw a Hypercube sample for one variable. I?ve generated this variable from a Poisson distribution as follows: set.seed(5) mortality_probability <- round(ppois(seq(0, 7, by = 1), lambda = 0.9), 2) barplot(mortality_probability, names.arg = seq(0, 7, by = 1), xlab = "Age
2017 Aug 08
1
Latin hypercube sampling from a non-uniform distribution
> However, my variable is simulated from the cumulative distribution function > of the Poisson distribution. Then I am afraid I don't know what you're trying to achieve. Or why. However, the principle holds; write a function that maps [0,1] to the 'pattern' you want, do that and apply it to the result from randomLHS. It happens that for generating data that follow a given
1997 Dec 13
1
R-beta: Compile error; R-0.60.1, Solaris 2.6, gcc 2.7.2.1
...nclude -c dnorm.c -o dnorm.o gcc -g -I../include -c pnorm.c -o pnorm.o gcc -g -I../include -c qnorm.c -o qnorm.o gcc -g -I../include -c rnorm.c -o rnorm.o gcc -g -I../include -c dpois.c -o dpois.o gcc -g -I../include -c ppois.c -o ppois.o gcc -g -I../include -c qpois.c -o qpois.o gcc -g -I../include -c rpois.c -o rpois.o gcc -g -I../include -c dt.c -o dt.o gcc -g -I../include -c pt.c -o pt.o gcc -g -I../include -c qt.c -o qt.o gcc -g -I../include -c rt.c -o rt.o gcc -g -I../include -c dunif.c -o dunif.o gcc -g -I../includ...
2017 Aug 08
1
Latin hypercube sampling from a non-uniform distribution
...he observed cumulative distribution (see attached figure). Thus, the output of randomLHS should be a matrix with 100 rows (N = 100 simulations) and 7 columns (7 age classes) containing LHS values and each row should exhibit the same pattern as the observed cumulative distribution. With the command ?qpois(X[, "mortality_probability"], 0.9)?, I don?t obtain a LHS value for each age class and the distribution is not a cumulative distribution as in the attached figure. So, I am afraid I don?t know how to do that. Thanks so much for your time Marine ________________________________ De : S E...
1999 May 03
1
problems compiling R-0.63.3 on alpha
...nbinom.c -o rnbinom.o gcc -ieee_with_inexact -g -I../include -I../../src/include -c dpois.c -o dpois.o gcc -ieee_with_inexact -g -I../include -I../../src/include -c ppois.c -o ppois.o gcc -ieee_with_inexact -g -I../include -I../../src/include -c qpois.c -o qpois.o gcc -ieee_with_inexact -g -I../include -I../../src/include -c rpois.c -o rpois.o gcc -ieee_with_inexact -g -I../include -I../../src/include -c dweibull.c -o dweibull.o gcc -ieee_with_inexact -g -I../include -I../../src/include -c pw...
1998 Nov 06
1
DEC alpha INSTALLATION R-0.62.4
...src/include -c qnbinom.c cc -ieee_with_inexact -g -I../../src/include -c rnbinom.c cc -ieee_with_inexact -g -I../../src/include -c dpois.c cc -ieee_with_inexact -g -I../../src/include -c ppois.c cc -ieee_with_inexact -g -I../../src/include -c qpois.c cc -ieee_with_inexact -g -I../../src/include -c rpois.c cc -ieee_with_inexact -g -I../../src/include -c dweibull.c cc -ieee_with_inexact -g -I../../src/include -c pweibull.c cc -ieee_with_inexact -g -I../../src/include -c qweibull.c cc -ieee_wit...
1998 Dec 08
0
R compile problems with AIX
...47;include -I../../src/include -c rnbinom.c -o rnbinom.o gcc -g -O2 -I../include -I../../src/include -c dpois.c -o dpois.o gcc -g -O2 -I../include -I../../src/include -c ppois.c -o ppois.o gcc -g -O2 -I../include -I../../src/include -c qpois.c -o qpois.o gcc -g -O2 -I../include -I../../src/include -c rpois.c -o rpois.o gcc -g -O2 -I../include -I../../src/include -c dweibull.c -o dweibull.o gcc -g -O2 -I../include -I../../src/include -c pweibull.c -o pweibull.o gcc -g -O2 -I../inclu...
1998 Dec 08
0
R compile problems with AIX
...47;include -I../../src/include -c rnbinom.c -o rnbinom.o gcc -g -O2 -I../include -I../../src/include -c dpois.c -o dpois.o gcc -g -O2 -I../include -I../../src/include -c ppois.c -o ppois.o gcc -g -O2 -I../include -I../../src/include -c qpois.c -o qpois.o gcc -g -O2 -I../include -I../../src/include -c rpois.c -o rpois.o gcc -g -O2 -I../include -I../../src/include -c dweibull.c -o dweibull.o gcc -g -O2 -I../include -I../../src/include -c pweibull.c -o pweibull.o gcc -g -O2 -I../inclu...
1998 Sep 11
1
R-beta: cannot make R
...../include -c rhyper.c gcc -g -O2 -I../include -c dnbinom.c gcc -g -O2 -I../include -c pnbinom.c gcc -g -O2 -I../include -c qnbinom.c gcc -g -O2 -I../include -c rnbinom.c gcc -g -O2 -I../include -c dpois.c gcc -g -O2 -I../include -c ppois.c gcc -g -O2 -I../include -c qpois.c gcc -g -O2 -I../include -c rpois.c gcc -g -O2 -I../include -c dweibull.c gcc -g -O2 -I../include -c pweibull.c gcc -g -O2 -I../include -c qweibull.c gcc -g -O2 -I../include -c rweibull.c gcc -g -O2 -I../include -c dlogis.c gcc -g -O2 -I../include -c plogis.c gcc -g -O2...
2012 Aug 11
2
compile fails with x86_64-alpine-linux-uclibc-gcc
...er.d from dhyper.c making phyper.d from phyper.c making qhyper.d from qhyper.c making rhyper.d from rhyper.c making dnbinom.d from dnbinom.c making pnbinom.d from pnbinom.c making qnbinom.d from qnbinom.c making rnbinom.d from rnbinom.c making dpois.d from dpois.c making ppois.d from ppois.c making qpois.d from qpois.c making rpois.d from rpois.c making dweibull.d from dweibull.c making pweibull.d from pweibull.c making qweibull.d from qweibull.c making rweibull.d from rweibull.c making dlogis.d from dlogis.c making plogis.d from plogis.c making qlogis.d from qlogis.c making rlogis.d from rlogis.c...
2017 Aug 01
1
One Dimensional Monte Carlo Simulation
...5e5 > R<-2.5e6 > iterations<-replicate(10000,{ >? claims1<-0 >? claims2<-0 >? claims3<-0 >? claims4<-0 >? claims5<-0 > claims6<-0 >? claims7<-0 >? claims<-c(claims1,claims2,claims3,claims4,claims5,claims6,claims7) >? freq<-(qpois(runif(1),lambda.risk)) >? sev<-pmin(L,pmax(0,(qlnorm(runif(1),scale,shape)-R))) >? if(freq>=1){claims1<-sev} >? sev<-pmin(L,pmax(0,(qlnorm(runif(1),scale,shape)-R))) >? if(freq>=2){claims2<-sev} >? sev<-pmin(L,pmax(0,(qlnorm(runif(1),scale,shape)-R))) >?...
2017 Jul 15
1
One Dimensional Monte Carlo Simulation
...5e5 > R<-2.5e6 > iterations<-replicate(10000,{ > claims1<-0 > claims2<-0 > claims3<-0 > claims4<-0 > claims5<-0 > claims6<-0 > claims7<-0 > claims<-c(claims1,claims2,claims3,claims4,claims5,claims6,claims7) > freq<-(qpois(runif(1),lambda.risk)) > sev<-pmin(L,pmax(0,(qlnorm(runif(1),scale,shape)-R))) > if(freq>=1){claims1<-sev} > sev<-pmin(L,pmax(0,(qlnorm(runif(1),scale,shape)-R))) > if(freq>=2){claims2<-sev} > sev<-pmin(L,pmax(0,(qlnorm(runif(1),scale,shape)-R))) >...