draw.geom | R Documentation |
By providing X and a probability, you can draw either CDF or PMF
draw.geom(
X,
p,
cumulative = F,
decreasing = F,
round = 3,
show.label = TRUE,
nudge = 0
)
X |
Mishtane Mikri. Can be a vector of values. each X is k successes. |
cumulative |
a logical. If TRUE: draws a CDF. default is set to FALSE. |
decreasing |
a logical. Concerns the data frame returned, if TRUE: decreasing order of probabilities, Otherwise same order as input of X. default is set to FALSE. |
round |
How many decimals to show. Default is set to 3. |
show.label |
A logical. Default (TRUE) prints probability labels on the plot. |
nudge |
When |
P |
Probability for success in each trial. |
graph
(Print only).
Tohelet and Shonut
(Print only).
data.frame
of X and their probs (use decreasing
to change order method, in case random numbers are assigned).
Very important: Unlike usual input in dgeom
, please refer to 1 as success in 1st attempt.
For a fully detailed explanation about the differences between distributions please visit https://www.researchgate.net/post/What-is-the-difference-between-probability-distribution-function-and-probability-density-function
x <- c(1:5)
draw.geom(x,p=0.3)
draw.geom(x,p=0.3,cumulative=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.