search for: ppoi

Displaying 17 results from an estimated 17 matches for "ppoi".

Did you mean: poi
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 de...
2006 Sep 20
2
ppois
A quick question! The number of episodes per year of otitis media follows a Possion distribution with lambda = 1.6 episodes per year. Wouldn''t the probability of getting 3 or more episodes of otitis media in the first 2 years of life be: > ppois(q=3, lambda=1.6*2, lower.tail = TRUE, log.p = FALSE) [1] 0.6025197 I am confused with the lambda and 3 or more.. thx much
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
2017 Aug 07
1
Latin hypercube sampling from a non-uniform distribution
> How can I draw a Hypercube sample for the variable mortality_probability so > that this variable exhibits the same pattern as 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",
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 = "Probability") library(lhs) set.seed(1) parm <- c("var1", "var2", &q...
2006 Jun 30
2
Query : Chi Square goodness of fit test
...####################################### No_of_Frouds<- c(4,1,6,9,9,10,2,4,8,2,3,0,1,2,3,1,3,4,5,4,4,4,9,5,4,3,11,8,12,3,10,0,7) N <- length(No_of_Frouds) # Estimation of Parameter lambda<- sum(No_of_Frouds)/N lambda pmf <- dpois(i, lambda, log = FALSE) step_function <- ppois(i, lambda, lower.tail = TRUE, log.p = FALSE) # Chi-Squared Goodness of Fit Test # Ho: The data follow a Poisson distribution Vs H1: Not Ho Frauds <- c(1:13) counts<- c(2,3,3,5,7,2,1,1,2,3,2,1,1,0) # Observed frequency Expected <-c(0.251005528,1.224602726,2.987288468,4.85811559,5.9...
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 of positive means. ------------------------------------------------...
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 class", ylab = "Probability") How can I draw a Hypercube sample for the variable ?mortality_probability? so that this variable exhibits the same pattern as the observ...
1997 Dec 13
1
R-beta: Compile error; R-0.60.1, Solaris 2.6, gcc 2.7.2.1
...de -c qnchisq.c -o qnchisq.o gcc -g -I../include -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../inclu...
1999 May 03
1
problems compiling R-0.63.3 on alpha
...om.c -o qnbinom.o gcc -ieee_with_inexact -g -I../include -I../../src/include -c rnbinom.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 dweibul...
1998 Nov 06
1
DEC alpha INSTALLATION R-0.62.4
...c/include -c pnbinom.c cc -ieee_with_inexact -g -I../../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_...
1998 Dec 08
0
R compile problems with AIX
...nclude -I../../src/include -c qnbinom.c -o qnbinom.o gcc -g -O2 -I../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...
1998 Dec 08
0
R compile problems with AIX
...nclude -I../../src/include -c qnbinom.c -o qnbinom.o gcc -g -O2 -I../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...
1998 Sep 11
1
R-beta: cannot make R
..../include -c qhyper.c gcc -g -O2 -I../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...
2012 Aug 11
2
compile fails with x86_64-alpine-linux-uclibc-gcc
...m.d from rgeom.c making dhyper.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 m...
1999 Aug 03
2
compliation problem
Problem compiling R. version: 0.64.2 machine: SGI O2 OS: IRIX6.5 CC cc FC f77 MAKE GNU make 3.75 Here is part of the the output for make. make[2]: Leaving directory `/usr/people/faculty/math/mgass/stage/R/R-0.64.2/src/include' make[2]: Entering directory