The HPNLMOD Procedure

MODEL Statement

  • MODEL dependent-variable ~ distribution;

The MODEL statement is the mechanism for either using a distribution specification to specify the distribution of the data or using the RESIDUAL distribution to specify a predicted value. You must specify a single dependent variable from the input data set, a tilde (~), and then a distribution along with its parameters. You can specify the following values for distribution:

RESIDUAL$(\Argument{m})$ or LS$(\Argument{m})$

specifies no particular distribution. Instead the sum of squares of the differences between $\Argument{m}$ and the dependent variable is minimized.


specifies a normal (Gaussian) distribution that has mean $\Argument{m}$ and variance $\Argument{v}$.


specifies a binary (Bernoulli) distribution that has probability $\Argument{p}$.


specifies a binomial distribution that has count $\Argument{n}$ and probability $\Argument{p}$.


specifies a gamma distribution that has shape $\Argument{a}$ and scale $\Argument{b}$.


specifies a negative binomial distribution that has count $\Argument{n}$ and probability $\Argument{p}$.


specifies a Poisson distribution that has mean $\Argument{m}$.


specifies a general log-likelihood function that you construct by using SAS programming statements.

The MODEL statement must follow any SAS programming statements that you specify for computing parameters of the preceding distributions. For information about the built-in log-likelihood functions, see the section Built-In Log-Likelihood Functions .