Description Usage Arguments Details Value Author(s) See Also Examples

Density, cumulative distribution function, quantile function and random generation for the Nakagami distribution.

1 2 3 4 |

`x, q` |
vector of quantiles. |

`p` |
vector of probabilities. |

`n` |
number of observations.
Same as in |

`scale, shape` |
arguments for the parameters of the distribution.
See |

`Smallno` |
Numeric, a small value used by the rejection method for determining
the upper limit of the distribution.
That is, |

`...` |
Arguments that can be passed into |

`log` |
Logical.
If |

`lower.tail, log.p` |
Same meaning as in |

See `nakagami`

for more details.

`dnaka`

gives the density,
`pnaka`

gives the cumulative distribution function,
`qnaka`

gives the quantile function, and
`rnaka`

generates random deviates.

T. W. Yee and Kai Huang

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ```
## Not run: x <- seq(0, 3.2, len = 200)
plot(x, dgamma(x, shape = 1), type = "n", col = "black", ylab = "",
ylim = c(0,1.5), main = "dnaka(x, shape = shape)")
lines(x, dnaka(x, shape = 1), col = "orange")
lines(x, dnaka(x, shape = 2), col = "blue")
lines(x, dnaka(x, shape = 3), col = "green")
legend(2, 1.0, col = c("orange","blue","green"), lty = rep(1, len = 3),
legend = paste("shape =", c(1, 2, 3)))
plot(x, pnorm(x), type = "n", col = "black", ylab = "",
ylim = 0:1, main = "pnaka(x, shape = shape)")
lines(x, pnaka(x, shape = 1), col = "orange")
lines(x, pnaka(x, shape = 2), col = "blue")
lines(x, pnaka(x, shape = 3), col = "green")
legend(2, 0.6, col = c("orange","blue","green"), lty = rep(1, len = 3),
legend = paste("shape =", c(1, 2, 3)))
## End(Not run)
probs <- seq(0.1, 0.9, by = 0.1)
pnaka(qnaka(p = probs, shape = 2), shape = 2) - probs # Should be all 0
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.