;;Example of a ViDAL (ViSta Data Analysis Language) script file.
;;Load this file with the Load-Edit command.

(when *guidemap* (send *guidemap* :close))
(show-workmap)
(load-data (strcat *examples-data-dir-name* "grunfeld.lsp"))

(regression-analysis
      :method "monotonic"
      :response '("year")
      :predictors '("invest" "stock" "shares"))

(visualize-model)
(report-model)

(regression-analysis
      :response '("year")
      :predictors '("invest" "stock" "shares"))

(visualize-model)

(vista-message "Grunfeld Monotonic Regression Example Finished. The spreadplot you see is for the OLS analysis. Underneath it is the report and spreadplot for the monotonic analysis.")
