RAR1 procedure

Fits regressions with an AR1 or a power-distance correlation model (R.W. Payne).


Options

PRINT = strings
What to print (model, deviance, summary, estimates, correlations, fittedvalues, accumulated, monitoring, cparameter, cmonitoring, cplot); default mode, summ, esti, cpar

CALCULATION = expressions
Calculation of explanatory variates involving nonlinear parameters

CONSTANT = string
How to treat the constant (estimate, omit); default esti

FACTORIAL = scalars
Limit for expansion of model terms; default 3

POOL = string
Whether to pool ss in accumulated summary between all terms fitted in a linear model (yes, no); default no

DENOMINATOR = string
Whether to base ratios in accumulated summary on rms from model with smallest residual ss or smallest residual ms (ss, ms); default ss

NOMESSAGE = strings
Which warning messages to suppress (dispersion, leverage, residual, aliasing, marginality, vertical, df, inflation); default *

FPROBABILITY = string
Printing of probabilities for variance and deviance ratios (yes, no); default no

TPROBABILITY = string
Printing of probabilities for t-statistics (yes, no); default no

SELECTION = strings
Statistics to be displayed in the summary of analysis produced by PRINT=summary, seobservations is relevant only for a Normally distributed response, and %cv only for a gamma-distributed response (%variance, %ss, adjustedr2, r2, seobservations, dispersion, %cv, %meandeviance, %deviance, aic, sic); default %var, seob if DIST=normal, %cv if DIST=gamma, and disp for other distributions

SELINEAR = string
Whether to calculate s.e.s for linear parameters when nonlinear parameters are also estimated (yes, no); default no

WEIGHTS = variate
Prior weights for the units

CMETHOD = string
Estimation method (maximumlikelihood, reml); default maxi

CPARAMETER = scalars
Correlation parameter

CPOSITIONS = variate
Correlation positions

CGROUPS = factor
Groupings of correlation positions

MAXCYCLE = scalars
Maximum number of iterations; default 100

TOLERANCE = scalars
Convergence criterion; default 10-5


Parameter

TERMS = formula
Terms to be fitted


Description

RAR1 allows you to fit regression and nonlinear models to data, such as repeated measurements, where the residuals may follow an AR1 or a power-distance correlation model. The CPOSITIONS option specifies the coordinates of the observations in the direction (e.g. time) along which the correlation model operates. You can also use the CGROUPS option to specify a factor to define groups of observations for the model - the correlation model is then defined only over the observations that belong to the same groups. The parameter phi of the AR1 or power-distance model is estimated within RAR1, and is assumed to be the same for every group. (Note that the model will be AR1 if the observations are each one unit apart within each group - the power-distance model is the natural extension of the AR1 model to unequally-spaced data; see Method.) You can save the estimated value of phi, in a scalar, using the CPARAMETER option.

   Otherwise, RAR1 is used much like FIT. It must be preceded by a MODEL statement. You can also give an RCYCLE statement first if you want to estimate nonlinear parameters. The MODEL statement must have the WEIGHT option set to a symmetrix matrix, which need not have any values defined. RAR1 will set the values according to the distances (CPOSITIONS), groups (CGROUPS) and estimated parameter phi. These values remain set after RAR1. So you can display or save further output using RCHECK, RDISPLAY, RGRAPH or RKEEP, in the usual way. You could also, for example, use RAR1 to fit a full set of regression terms, and then use DROP to investigate smaller models while still using the phi estimate from the full model. RAR1 has a TERMS parameter to specify the terms to be fitted, like the parameter of FIT. It also has options CALCULATION, CONSTANT, FACTORIAL, POOL, DENOMINATOR, NOMESSAGE, FPROBABILITY, TPROBABILITY, SELECTION and SELINEAR which operate like those of FIT.

   The PRINT option is also similar, except that it has three additional settings:

    cparameter
prints the estimated value of the correlation phi, together with a test for phi=0,

    cmonitoring
provides monitoring information for the estimation of phi,

    cplot
plots the likelihood (or REML likelihood) for phi.

Note, the likelihood values omit some constant terms that depend only on the regression terms. The default is PRINT=model,summary,estimates,cparameter.

   The other options control the estimation. The CMETHOD option controls whether phi is estimated for regression models by REML or by maximum likelihood (default maxi); with nonlinear models only maximum likelihood is available. The MAXCYCLE option defines the maximum number of iterations (default 100) used to estimate phi, and the TOLERANCE option specifies the convergence criterion i.e. the accurary to which phi is to be estimated (default 10-5).

 

Options: PRINT, CALCULATION, CONSTANT, FACTORIAL, POOL, DENOMINATOR, NOMESSAGE, FPROBABILITY, TPROBABILITY, SELECTION, SELINEAR, WEIGHTS, CMETHOD, CPARAMETER, CPOSITIONS, CGROUPS, MAXCYCLE, TOLERANCE.

Parameter: TERMS.


Method

To estimate phi RAR1 uses procedure MIN1DIMENSION, which calls a procedure _MIN1DFUNCTION, which is loaded automatically with RAR1. _MIN1DFUNCTION uses the FIT directive to fit the regression model for a particular value of phi, and then evaluates the likelihood or REML likelihood (according to the setting of the CMETHOD option).


Action with RESTRICT

Restrictions are not allowed.