Skip to content

Instantly share code, notes, and snippets.

View t-pfaff's full-sized avatar

Tobias Pfaff t-pfaff

  • Germany
View GitHub Profile
@t-pfaff
t-pfaff / PCA and models
Last active August 29, 2015 14:22
SAS code used for MODA project to preemptively identify at-risk buildings provided by Sohaib Hasan (http://blog.datalook.io/using-data-analytics-to-make-bad-buildings-better-in-new-york-city/)
*****PCA*****;
proc factor data=foreclosures (drop=n_dep_prty_NURSINGHOME n_dob_app_0001544 n_dob_app_0002571 n_dob_app_0037664 n_dob_app_0007320 n_dob_app_0002920) method=p priors=max rotate=promax mineigen=1.3 outstat=fact1 scree corr res score ultraheywood noprint;
var high_risk_neighborhood aep bip_score erp_charge lien_amount lis_pendens n_311: n_911: n_dep: n_dob: n_ecb: n_fires n_hpd: n_units nm_val_ttl_amt numfloors rent_stab tax_lien yearbuilt;
run;
*****Foreclosures Model*****;