Home > Data Services > Catalog . Restricted Data . Census . ACS

Search Data Services

Meta Search
search across all the following databases:

Data Catalog
Data and documentation

KnowledgeBase
Common questions and answers.

Resources
Entire collection of data resources.


Latest Data News

RSS Feed icon

Political Science: A self-inflicted wound?

Sage Stats and CQ Political Stats Trial

Breaking News: Protect the 2020 Census

The Fastest Growing US Cities Are Mostly In the West

Another rule from NIH: Demographers might get to ignore this one

Data Services Knowledge Base

Q:  

I have a neighborhood that I define by census tracts. How can I create characteristics for these neighborhoods in SAS

A:  

Here’s an example of how you can sum in SAS.

The example has you multiplying size of census tract x pov for each census tract (in the neighborhood).

Sort by neighborhood. Sum these products across all census tracts in the neighborhood. End up with a single sum for a zip code

data a;
infile . . . ;
input . . . ;
wpov = total*pov;
proc sort; by neigh;
proc means noprint data=a;
by neigh;
var wpov;
output out=sum sum(wpov)=wpovx;
data b;
set sum;
proc print;
neigh wpovx;

Annotated Resources:

Related Question Groups: