• Non ci sono risultati.

SAS FUNCTIONS: Function Arguments

N/A
N/A
Protected

Academic year: 2021

Condividi "SAS FUNCTIONS: Function Arguments"

Copied!
1
0
0

Testo completo

(1)

SAS FUNCTIONS: Function Arguments

Some functions require no argument, some only one argument, and some operate on several arguments.

Normally, when there is more than one argument, they must be separated by commas.

function-name (argument-1<...,argument-n>) function-name (OF variable-list)

function-name (OF array-name{*}) Where:

function-name Names the function.

argument

Can be a variable name, constant, or any SAS expression, including another function.

The number and kind of arguments allowed are described with individual functions.

(OF variable-list)

Can be any form of a SAS variable list, including individual variable names. If more than one variable list appears, separate them with a space.

(OF array-name{*})

Names a currently defined array. Specifying an array in this way causes SAS to treat the array as a list of the variables it contains instead of processing only one element of the array at a time.

SAS FUNCTIONS: Mathematical Functions

AIRY(x) returns the value of the AIRY function

DAIRY(x) returns the derivative of the AIRY function DIGAMMA(argument) returns the value of the DIGAMMA function

ERF(argument) returns the value of the (normal) error function ERFC(argument) returns the value of the (normal) error function EXP(argument) returns the value of the exponential function GAMMA(argument) returns the value of the GAMMA function IBESSEL(nu,x,kode) returns the value of the modified bessel function

JBESSEL(nu,x) returns the value of the bessel function LGAMMA(argument) returns the natural logarithm of the GAMMA function

LOG(argument) returns the natural (base e) logarithm LOG2(argument) returns the logarithm to the base 2 LOG10(argument) returns the logarithm to the base 10 TRIGAMMA(argument) returns the value of the TRIGAMMA function

(2)

SAS FUNCTIONS: Quantile Functions

BETAINV(p,a,b) returns a quantile from the beta distribution CINV(p,df<,nc>) returns a quantile from the chi-squared distribution FINV(p,ndf,ddf<,nc>) returns a quantile from the F distribution

GAMINV(p,a) returns a quantile from the gamma distribution

PROBIT(p) returns a quantile from the standard normal distribution TINV(p,df<,nc>) returns a quantile from the t distribution

SAS FUNCTIONS: Probability and Density Functions

CDF('dist',quantile,parm-1,...,parm-k) computes cumulative distribution functions LOGPDF|LOGPMF('dist',quantile,parm-

1,...,parm-k) computes the logarithm of a probability density (mass) function. The two functions are identical.

LOGSDF('dist',quantile,parm-1,...,parm-k) computes the logarithm of a survival function PDF|PMF('dist',quantile,parm-1,...,parm-k) computes probability density (mass) functions POISSON(m,n) returns the probability from a POISSON distribution PROBBETA(x,a,b) returns the probability from a beta distribution PROBBNML(p,n,m) returns the probability from a binomial distribution PROBCHI(x,df<,nc>) returns the probability from a chi-squared distribution PROBF(x,ndf,ddf<,nc>) returns the probability from an F distribution

PROBGAM(x,a) returns the probability from a gamma distribution PROBHYPR(N,K,n,x<,r>) returns the probability from a hypergeometric

distribution

PROBMC probabilities and critical values (quantiles) from various distributions for multiple comparisons of the means of several groups.

PROBNEGB(p,n,m) returns the probability from a negative binomial distribution

PROBBNRM(x,y,r) standardized bivariate normal distribution PROBNORM(x) returns the probability from the standard normal

distribution

PROBT(x,df<,nc>) returns the probability from a Student's t distribution SDF('dist',quantile,parm-1,...,parm-k) computes a survival function

(3)

SAS FUNCTIONS: Random Number Functions

NORMAL(seed) returns a random variate from a normal distribution RANBIN(seed,n,p) returns a random variate from a bionomial distribution RANCAU(seed) returns a random variate from a Cauchy distribution RAND('dist', parm-1, ..., parm-k)

(EXPERIMENTAL)

returns a random variate from a specified distribution Note: This function is experimental.

RANEXP(seed) returns a random variate from an exponential distribution RANGAM(seed,a) returns a random variate from a gamma distribution RANNOR(seed) returns a random variate from a normal distribution RANPOI(seed,m) returns a random variate from a Poisson distribution RANTBL(seed,p1,..pi,..pn) returns a random variate from a tabled probability RANTRI(seed,h) returns a random variate from a triangular distribution RANUNI(seed) returns a random variate from a uniform distribution UNIFORM(seed) returns a random variate from a uniform distribution

Riferimenti

Documenti correlati

cal guidelines recommended sentinel lymph node biopsy (SLNB) for patients with thin melanoma and additional risk factors, such as tumor thickness ≥0.75 mm, ulceration, mitosis, and

The discussion is carried out dividing parameters mostly affecting the ADP propagation (order, tolerance, minimum box size, and reference orbital period range) and parameters

It may be explained by several reasons: the epidemiology- derived models, based on the prediction of long-term risk, may not accurately predict short-term events, they

Ciò che Jonas tiene a sottolineare, però, è il fatto che lo spirito greco seppe trovare una via, per quanto eccentrica, capace di distinguere tra utilità, inutilità e non-utilità

following Daveri and Tabellini (2000) and Irmen and Wigger (2002), rather than Corneo and Marquardt (2000), and then assuming the productivity parameter in the

The patients were divided into two groups (group A: women under 35 years of age; group B: women over 35 years) and further divided into three subgroups: ‘ORCD’ subgroup included

Because the Canonical table provides information about the gene/protein position in each chromosome as well as AA composition, we can investigate the content of single amino acids

The methods of expression and refolding of several members of human matrix metalloproteinases, developed during this project, will allow the scientific community