hw5 -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: http://statistics.byu.edu/faculty/wfc/stat611/examples/hw5.sas 1 of 4 11/25/2007 6:35 PM options ls=150 formdlim="#"; /********** *********** **** #2 *** *********** **********/ data root; infile 'e:\My Documents\stat611\MULTIVAR\ROOT.DAT'; input group x1 x2 x3 x4; run; title '#2 (13.9 ACR) Principal Factor Method with Varimax Rotation'; proc factor method=principal cov /*Note: Factor uses correlation matrix unless 'COV' option is used here */ /*priors=smc */ /* COMMENT: smc tells Proc Factor to use the squared multiple correlation with all the other vars as the prior communality estimate. */ n=2 scree /* scree plot */ preplot /* plot unrotated structure */ rotate=varimax reorder /* reorder observed variables according to loading on first factor */ plot /* plot rotated factor loading structure */; var x1-x4; run; /********** *********** **** #3 *** *********** **********/ data receptor; infile 'e:\My Documents\stat611\receptor2.txt'; input Ethylene Propane nButane x2Mp x3Mp Benzene Cyclohexane x2Mh x224Tmp Acetylene Ethane; run; title '#3a (Receptor Data): Principal Factor Method with Varimax Rotation'; proc factor method=principal priors=smc /* COMMENT: smc tells Proc Factor to use the squared multiple correlation with all the other vars as the prior communality estimate. */ mineigen=1 rotate=promax reorder plot; var Ethylene Propane nButane x2Mp x3Mp Benzene Cyclohexane x2Mh x224Tmp Acetylene Ethane; run; title '#3b (Receptor Data): Maximum Likelihood Method (k=1 factor)'; proc factor method=ml heywood /* sets to 1 any communality greater than var{x_i}=1 */ n=1; /* use 1 factor */ var Ethylene Propane nButane x2Mp x3Mp Benzene Cyclohexane x2Mh x224Tmp Acetylene Ethane;...
View Full Document

Page1 / 4

hw5 -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online