sbinom
Abstract definitions of distributions
Functions returning values for summary statistics (mean, median, etc.) of distributions
- Keywords
- misc
Usage
sbeta(shape1, shape2)
sbetabinom(size, prob, theta)
sbinom(size, prob)
snbinom(size, prob, mu)
snorm(mean, sd)
spois(lambda)
slnorm(meanlog, sdlog)
Arguments
- prob
probability as defined for
dbinom
,dnbinom
, or beta-binomial distribution (dbetabinom
in theemdbook
package)- size
size parameter as defined for
dbinom
ordbetabinom
in theemdbook
package, or size/overdispersion parameter as indnbinom
- mean
mean parameter as defined for
dnorm
- mu
mean parameter as defined for
dnbinom
- sd
standard deviation parameter as defined for
dnorm
- shape1
shape parameter for
dbeta
- shape2
shape parameter for
dbeta
- lambda
rate parameter as defined for
dpois
- theta
overdispersion parameter for beta-binomial (see
dbetabinom
in theemdbook
package)- meanlog
as defined for
dlnorm
- sdlog
as defined for
dlnorm
Value
name of the distribution
input parameters for the distribution
theoretical mean of the distribution
theoretical median of the distribution
theoretical mode of the distribution
theoretical variance of the distribution
theoretical standard deviation of the distribution
Note
these definitions are tentative, subject to change as I figure this out better. Perhaps construct functions that return functions? Strip down results? Do more automatically?
See Also
Examples
# NOT RUN {
sbinom(prob=0.2,size=10)
snbinom(mu=2,size=1.2)
# }