sbinom {bbmle} | R Documentation |
Functions returning values for summary statistics (mean, median, etc.) of distributions
sbinom(size, prob) snbinom(size, prob, mu) spois(lambda) sbeta(shape1, shape2) sbetabinom(size, prob, theta)
prob |
probability as defined for dbinom ,
dnbinom , or beta-binomial distribution
(dbetabinom in the emdbook package) |
size |
size parameter as defined for
dbinom or dbetabinom
in the emdbook package, or size/overdispersion parameter
as in dnbinom |
mu |
mean parameter as defined for dnbinom |
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 the emdbook package) |
title |
name of the distribution |
[parameters] |
input parameters for the distribution |
mean |
theoretical mean of the distribution |
median |
theoretical median of the distribution |
mode |
theoretical mode of the distribution |
variance |
theoretical variance of the distribution |
sd |
theoretical standard deviation of the distribution |
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?
Ben Bolker
sbinom(prob=0.2,size=10) snbinom(mu=2,size=1.2)