1. Home
  2. RDLOESSGROUPS procedure

RDLOESSGROUPS procedure

Displays results from a locally weighted regression model (loess) fitted to data with groups (D.B. Baird).

Options

PRINT = string tokens What to print (model, deviance, summary, estimates, correlations, fittedvalues, accumulated, monitoring, confidence); default * – no output
PLOT = string tokens What to plot (fittedvalues, residuals); default * – no plots
DENOMINATOR = string token Whether to base ratios in accumulated summary on rms from model with smallest residual ss or smallest residual ms (ss, ms); default ss
FPROBABILITY = string token Printing of probabilities for variance and deviance ratios (yes, no); default no
TPROBABILITY = string token Printing of probabilities for t-statistics (yes, no); default no
PROBABILITY = scalar Probability level for confidence intervals for parameter estimates; default 0.95

Parameter

SAVE = pointerSave structure from the analysis of a loess with groups model by RLOESSGROUPS; default uses the model fitted most recently by RLOESSGROUPS

Description

RDLOESSGROUPS displays results from a loess model with groups fitted by the RLOESSGROUPS procedure. It has options PRINT, DENOMINATOR, FPROBABILITY, TPROBABILITY and PROBABILITY which operate like those of RDISPLAY.

The PLOT option has two settings: fittedvalues produces a plot of the fitted values, and residuals produces a combined residual plot using the default settings of DRESIDUALS.

By default it produces output for the last model fitted by RLOESSGROUPS, but SAVE can be set to produce output saved from a previous RLOESSGROUPS fit.

Options: PRINT, PLOT, DENOMINATOR, FPROBABILITY, TPROBABILITY, PROBABILITY.
Parameter: SAVE.

See also

Directive: RDISPLAY.
Procedures: RLOESSGROUPSRKLOESSGROUPS.
Commands for: Regression analysis.

Example

CAPTION 'RDLOESSGROUPS example',\
        'Yield of sugar beet vs soil phosphate in 4 years'; STYLE=major,plain
FACTOR  [LEVELS=4; VALUES=16(1...4)] Year
OPEN    '%EXAMPLES%/GuidePart2/beet.dat'; CHANNEL=2
READ    [PRINT=*; CHANNEL=2] Beetwt,%sugar,SoilP
CLOSE   2
CALCULATE Sugar = Beetwt * %sugar / 100
MODEL   Sugar
RLOESSGROUPS [PRINT=*] SoilP; GROUP=Year; SMOOTH=2
RDLOESSGROUPS [PRINT=model,acc,fitted; PLOT=fitted; FPROB=yes]
Updated on February 3, 2023

Was this article helpful?