/*This is a DRAFT graduate level SAS programming overview with a data simulation and plots to accompany reading of chapter 1 Campbell & Kenny, 1996; Program developed by Theodore Walls, University of Rhode Island, January 17, 2005. Full ref in Latex: \item Campbell, D.T. \& Kenny, D.A. (1996). \textit{A Primer on Regression Artifacts.} New York: Guilford. */ /*how to set up a SAS libary*/ /*libname psy690 'path';*/ /**FANCIER TRICKS: libname bb odbc dsn=BB2CATH; *libname bblevmen odbc dsn=bblevmen preserve_col_names=YES; libname BRGHTBG 'F:\1datafiles\LEVBB\DATA'; libname MENTOR 'F:\1datafiles\LEVBB\DATA'; OPTIONS FMTSEARCH=(BRGHTBG);*/ /*how to set up a "flat" sas database*/ libname perm 'c:\1datalap'; run; data basic; input a b; datalines; 1 1 3 2 ; run; proc print data = basic; run;