## definite integral in sas

Occasional Contributor
Posts: 18

# definite integral in sas

Hi Everybody,

Could you help me to integrate this function using sas.

integrate x^2 e^(-x/2) between  0 to x and equate the result to 0.95 to find the value of x.

Thanks for your Co-operation.

Posts: 3,040

## Re: definite integral in sas

As far as I know, SAS does not evaluate integrals in general. It can perform numerical approximations to your integral, but I don't think there's a procedure or function in SAS to do that, you would have to write it yourself.

--
Paige Miller
Occasional Contributor
Posts: 18

## Re: definite integral in sas

Posted in reply to PaigeMiller

Is there a function to find the 95% confidence interval for Gamma Distribution ?

Ram

Posts: 3,040

## Re: definite integral in sas

The GAMINV function will return quantiles from a Gamma Distribution; you would have to make use of the quantiles to create the confidence interval.

--
Paige Miller
SAS Super FREQ
Posts: 4,242