SAS Functions
STAT 342 – Fall 2020 Tutorial – 8
Probability and Density Functions
Distribution
SAS Function
Parameters
Mean
Variance
Binomial
PROBBNML(p,n,m)
n, p
np
np(1-p)
Poisson
POISSON(λ,n)
λ
λ
λ
Chi
PROBCHI(x,k)
k
k
2k
F
PROBF(x,d1,d2)
d1, d2
d2 / (d2-2)
Gamma
PROBGAM(x, α)
α, β
α/β
α / β^2
• n: sample size
• p: probability of success
• λ: expected rate of occurrence
• k: degrees of freedom
• d1/d2: numerator/denominator degrees of freedom • α, β: shape and scale parameters
PDF and CDF Functions
• PDF/PMF:
• Returns a value from a given pdf / pmf
• PDF(distribution, quantile <, parameter-1, ... , parameter-k>)
• https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=lefuncti
onsref&docsetTarget=n164yyfgppedmkn1320boncqkh6r.htm&locale=en
• CDF:
• Returns a value from a cumulative probability distribution
• CDF (distribution,quantile<,parm-1, ... ,parm-k>)
• http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000 208980.htm
Sample Statistics Functions
•N
• NMISS • MIN
• MAX
• RANGE • MEAN • STD
• VAR
Mathematical Functions
• ABS
• SQRT • EXP
• LOG
• LOG2 • LOG10