This page is hosted on AFS file server space, which is being shut down on November 13, 2018.
If you are seeing this message, your service provider needs to take steps now.
Visit afs.unc.edu for more information.

## Psych 285: Computational Statistics

and Statistical Visualization## Professor Forrest Young

## Object Oriented Programming:

ViSta Statistical ObjectsWrite NORM-MODEL-PROTO, a prototype ViSta model object to normalize the active numeric variables of a multivariate data matrix (i.e., makes the mean of each columnMEANand the standard deviationSTDEV). The object's constructor-function should the standard ViSta system arguments, with keyword argumentsMEAN(default 0.0) andSTDEV(default 1.0). The constructor-function should return the object identification information of the instantiated object.The object should have six slots and slot accessor methods for the desired mean and standard deviation, for the raw data and normalized data, and for the observed means and standard-deviations.

In addition to the slot-accessor methods, there should be object-specific methods which compute values for each slot. The code should also include an object-specific method which prints either the original or normalized

X.The code should include the ViSta system methods

:ANALYSISand:REPORT. The:ANALYSISmethod should compute and store the matrix of normalized data, the means and the standard-deviations of the raw variables. The:REPORTmethod should print the original matrix, its summary statistics and the normalized matrix.Test your code by creating instances of the object using various ViSta data objects. Compare your results to ViSta's

TRANSFORMmenu'sNORMALIZE DATAitem.Send your code, and your test of the code, to me by e-mail before class on the due date.

## To get in touch:

email: forrest@unc.edu WWW: http://forrest.psych.unc.edu