This folder contains the data from Experiment 1 reported in the following publication:

Petrov, A.  (2010). Category rating is based on prototypes and not instances: 
  Evidence from feedback-dependent context effects. 
  Journal of Experimental Psychology: Human Perception and Performance, ?, ??-??.   
PDF preprint available at http://alexpetrov.com/pub/jephpp10/

= Experiment 1 =

The data was collected at Carnegie Mellon University in 2001.  
This experiment was developed and stored under the name "fdbk1".
It was administered using Macintosh Common Lisp (MCL) -- the full code is
available here in /prog/fdbk1_one_file.lisp.  Among other things, it
contains the verbatim instructions that appeared on the screen.

The raw data files are in ASCII format and are available in data/raw_data/ 
See  data/raw_data/raw_data_readme.txt for a description of the raw data format.  

The raw data were preprocessed using two Matlab scripts (data/data_by_sbj.m and 
and data/empir_ARL2_profile.m) and stored in a Matlab structure S2, which is available
here in file data/S2.mat.  This structure contains all the information from the raw ASCII files, 
plus the "average response levels (ARLs)" calculated on this basis. All subsequent scripts 
load S2.mat as their starting point.

The script data/empir_ARL2_profile.m was published to html using Matlab's "publish" functionality.
The published report includes the source code, all messages printed to the command window, and all figures. Figures 2 and 3 in the JEP:HPP article were generated by this script -- the html is
available in data/html/empir_ARL2_profile.html. Check it out, it is very informative.

The ARL2s for each subject in each of the 9 time periods were exported in ASCII format in
order to be imported into SPSS for ANOVA.  See data/ARL2_data_readme.txt for details.
The results of the within-subject ANOVA are available in data/SPSS/


= Model Fits =

The source code for the ANCHOR model is available on-line at http://alexpetrov.com/softw/anchor/

The source code for the INST model (aka 'protoanchor') is available here in ../INST/
See ../INST/INST_readme.txt for details on the INST implementation.

The figure with the model fits (Figure 4 in the JEP:HPP article) was generated by the Matlab 
script data/final_ARL2_fits.m, available here.  The html report is in data/html/final_ARL2_fits.html.
An archive of the Matlab workspace is available in data/final_ARL2_fits.mat

The figures with model predictions (Figures 5 and 6 in the JEP:HPP article) were generated by
data/model_ARL2_predictions.m. The corresponding html report and workspace are available in
data/html/model_ARL2_predictions.html and data/model_ARL2_predictions.mat.

Note: The Matlab scripts depend on various utilities and on the whole infrastructure available
on Alex Petrov's office computer.  No effort has been made here to track all dependencies and
include them in this distribution. Thus, they will *not* work by themselves. An (old) version 
of the most important utilities is available on-line at http://alexpetrov.com/softw/   
The version of the ANCHOR model for the Psych Review paper (Petrov & Anderson, 2005) is available
at http://alexpetrov.com/proj/anchor/
If you download and install utils and anchor, together with the scripts provided in this archive,
you do have a fighting chance of getting everything to work.  However, this is hardly the point.
The point is to get a feeling of what was done in the JEP:HPP paper and make the experimental 
data available for your own explorations.  Let me know if I can be of further help.

Good luck!

-- Alex Petrov  2010-07-26


DISCLAIMER ***************************************************************************
The MATLAB and MCL sources are made available in the hope that they may be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and
the Free Software Foundation website (http://www.fsf.org) for more details.
