Learn R Programming

bbmle (version 0.8.9)

sbinom: Abstract definitions of distributions

Description

Functions returning values for summary statistics (mean, median, etc.) of distributions

Usage

sbinom(size,prob)
snbinom(size, prob, mu)
spois(lambda)

Arguments

prob
probability as defined for dbinom or dnbinom
size
size/variance parameter as defined for dnbinom
mu
mean parameter as defined for dnbinom
lambda
rate parameter as defined for dpois

Value

  • titlename of the distribution
  • [parameters]input parameters for the distribution
  • meantheoretical mean of the distribution
  • mediantheoretical median of the distribution
  • modetheoretical mode of the distribution
  • variancetheoretical variance of the distribution
  • sdtheoretical standard deviation of the distribution

See Also

dbinom,dpois, dnbinom

Examples

Run this code
sbinom(prob=0.2,size=10)
  snbinom(mu=2,size=1.2)

Run the code above in your browser using DataLab