Statistics, Data Analysis & Econometrics

Size: px
Start display at page:

Download "Statistics, Data Analysis & Econometrics"

Transcription

1 ST001 A SAS MACRO FOR THE CONTROLLED ROUNDING OF ONE- AND TWO-DIMENSIONAL TABLES OF REAL NUMBERS Robert D. Sands Bureau of the Census Keywords: Controlled Rounding, Tabular data, Transportation algorithm ABSTRACT A SAS Macro is described that solves the problem of rounding the real number entries of a tabular array to adjacent integers while preserving the additive structure of the table marginals. The controlled rounding is also the optimal solution in that the total change in the original numbers is minimized. The Macro is designed to have functionality similar to that provided by the conventional SAS ROUND Function. This is to say that a round-off unit argument is provided which will produce a table rounded to the nearest integer, as well to the nearest ten, hundred, tenth or hundredth. INTRODUCTION This paper describes the background, theory, and implementation of the controlled rounding macro. Appendix B contains the macro in its entirety. BACKGROUND The general algorithm employed in the Macro is based on a paper by Cox and Ernst (1982) describing the solution to the Controlled Rounding problem. The first solution to the controlled rounding problem which employed SAS PROC NETFLOW was created by Brian Richards and Jim Fagan (1997) at the Bureau of the Census. This macro did a controlled rounding to integers of a fixed size 7x7 matrix of real numbers. The macro produced a solution with the same minimum cost as an earlier FORTRAN language controlled rounding program created by the same authors. Applications of controlled rounding include rounding to integers the real number estimates of population which had been adjusted subject to factors determined by a population coverage survey (Wolter, 1986). This was the application for the 2000 Census coverage survey that motivated the author to produce the macro discussed in this paper. Another application could, for example, be the disposition of the cents portion of a table of financial figures in the most judicious manner while maintaining the additive structure of the table. THEORY The theory for controlled rounding is based on the capacitated transportation problem characterized as a network (Cox and Ernst, 1982). This theory is presented in detail in Dantzig (1963). The mathematical theory underlying the transportation problem and linear programming (LP) problems in general concerns the solution of a system of linear inequalities that also minimizes a linear form. An excellent treatment of linear programming (LP), the simplex method of solving LP problems, as well as the distribution method of solving the specific transportation type of LP problem can be found in Siemens, et al, The transportation problem consists of a list of sources of a commodity and a list of destinations for a commodity. Each link or arc between a source and destination has a cost per unit shipped of the commodity as well as a minimum and maximum flow for the commodity. Each source node has a limited capacity to produce the commodity while each destination node has a particular demand for the commodity. The objective is to fulfill the demands of all destinations while not exceeding the supplies of each of the sources and to do so at a minimum distribution cost. In the controlled rounding problem, the distribution cost for a cell of the matrix is a function of the square of the decimal portion of each real number. For example, the number, 2.31, is rounded up to 3 at a cost of ( ) 2 - (0.31) 2 = 0.38 whereas the number, 4.62, is rounded up to 5 at a cost of ( ) 2 - (0.62) 2 = The objective is to round (distribute) the decimal portion of each number in the interior cells and in the marginal row and column to an adjacent integer subject to a number of constraints. The controlled rounding must result in a matrix in which : 1) all the numbers sum to the marginal row, column, and grand total (tabular structure is maintained), 2) a number that is already an integer is unchanged, and 3) the total amount of change to the numbers is minimized.

2 The third constraint deserves some more discussion. The function for determining the cost is in terms of rounding up. The rounding up operation has a zero or negative cost when the number has a decimal portion >=.5 and a positive cost if the number to be rounded up has 0 < decimal portion <.5. The roundings selected by the systematic methodology of linear programming are most often conventional and therefore have a negative cost. Frequently, however, there are instances where the additive structure cannot be maintained at minimum overall cost without unconventionally rounding some individual table entries. That is, some entries which have 0 < decimal portion <.5 must be rounded up to sacrifice for the greater good of the matrix. For example, consider the sequence of Tables 1a-j in Appendix A, representing a 7x7 table of real numbers (Table 1a). In Table 1b, the marginal row and column totals as well as the grand total entries are included. With the marginals added the 8x8 table of real numbers can begin to be characterized in the form of a transportation problem matrix. This will be explained in more detail in the following paragraphs. When the integer portion of the original 7x7 internal table entries is removed and the marginal sums included, the matrix in Table 1c is produced. This table concerns only the decimal portion of the original table (Table 1a) because the controlled rounding algorithm concerns only the costs of rounding up the decimal portion of the number. Thus, the integer portions of the real numbers in the original table are arbitrary to the rounding solution. Once the controlled rounding solution is determined by the transportation algorithm the integer portions are merely substituted back into the solution. The highlighted entries of Table 1d are added (folded-in) with the highlighted marginal row and column of Table 1c to produce the marginal row and column of Table 1d. In Table 1d the marginal (ninth) column represents the supply held by each row while the marginal (ninth) row of Table 1d represents the demand required by each column. The supply and demand marginals of Table 1d form the right-hand side of a system of linear functions depicted in Table 1f. Each variable, x ij, in Table 1f represents a cell in Table 1b. In the control rounding solution, x ij = 0 means round down and x ij = 1 means round up. The 8x8 sub-table entries (excluding the marginal row and column and grand total) in Table 1d determine the cost of rounding up each cell of Table 1b. The cost of rounding up each interior cell and the marginal cells is given in Table 1e. Refer to the discussion of cost earlier in this section to review the function that uses the decimal portion of the real number to compute the cost of rounding. The transportation algorithm operates, generally, in two phases. In the first phase, an initial solution to the controlled rounding problem is found. This initial feasible solution is depicted in Table 1g as a 0 1 solution to the transportation matrix of Table 1f. The actual rounded entries corresponding to the initial solution of Table 1g are given in Table 1h. Incidentally, the initial solution was found the Northwest corner method (Seimans et al, 1973) which inserts 1s as values of the x ij variables by starting in the upper left corner of the table and proceeding through the cells of the table in a stair step manner until all the marginal constraints are fulfilled. This approach yields a controlled rounding of the table but not necessarily the lowest cost (optimal) controlled rounding. The second phase of the transportation algorithm employs the cell rounding costs of Table 1e to determine a controlled rounding of Table 1b in which the total cost of changing the numbers is minimized. This optimal solution in shown in Tables 1i and 1j. Employing a method based on the original Simplex method of Dantzig (1963) the cost of controlled rounding is reduced from 4.76 of the Initial Solution to of the optimal solution. IMPLEMENTATION The SAS macro program for controlled rounding (CTRLROUND) described in this paper was created by the author in 1998 and was used to produce rounded small area estimates in preparation for the 2000 Census population coverage survey. The author used the SAS program, which control rounded a fixed size 7x7 matrix, created by Brian Richards and Jim Fagan, and generalized it. This Macro will produce a controlled rounding to adjacent integers of an arbitrary m x n matrix of real numbers input as either a text file or as a SAS data set. It can handle round-off units in powers-of-ten. The Macro is hardware platform independent. The PC (Pentium III) implementation can process a 1,000 cell table in 1 second, a 10,000 cell table in approximately 70 seconds and a 100,000 cell table requires approximately 70 minutes. The complete SAS macro program code (CTRLROUND.SAS) is given in Appendix B. It can be cut and pasted as is from an electronic version of this paper into the SAS Program Editor window on any hardware platform running SAS Version 8, the appropriate home file directory path defined for the home macro variable, and run.

3 Continuing the example of the previous section and referring again to given to Tables 1a-j, the input to PROC NETFLOW is held in two data sets. Each of these data sets must be constructed from the table to be control rounded using the methodology discussed in the previous section. The two input data sets 1 created by the CTRLROUND macro are the NODED and ARCD1 data sets shown in Appendix C. The control rounded solution data set output by PROC NETFLOW is the SOLUTION data set shown in Appendix C. CONTACT INFORMATION Robert D. Sands, DSSD, Room , US Census Bureau, Washington, DC 20233, (301) robert.d.sands@census.gov REFERENCES Cox, Lawrence H. and Ernst, Lawrence R. (1982), "Controlled Rounding", INFOR (20)4, Dantzig, George B. (1963), Linear Programming and Extensions, Princeton, NJ: Princeton University Press. SAS Institute Inc. (1999), SAS/IML User s Guide, Version 8, Cary, NC: SAS Institute Inc. SAS Institute Inc. (1999), SAS/OR User s Guide, Version 8, Cary, NC: SAS Institute Inc. Siemens, Nicolai, Marting, C.H., and Greenwood, Frank (1973), OPERATIONS RESEARCH, New York: THE FREE PRESS. Wolter, Kirk, M. (1986), Some Coverage Error Models for Census Data, Journal of the American Statistical Association, 81, The _CO ST_ data values in the SAS data sets of Appendix C are, when divided by 10000, equivalent to the costs given in Table 1e of Appendix A.

4 APPENDIX A Table 1a. Original Table without marginals Table 1f. Transportation Matrix of CR Problem x 11 x 12 x 13 x 14 x 15 x 16 x 17 1-x x 21 x 22 x 23 x 24 x 25 x 26 x 27 1-x x 31 x 32 x 33 x 34 x 35 x 36 x 37 1-x x 41 x 42 x 43 x 44 x 45 x 46 x 47 1-x x 51 x 52 x 53 x 54 x 55 x 56 x 57 1-x x 61 x 62 x 63 x 64 x 65 x 66 x 67 1-x x 71 x 72 x 73 x 74 x 75 x 76 x 77 1-x x.1 1-x.2 1-x.3 1-x.4 1-x.5 1-x.6 1-x.7 x Table 1b. Original Table with marginals Table 1g. Initial Solution of Transportation Matrix Table 1c. Fractional Portion of Table with marginals Table 1d. Folded-in Table Table 1e. Rounding Cost for each Table Cell Table 1h. Initial Solution of CR Problem cost = 4.76 Table 1i. Optimal Solution of Transportation Matrix Table 1j. Optimal Solution of CR Problem cost = -6.56

5 APPENDIX B /* ctrlround */ /* Robert D. Sands, U.S. Bureau of the Census, Washington, DC, June 13, 2003 */ /* Controlled rounding program - SAS data set input */ /* This program performs the controlled rounding of an m x n matrix of real numbers. The general algorithm is based on a paper by L.H. Cox and L.R. Ernst (1982) "Controlled Rounding", INFOR (20)4. The algorithm solves the problem of rounding to adjacent integers of the real number entries in a tabular array such that the total change to the table cells is minimized while preserving the tabular structure of the input array. The problem is represented as a capacitated transportation problem as described in George B. Dantzig (1963) Linear Programming and Extensions, pgs The solution to the controlled rounding problem using SAS PROC NETFLOW was first created by Brian Richards and Jim Fagan (1997) at the U.S. Census Bureau and operated on a fixed size 7 x 7 input matrix. The current SAS program, which reads an arbitrary m x n matrix from a text file or a SAS data set and creates the output matrix and SAS data set, was compiled by Robert Sands (1998) at the Census Bureau. The first two data steps, which read in the arbitrarily sized matrix, were written by Timothy J. Braam (1998) at the Census Bureau. In addition, this Macro (Robert Sands, 2003) is designed to have functionality similar to that provided by the conventional SAS ROUND Function. This is to say that a round-off unit argument is provided which will produce a table rounded to the nearest integer, as well to the nearest ten, hundred, tenth or hundredth. */ ******************************************************************************************************* To run controlled rounding SAS macro : (A) If input table is text file (row(s) of numbers delimited by space(s) : %CTRLROUND (TEXTFILEIN=<full text file path, filename, extension>, DSOUT=<output data set name>); OR (B) If input table is SAS data set (requires column variables to be named : col1-col&cols) : %CTRLROUND (DSIN=<input data set name>, DSOUT=<output data set name>); ******************************************************************************************************* /* signd */ /* Find the most significant decimal digit (places to the right of the decimal point) in all the numbers in the tabular array contained in &ds */ %macro signd (ds=,maxwidth=,maxsignd=); data signd (keep = signd); retain signd; signd = 0; if _N_ eq 1 then do until (last); set &ds end=last; %do j = 1 %to &cols; decimals = substr(put(col&j,&maxwidth..&maxsignd),%eval(&maxwidth - &maxsignd + 1),&maxsignd); hold = &maxsignd; found = 0; /* Find most significant digit position in col&j */ do while (hold > 0 and not found); found = substr(decimals,hold,1) ne "0"; if not found then hold = hold - 1; /* do while (hold > 0) */ /* Check if col&j has a more significant digit than previous canidate */ if hold > signd then signd = hold; /* put " col&j = " col&j " hold = " hold " signd = " signd; */ % end /* do until (last) */; else do; stop;

6 run; %mend signd; /* prcprint */ %macro prcprint (lib=, ds=, vars=, state=); proc print data = &lib&ds&state heading = v width = min; title "&lib&ds&state"; format &vars ; run; title " "; %mend prcprint; %macro ctrlround (textfilein=, roundoff=, dsin=, dsout=); /* Determine whether input table is in the form of a (1) a text file or (2) a SAS data set */ %if &textfilein ne %then %do; data _NULL_ ; infile "&textfilein" end=done truncover obs=1 ; ; okay=1 ; do while (okay=1) ; input ; i + 1 ; if col lt 0 then do ; call symput('cols', left(put(i, 4.))) ; okay=0 ; end ; end ; run ; data set1; infile "&textfilein" end=done truncover ; input col1-col&cols ; run ; % %else %if &dsin ne %then %do; data set1; set &dsin; /* Change variable names to col1-col&cols */ run ; % /* %prcprint (ds=set1, vars=col1); */ /* Multply entries of input data set by inverse of the roundoff unit */ data set1 (drop = total); set set1 end=last; file PRINT; total + col1; %do n = 1 %to &cols; col&n = col&n * (1/&roundoff); % /* if last then put "total = " total 25.12; */ run ; /* Find the number in the input data set with the most significant digits to the right of a decimal point */ %signd (ds=set1,maxwidth=25,maxsignd=12);

7 /* Process matrix with input data table into data sets needed for the PROC netflow in order to do controlled rounding of the table */ proc iml; /* Read the most significant decimal digit for the numbers in the input data set */ use signd; read all var _num_ into signd; /* print "IML : signd = " signd; */ B = 10**signd; /* Put the base value into a data set */ create B var {B}; app /* Read data set with table of real numbers into a matrix */ use set1; read all var _num_ into table; tot = sum(table); /* Multply all input matrix enties by base value, B */ table = table*b; /* Determine the number of rows of the input matrix */ m = nrow(table); /* Put the number of rows value into a data set */ create m var {m}; app /* Determine the number of columns of the input matrix */ n = ncol(table); /* Put the number of columns value into a data set */ create n var {n}; app /* Define the total matrix to hold the input matrix with the marginal totals */ ttable = j(m+1,n+1,0); ttable[1:m,1:n] = table; /* Calculate row marginal totals */ do i = 1 to m ; ttable[i,n+1] = sum(table[i,]); /* Calculate column marginal totals */ do j = 1 to n ; ttable[m+1,j] = sum(table[,j]); ttable[m+1,n+1] = sum(table); /* Create data set of matrix with marginal totals */ create ttable from ttable; append from ttable; /* reset autoname; print "ttable = " ttable; */ /* Create the 'Folded-in' table from the total table */ ftable = j(m+2,n+2,0); ftable[1:m,1:n] = mod(table,b); /* Calculate row node and folded-in values */ do i = 1 to m ; ftable[i,n+2] = ceil(sum(ftable[i,1:n])/b)*b; ftable[i,n+1] = ftable[i,n+2] - sum(ftable[i,1:n]); /* Calculate column node and folded-in values */ do j = 1 to n ; ftable[m+2,j] = ceil(sum(ftable[1:m,j])/b)*b; ftable[m+1,j] = ftable[m+2,j] - sum(ftable[1:m,j]); ftable[m+1,n+2] = ceil(sum(ftable[m+1,1:n])/b)*b; ftable[m+1,n+1] = ftable[m+1,n+2] - sum(ftable[m+1,1:n]); ftable[m+2,n+1] = ceil(sum(ftable[1:m,n+1])/b)*b; /* Create data set of matrix with folded-in values */ create ftable from ftable; append from ftable;

8 /* reset autoname; print "ftable = " ftable; */ /* Create data sets for input to PROC NETFLOW */ /* Create arrays containing a supply node name and value representing each interior row (and one for the folded-in row) and a demand node name and value for each interior column (and one for the folded-in column) */ _node_ = j(m+1 + n+1,1,' '); _sd_ = j(m+1 + n+1,1,0); /* Load supply nodes name and value */ do i = 1 to m+1 ; _node_[i,1] = char(i,8); _sd_[i,1] = ftable[i,n+2]/b; /* Add identifying characters to supply nodes of node data */ /* Change all blanks to zeros */ call change (_node_," ","0",0); /* Change 1st 3 characters to 'row' */ call change (_node_,"000","row"); /* Load demand nodes name and value */ do j = 1 to n+1 ; _node_[m+1 + j,1] =char(j,8); _sd_[m+1 + j,1] = (ftable[m+2,j]/b) * -1; /* Add identifying characters to demand nodes of node data */ demnode = _node_[m+2:m+1+n+1,1]; call change (demnode," ","0",0); call change (demnode,"000","col"); _node_[m+2:m+1+n+1,1] = demnode; /* Create nodedata data set from arrays for input to PROC NETFLOW */ create noded var {_node sd_}; app /* Create arrays containing the arc information: from, to, cost, capacity */ _cost_ = j((m+1)*(n+1),1,0); _from_ = j((m+1)*(n+1),1,' '); _to_ = j((m+1)*(n+1),1,' '); _capac_ = j((m+1)*(n+1),1,0); capacity = 1; p = 2; do i = 1 to m+1; do j = 1 to n+1; _cost_[(i-1)*(n+1)+j,1] = (B - ftable[i,j])**p - (ftable[i,j])**p; _from_[(i-1)*(n+1)+j,1] = char(i,8); _to_[(i-1)*(n+1)+j,1] = char(j,8); _capac_[(i-1)*(n+1)+j,1] = capacity; /* Add identifying characters to _from_ and to _to_ nodes of arc data */ call change (_from_," ","0",0); call change (_from_,"000","row"); call change (_to_," ","0",0); call change (_to_,"000","col"); /* Create arcdata data set from arrays for input to PROC NETFLOW */ create arcd1 var {_from to cost capac_}; app quit; /* Produce solution of controlled rounding using node and arc data sets */ /* The _flow_ variable in the solution dataset output by PROC NETFLOW contains eith a 0 or a 1 for each cell on the real number matrix designating whether it should be rounded the floor integer or rounded up to the ceiling integer */ proc netflow nodedata = noded arcdata = arcd1 arcout = solution;

9 reset maxit1 = ; run; /* Output a portion of the controlled rounding solution data set */ /* proc print data = solution uniform heading = v width = min; sum _fcost_; title 'Controlled Rounding Solution'; var _from to flow cost fcost_; run; */ /* Interpret output of PROC NETFLOW and create rounded table */ proc iml; /* Get number of rows variable */ use m; read point 1; /* Get number of columns variable */ use n; read point 1; /* Get base variable */ use B; read point 1; /* Read input table real numbers into a matrix */ use ttable; read all var _num_ into ttable; ttable = ttable/b; /* Print input table of real numbers with marginal totals */ reset autoname; /* print ttable; */ /* Create matrix for rounded table */ rtable = j(m+1,n+1,0); /* Get solution values from PROC NETFLOW output */ use solution; read all var {_flow_} into flow; /* Interpret output of PROC NETFLOW and create rounded table */ do j = 1 to n+1; do I = 1 to m+1; if ((I <= m & j <= n) (I = m+1 & j = n+1)) then /* Create interior cells and total cell from _flow_ variable */ do; if (flow[(j-1)*(m+1)+i,] = 0) then rtable[i,j] = floor(ttable[i,j]); else /* flow = 1*/ rtable[i,j] = ceil(ttable[i,j]); else if ((I = m+1 j = n+1) & ^(I = m+1 & j = n+1)) then /* Create row and column marginal cells from _flow_ variable */ do; if (flow[(j-1)*(m+1)+i,] = 0) then rtable[i,j] = ceil(ttable[i,j]); else /* flow = 1*/ rtable[i,j] = floor(ttable[i,j]); /* Print (control) rounded table of integers */ reset autoname; ttable = ttable*(&roundoff); print ttable; rtable = rtable*(&roundoff); print rtable; /* Create data set from rounded matrix */ create &dsout from rtable; append from rtable; quit; %mend ctrlround;

10 /* Platform-dependent file directory path macro variable */ %let home = %str(c:\); /* PC Windows */ /* %let home = %str(/home/sands003/); */ /* Unix */ /* %let home = %str(dssd_se_sam:[r_sands]); */ /* Compaq Alpha */ %let textfilein = %str(matrix.txt); libname user "&home"; /* Input matrix example */ data _null_; file "&home&textfilein"; put " "; put " "; put " "; put " "; put " "; put " "; put " "; stop; run; /* Macro Invocation using input matrix above */ %ctrlround (textfilein=&home&textfilein, roundoff=1, dsin=, dsout=user.a);

11 APPENDIX C NODED Data Set OBS _NODE SD_ 1 row row row row row row row row col col col col col col col col

12 ARCD1 Data Set OBS _FROM TO COST CAPAC_ 1 row00001 col row00001 col row00001 col row00001 col row00001 col row00001 col row00001 col row00001 col row00002 col row00002 col row00002 col row00002 col row00002 col row00002 col row00002 col row00002 col row00003 col row00003 col row00003 col row00003 col row00003 col row00003 col row00003 col row00003 col row00004 col row00004 col row00004 col row00004 col row00004 col row00004 col row00004 col row00004 col row00005 col row00005 col row00005 col row00005 col row00005 col row00005 col row00005 col row00005 col row00006 col row00006 col row00006 col row00006 col row00006 col row00006 col row00006 col row00006 col row00007 col row00007 col row00007 col row00007 col row00007 col row00007 col row00007 col row00007 col row00008 col row00008 col row00008 col row00008 col row00008 col row00008 col row00008 col row00008 col

13 SOLUTION Data Set OBS _FROM TO COST FLOW FCOST_ 1 row00001 col row00002 col row00003 col row00004 col row00005 col row00006 col row00007 col row00008 col row00001 col row00002 col row00003 col row00004 col row00005 col row00006 col row00007 col row00008 col row00001 col row00002 col row00003 col row00004 col row00005 col row00006 col row00007 col row00008 col row00001 col row00002 col row00003 col row00004 col row00005 col row00006 col row00007 col row00008 col row00001 col row00002 col row00003 col row00004 col row00005 col row00006 col row00007 col row00008 col row00001 col row00002 col row00003 col row00004 col row00005 col row00006 col row00007 col row00008 col row00001 col row00002 col row00003 col row00004 col row00005 col row00006 col row00007 col row00008 col row00001 col row00002 col row00003 col row00004 col row00005 col row00006 col row00007 col row00008 col Cost =

14

Handling Numeric Representation SAS Errors Caused by Simple Floating-Point Arithmetic Computation Fuad J. Foty, U.S. Census Bureau, Washington, DC

Handling Numeric Representation SAS Errors Caused by Simple Floating-Point Arithmetic Computation Fuad J. Foty, U.S. Census Bureau, Washington, DC Paper BB-206 Handling Numeric Representation SAS Errors Caused by Simple Floating-Point Arithmetic Computation Fuad J. Foty, U.S. Census Bureau, Washington, DC ABSTRACT Every SAS programmer knows that

More information

Paper CC-016. METHODOLOGY Suppose the data structure with m missing values for the row indices i=n-m+1,,n can be re-expressed by

Paper CC-016. METHODOLOGY Suppose the data structure with m missing values for the row indices i=n-m+1,,n can be re-expressed by Paper CC-016 A macro for nearest neighbor Lung-Chang Chien, University of North Carolina at Chapel Hill, Chapel Hill, NC Mark Weaver, Family Health International, Research Triangle Park, NC ABSTRACT SAS

More information

IV. Special Linear Programming Models

IV. Special Linear Programming Models IV. Special Linear Programming Models Some types of LP problems have a special structure and occur so frequently that we consider them separately. A. The Transportation Problem - Transportation Model -

More information

Using Maps with the JSON LIBNAME Engine in SAS Andrew Gannon, The Financial Risk Group, Cary NC

Using Maps with the JSON LIBNAME Engine in SAS Andrew Gannon, The Financial Risk Group, Cary NC Paper 1734-2018 Using Maps with the JSON LIBNAME Engine in SAS Andrew Gannon, The Financial Risk Group, Cary NC ABSTRACT This paper serves as an introduction to reading JSON data via the JSON LIBNAME engine

More information

Graph Theory for Modelling a Survey Questionnaire Pierpaolo Massoli, ISTAT via Adolfo Ravà 150, Roma, Italy

Graph Theory for Modelling a Survey Questionnaire Pierpaolo Massoli, ISTAT via Adolfo Ravà 150, Roma, Italy Graph Theory for Modelling a Survey Questionnaire Pierpaolo Massoli, ISTAT via Adolfo Ravà 150, 00142 Roma, Italy e-mail: pimassol@istat.it 1. Introduction Questions can be usually asked following specific

More information

Notes for Unit 1 Part A: Rational vs. Irrational

Notes for Unit 1 Part A: Rational vs. Irrational Notes for Unit 1 Part A: Rational vs. Irrational Natural Number: Whole Number: Integer: Rational Number: Irrational Number: Rational Numbers All are Real Numbers Integers Whole Numbers Irrational Numbers

More information

Contents of SAS Programming Techniques

Contents of SAS Programming Techniques Contents of SAS Programming Techniques Chapter 1 About SAS 1.1 Introduction 1.1.1 SAS modules 1.1.2 SAS module classification 1.1.3 SAS features 1.1.4 Three levels of SAS techniques 1.1.5 Chapter goal

More information

Chapter 7 File Access. Chapter Table of Contents

Chapter 7 File Access. Chapter Table of Contents Chapter 7 File Access Chapter Table of Contents OVERVIEW...105 REFERRING TO AN EXTERNAL FILE...105 TypesofExternalFiles...106 READING FROM AN EXTERNAL FILE...107 UsingtheINFILEStatement...107 UsingtheINPUTStatement...108

More information

Chapter 1 Introduction to Optimization

Chapter 1 Introduction to Optimization Chapter 1 Introduction to Optimization Chapter Contents OVERVIEW................................... 15 DATA FLOW................................... 16 PROC LP................................... 17 PROC

More information

A Simple Framework for Sequentially Processing Hierarchical Data Sets for Large Surveys

A Simple Framework for Sequentially Processing Hierarchical Data Sets for Large Surveys A Simple Framework for Sequentially Processing Hierarchical Data Sets for Large Surveys Richard L. Downs, Jr. and Pura A. Peréz U.S. Bureau of the Census, Washington, D.C. ABSTRACT This paper explains

More information

Penetrating the Matrix Justin Z. Smith, William Gui Zupko II, U.S. Census Bureau, Suitland, MD

Penetrating the Matrix Justin Z. Smith, William Gui Zupko II, U.S. Census Bureau, Suitland, MD Penetrating the Matrix Justin Z. Smith, William Gui Zupko II, U.S. Census Bureau, Suitland, MD ABSTRACT While working on a time series modeling problem, we needed to find the row and column that corresponded

More information

An Introduction to SAS/SHARE, By Example

An Introduction to SAS/SHARE, By Example Paper AD01 An Introduction to SAS/SHARE, By Example Larry Altmayer, U.S. Census Bureau, Washington, DC ABSTRACT SAS/SHARE software is a useful tool for allowing several users to access and edit the same

More information

Spatial Enhancement Definition

Spatial Enhancement Definition Spatial Enhancement Nickolas Faust The Electro- Optics, Environment, and Materials Laboratory Georgia Tech Research Institute Georgia Institute of Technology Definition Spectral enhancement relies on changing

More information

NOTATION AND TERMINOLOGY

NOTATION AND TERMINOLOGY 15.053x, Optimization Methods in Business Analytics Fall, 2016 October 4, 2016 A glossary of notation and terms used in 15.053x Weeks 1, 2, 3, 4 and 5. (The most recent week's terms are in blue). NOTATION

More information

Identifying Duplicate Variables in a SAS Data Set

Identifying Duplicate Variables in a SAS Data Set Paper 1654-2018 Identifying Duplicate Variables in a SAS Data Set Bruce Gilsen, Federal Reserve Board, Washington, DC ABSTRACT In the big data era, removing duplicate data from a data set can reduce disk

More information

Hidden in plain sight: my top ten underpublicized enhancements in SAS Versions 9.2 and 9.3

Hidden in plain sight: my top ten underpublicized enhancements in SAS Versions 9.2 and 9.3 Hidden in plain sight: my top ten underpublicized enhancements in SAS Versions 9.2 and 9.3 Bruce Gilsen, Federal Reserve Board, Washington, DC ABSTRACT SAS Versions 9.2 and 9.3 contain many interesting

More information

Lecture notes on Transportation and Assignment Problem (BBE (H) QTM paper of Delhi University)

Lecture notes on Transportation and Assignment Problem (BBE (H) QTM paper of Delhi University) Transportation and Assignment Problems The transportation model is a special class of linear programs. It received this name because many of its applications involve determining how to optimally transport

More information

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010 CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010 Quick Summary A workbook an Excel document that stores data contains one or more pages called a worksheet. A worksheet or spreadsheet is stored in a workbook, and

More information

Linear programming II João Carlos Lourenço

Linear programming II João Carlos Lourenço Decision Support Models Linear programming II João Carlos Lourenço joao.lourenco@ist.utl.pt Academic year 2012/2013 Readings: Hillier, F.S., Lieberman, G.J., 2010. Introduction to Operations Research,

More information

THE 2002 U.S. CENSUS OF AGRICULTURE DATA PROCESSING SYSTEM

THE 2002 U.S. CENSUS OF AGRICULTURE DATA PROCESSING SYSTEM Abstract THE 2002 U.S. CENSUS OF AGRICULTURE DATA PROCESSING SYSTEM Kara Perritt and Chadd Crouse National Agricultural Statistics Service In 1997 responsibility for the census of agriculture was transferred

More information

SAS Online Training: Course contents: Agenda:

SAS Online Training: Course contents: Agenda: SAS Online Training: Course contents: Agenda: (1) Base SAS (6) Clinical SAS Online Training with Real time Projects (2) Advance SAS (7) Financial SAS Training Real time Projects (3) SQL (8) CV preparation

More information

SD10 A SAS MACRO FOR PERFORMING BACKWARD SELECTION IN PROC SURVEYREG

SD10 A SAS MACRO FOR PERFORMING BACKWARD SELECTION IN PROC SURVEYREG Paper SD10 A SAS MACRO FOR PERFORMING BACKWARD SELECTION IN PROC SURVEYREG Qixuan Chen, University of Michigan, Ann Arbor, MI Brenda Gillespie, University of Michigan, Ann Arbor, MI ABSTRACT This paper

More information

Chapter 4 Section 2 Operations on Decimals

Chapter 4 Section 2 Operations on Decimals Chapter 4 Section 2 Operations on Decimals Addition and subtraction of decimals To add decimals, write the numbers so that the decimal points are on a vertical line. Add as you would with whole numbers.

More information

SAS CURRICULUM. BASE SAS Introduction

SAS CURRICULUM. BASE SAS Introduction SAS CURRICULUM BASE SAS Introduction Data Warehousing Concepts What is a Data Warehouse? What is a Data Mart? What is the difference between Relational Databases and the Data in Data Warehouse (OLTP versus

More information

Solutions for Operations Research Final Exam

Solutions for Operations Research Final Exam Solutions for Operations Research Final Exam. (a) The buffer stock is B = i a i = a + a + a + a + a + a 6 + a 7 = + + + + + + =. And the transportation tableau corresponding to the transshipment problem

More information

A Format to Make the _TYPE_ Field of PROC MEANS Easier to Interpret Matt Pettis, Thomson West, Eagan, MN

A Format to Make the _TYPE_ Field of PROC MEANS Easier to Interpret Matt Pettis, Thomson West, Eagan, MN Paper 045-29 A Format to Make the _TYPE_ Field of PROC MEANS Easier to Interpret Matt Pettis, Thomson West, Eagan, MN ABSTRACT: PROC MEANS analyzes datasets according to the variables listed in its Class

More information

UNIT 6 OPERATIONS WITH DECIMALS

UNIT 6 OPERATIONS WITH DECIMALS UNIT 6 OPERATIONS WITH DECIMALS INTRODUCTION In this Unit, we will use our understanding of operations, decimals, and place value to perform operations with decimals. The table below shows the learning

More information

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture 16 Cutting Plane Algorithm We shall continue the discussion on integer programming,

More information

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016 Simulation Lecture O Optimization: Linear Programming Saeed Bastani April 06 Outline of the course Linear Programming ( lecture) Integer Programming ( lecture) Heuristics and Metaheursitics (3 lectures)

More information

Chapter 15 Introduction to Linear Programming

Chapter 15 Introduction to Linear Programming Chapter 15 Introduction to Linear Programming An Introduction to Optimization Spring, 2015 Wei-Ta Chu 1 Brief History of Linear Programming The goal of linear programming is to determine the values of

More information

A Comparative study on Algorithms for Shortest-Route Problem and Some Extensions

A Comparative study on Algorithms for Shortest-Route Problem and Some Extensions International Journal of Basic & Applied Sciences IJBAS-IJENS Vol: No: 0 A Comparative study on Algorithms for Shortest-Route Problem and Some Extensions Sohana Jahan, Md. Sazib Hasan Abstract-- The shortest-route

More information

A User Manual for the Multivariate MLE Tool. Before running the main multivariate program saved in the SAS file Part2-Main.sas,

A User Manual for the Multivariate MLE Tool. Before running the main multivariate program saved in the SAS file Part2-Main.sas, A User Manual for the Multivariate MLE Tool Before running the main multivariate program saved in the SAS file Part-Main.sas, the user must first compile the macros defined in the SAS file Part-Macros.sas

More information

Excel 2010 Functions. 4/18/2011 Archdiocese of Chicago Mike Riley

Excel 2010 Functions. 4/18/2011 Archdiocese of Chicago Mike Riley Excel 2010 Functions 4/18/2011 Archdiocese of Chicago Mike Riley i VIDEO TUTORIALS AVAILABLE Almost 100,000 video tutorials are available from VTC. The available tutorials include Windows 7, GroupWise

More information

CHAPTER 1B: : Foundations for Algebra

CHAPTER 1B: : Foundations for Algebra CHAPTER B: : Foundations for Algebra 0-: Rounding and Estimating Objective: Round numbers. Rounding: To round to a given place value, do the following Rounding Numbers Round each number to the given place

More information

Chapter 2: Number Systems

Chapter 2: Number Systems Chapter 2: Number Systems Logic circuits are used to generate and transmit 1s and 0s to compute and convey information. This two-valued number system is called binary. As presented earlier, there are many

More information

Introduction. Linear because it requires linear functions. Programming as synonymous of planning.

Introduction. Linear because it requires linear functions. Programming as synonymous of planning. LINEAR PROGRAMMING Introduction Development of linear programming was among the most important scientific advances of mid-20th cent. Most common type of applications: allocate limited resources to competing

More information

1. What do you get as the integer and noninteger parts if you factor this as we did with our cutting planes:

1. What do you get as the integer and noninteger parts if you factor this as we did with our cutting planes: 1. What do you get as the integer and noninteger parts if you factor this as we did with our cutting planes: x 1 = -8.75-3.1 x 2 + 4.2 x 3 + 7 x 5-8 x 6 2. What constraint is added? 3. What do you need

More information

Base and Advance SAS

Base and Advance SAS Base and Advance SAS BASE SAS INTRODUCTION An Overview of the SAS System SAS Tasks Output produced by the SAS System SAS Tools (SAS Program - Data step and Proc step) A sample SAS program Exploring SAS

More information

Interpretation of Dual Model for Piecewise Linear. Programming Problem Robert Hlavatý

Interpretation of Dual Model for Piecewise Linear. Programming Problem Robert Hlavatý Interpretation of Dual Model for Piecewise Linear 1 Introduction Programming Problem Robert Hlavatý Abstract. Piecewise linear programming models are suitable tools for solving situations of non-linear

More information

Posters. Paper

Posters. Paper Paper 212-26 Using SAS/AF to Create a SAS Program File Explorer Rob Nelson, Centers for Disease Control and Prevention, Atlanta, GA Janet Royalty, Centers for Disease Control and Prevention, Atlanta, GA

More information

George B. Dantzig Mukund N. Thapa. Linear Programming. 1: Introduction. With 87 Illustrations. Springer

George B. Dantzig Mukund N. Thapa. Linear Programming. 1: Introduction. With 87 Illustrations. Springer George B. Dantzig Mukund N. Thapa Linear Programming 1: Introduction With 87 Illustrations Springer Contents FOREWORD PREFACE DEFINITION OF SYMBOLS xxi xxxiii xxxvii 1 THE LINEAR PROGRAMMING PROBLEM 1

More information

The SAS interface is shown in the following screen shot:

The SAS interface is shown in the following screen shot: The SAS interface is shown in the following screen shot: There are several items of importance shown in the screen shot First there are the usual main menu items, such as File, Edit, etc I seldom use anything

More information

Using Taylor s Linearization Technique in StEPS to Estimate Variances for Non-Linear Survey Estimators 1

Using Taylor s Linearization Technique in StEPS to Estimate Variances for Non-Linear Survey Estimators 1 Using Taylor s Linearization Technique in StEPS to Estimate Variances for Non-Linear Survey Estimators Roger L. Goodwin, U.S. Bureau of the Census, Washington, DC 033 Katherine J. Thompson, U.S. Bureau

More information

Alternate Appendix A: Using the TI-92 Calculator

Alternate Appendix A: Using the TI-92 Calculator Alternate Appendix A: Using the TI-92 Calculator This document summarizes TI-92 calculation and programming operations as they relate to the text, Inside Your Calculator. Even those who do not read the

More information

STAT:5400 Computing in Statistics

STAT:5400 Computing in Statistics STAT:5400 Computing in Statistics Introduction to SAS Lecture 18 Oct 12, 2015 Kate Cowles 374 SH, 335-0727 kate-cowles@uiowaedu SAS SAS is the statistical software package most commonly used in business,

More information

Decomposing the R-squared of a Regression Using the Shapley Value in SAS

Decomposing the R-squared of a Regression Using the Shapley Value in SAS SESUG Paper SD-61-2017 Decomposing the R-squared of a Regression Using the Shapley Value in SAS Charles D. Coleman, US Census Bureau DISCLAIMER Any views expressed are those of the author and not necessarily

More information

Generalized Network Flow Programming

Generalized Network Flow Programming Appendix C Page Generalized Network Flow Programming This chapter adapts the bounded variable primal simplex method to the generalized minimum cost flow problem. Generalized networks are far more useful

More information

Building Sequential Programs for a Routine Task with Five SAS Techniques

Building Sequential Programs for a Routine Task with Five SAS Techniques ABSTRACT SESUG Paper BB-139-2017 Building Sequential Programs for a Routine Task with Five SAS Techniques Gongmei Yu and Paul LaBrec, 3M Health Information Systems. When a task needs to be implemented

More information

Tales from the Help Desk 6: Solutions to Common SAS Tasks

Tales from the Help Desk 6: Solutions to Common SAS Tasks SESUG 2015 ABSTRACT Paper BB-72 Tales from the Help Desk 6: Solutions to Common SAS Tasks Bruce Gilsen, Federal Reserve Board, Washington, DC In 30 years as a SAS consultant at the Federal Reserve Board,

More information

Microsoft Excel Chapter 2. Formulas, Functions, and Formatting

Microsoft Excel Chapter 2. Formulas, Functions, and Formatting Microsoft Excel 2010 Chapter 2 Formulas, Functions, and Formatting Objectives Enter formulas using the keyboard Enter formulas using Point mode Apply the AVERAGE, MAX, and MIN functions Verify a formula

More information

Alignment of Destination Math Courseware with GRADE 4 Benchmarks (B1-B3)

Alignment of Destination Math Courseware with GRADE 4 Benchmarks (B1-B3) NUMBER SENSE SAM04101- B1 Read write whole numbers in the millions (1.1) 1.1 Read write whole numbers in the millions. I Number Sense Unit: Large Small Whole to One Million Ordering Rounding Whole SAM04102a-B1

More information

FSEDIT Procedure Windows

FSEDIT Procedure Windows 25 CHAPTER 4 FSEDIT Procedure Windows Overview 26 Viewing and Editing Observations 26 How the Control Level Affects Editing 27 Scrolling 28 Adding Observations 28 Entering and Editing Variable Values 28

More information

SAS 101. Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23. By Tasha Chapman, Oregon Health Authority

SAS 101. Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23. By Tasha Chapman, Oregon Health Authority SAS 101 Based on Learning SAS by Example: A Programmer s Guide Chapter 21, 22, & 23 By Tasha Chapman, Oregon Health Authority Topics covered All the leftovers! Infile options Missover LRECL=/Pad/Truncover

More information

Linear Programming with Bounds

Linear Programming with Bounds Chapter 481 Linear Programming with Bounds Introduction Linear programming maximizes (or minimizes) a linear objective function subject to one or more constraints. The technique finds broad use in operations

More information

<:ards,. The SAS" Macro: An Aid to the User 3' pfbl:me~~&j1tbc(lpt; 2435 procopt; RESOLVED RESOLVED

<:ards,. The SAS Macro: An Aid to the User 3' pfbl:me~~&j1tbc(lpt; 2435 procopt; RESOLVED RESOLVED The SAS" Macro: An Aid to the User Robert E. Johnson Department of Mathematical Sciences, Virginia Commonwealth University, Richmond, VA23284-2014 This paper is presented as a beginning tutorial on the

More information

Christopher Louden University of Texas Health Science Center at San Antonio

Christopher Louden University of Texas Health Science Center at San Antonio Christopher Louden University of Texas Health Science Center at San Antonio Overview of Macro Language Report Writing The REPORT procedure The Output Delivery System (ODS) Macro Examples Utility Macros

More information

SAMPLE. iprimary Maths objectives

SAMPLE. iprimary Maths objectives Mathematics Scheme of Work Teaching week Week 1 Week 2 iprimary Maths objectives N6.1B Read, write and say aloud numbers written in figures up to and including 10 000 000. write numbers in N6.1F Compare

More information

Application of Bounded Variable Simplex Algorithm in Solving Maximal Flow Model

Application of Bounded Variable Simplex Algorithm in Solving Maximal Flow Model Dhaka Univ. J. Sci. (): 9-, 3 (January) Application of Bounded Variable Simplex Algorithm in Solving Maximal Flow Model Sohana Jahan, Marzia Yesmin and Fatima Tuj Jahra Department of Mathematics,University

More information

Electricity Forecasting Full Circle

Electricity Forecasting Full Circle Electricity Forecasting Full Circle o Database Creation o Libname Functionality with Excel o VBA Interfacing Allows analysts to develop procedural prototypes By: Kyle Carmichael Disclaimer The entire presentation

More information

Identifying Layout Classes for Mathematical Symbols Using Layout Context

Identifying Layout Classes for Mathematical Symbols Using Layout Context Rochester Institute of Technology RIT Scholar Works Articles 2009 Identifying Layout Classes for Mathematical Symbols Using Layout Context Ling Ouyang Rochester Institute of Technology Richard Zanibbi

More information

Data Quality Review for Missing Values and Outliers

Data Quality Review for Missing Values and Outliers Paper number: PH03 Data Quality Review for Missing Values and Outliers Ying Guo, i3, Indianapolis, IN Bradford J. Danner, i3, Lincoln, NE ABSTRACT Before performing any analysis on a dataset, it is often

More information

56:272 Integer Programming & Network Flows Final Exam -- December 16, 1997

56:272 Integer Programming & Network Flows Final Exam -- December 16, 1997 56:272 Integer Programming & Network Flows Final Exam -- December 16, 1997 Answer #1 and any five of the remaining six problems! possible score 1. Multiple Choice 25 2. Traveling Salesman Problem 15 3.

More information

Grade 5 Mathematics MCA-III Item Sampler Teacher Guide

Grade 5 Mathematics MCA-III Item Sampler Teacher Guide Grade 5 Mathematics MCA-III Item Sampler Teacher Guide Grade 5 Mathematics MCA Item Sampler Teacher Guide Overview of Item Samplers Item samplers are one type of student resource provided to help students

More information

DATA Step Debugger APPENDIX 3

DATA Step Debugger APPENDIX 3 1193 APPENDIX 3 DATA Step Debugger Introduction 1194 Definition: What is Debugging? 1194 Definition: The DATA Step Debugger 1194 Basic Usage 1195 How a Debugger Session Works 1195 Using the Windows 1195

More information

Applications Development

Applications Development AD003 User Implementation and Revision of Business Rules Without Hard Coding: Macro-Generated SAS Code By Michael Krumenaker, Sr. Project Manager, Palisades Research, Inc. and Jit Bhattacharya, Manager

More information

TTUSD Math Essential Standards Matrix 4/16/10 NUMBER SENSE

TTUSD Math Essential Standards Matrix 4/16/10 NUMBER SENSE TTUSD Math Essential Standards Matrix 4/16/10 NUMBER SENSE 3 rd 4 th 5 th 6th 1.1 Read and write whole numbers in the millions 1.2 Order and compare whole numbers and decimals to two decimal places. 1.1

More information

Hot-deck Imputation with SAS Arrays and Macros for Large Surveys

Hot-deck Imputation with SAS Arrays and Macros for Large Surveys Hot-deck Imation with SAS Arrays and Macros for Large Surveys John Stiller and Donald R. Dalzell Continuous Measurement Office, Demographic Statistical Methods Division, U.S. Census Bureau ABSTRACT SAS

More information

Content Design Structure, Scope & Sequence of Mathematics Content Addressed Within Numbers Up! Volcanic Panic

Content Design Structure, Scope & Sequence of Mathematics Content Addressed Within Numbers Up! Volcanic Panic 4-6 1-2 Number Range 1-5 Compares equivalent and non-equivalent sets by matching there are more bees than hives Uses ordinal language first to fifth 3-4 Number Range 1-10 Compares equivalent and non-equivalent

More information

Chapter 6: Modifying and Combining Data Sets

Chapter 6: Modifying and Combining Data Sets Chapter 6: Modifying and Combining Data Sets The SET statement is a powerful statement in the DATA step. Its main use is to read in a previously created SAS data set which can be modified and saved as

More information

Copyright 2007 Pearson Addison-Wesley. All rights reserved. A. Levitin Introduction to the Design & Analysis of Algorithms, 2 nd ed., Ch.

Copyright 2007 Pearson Addison-Wesley. All rights reserved. A. Levitin Introduction to the Design & Analysis of Algorithms, 2 nd ed., Ch. Iterative Improvement Algorithm design technique for solving optimization problems Start with a feasible solution Repeat the following step until no improvement can be found: change the current feasible

More information

To be able to count up and down in tenths

To be able to count up and down in tenths Progression Grid: Year Year 2 Year 3 Year Year Year 6 Counting in Fractional steps To be able to count in fractions up to 0, starting from any number and using the/2 and 2/ equivalence on the number line

More information

Untangling and Reformatting NT PerfMon Data to Load a UNIX SAS Database With a Software-Intelligent Data-Adaptive Application

Untangling and Reformatting NT PerfMon Data to Load a UNIX SAS Database With a Software-Intelligent Data-Adaptive Application Paper 297 Untangling and Reformatting NT PerfMon Data to Load a UNIX SAS Database With a Software-Intelligent Data-Adaptive Application Heather McDowell, Wisconsin Electric Power Co., Milwaukee, WI LeRoy

More information

An introduction to pplex and the Simplex Method

An introduction to pplex and the Simplex Method An introduction to pplex and the Simplex Method Joanna Bauer Marc Bezem Andreas Halle November 16, 2012 Abstract Linear programs occur frequently in various important disciplines, such as economics, management,

More information

Module 10. Network Simplex Method:

Module 10. Network Simplex Method: Module 10 1 Network Simplex Method: In this lecture we shall study a specialized simplex method specifically designed to solve network structured linear programming problems. This specialized algorithm

More information

Automating Preliminary Data Cleaning in SAS

Automating Preliminary Data Cleaning in SAS Paper PO63 Automating Preliminary Data Cleaning in SAS Alec Zhixiao Lin, Loan Depot, Foothill Ranch, CA ABSTRACT Preliminary data cleaning or scrubbing tries to delete the following types of variables

More information

Paper SDA-11. Logistic regression will be used for estimation of net error for the 2010 Census as outlined in Griffin (2005).

Paper SDA-11. Logistic regression will be used for estimation of net error for the 2010 Census as outlined in Griffin (2005). Paper SDA-11 Developing a Model for Person Estimation in Puerto Rico for the 2010 Census Coverage Measurement Program Colt S. Viehdorfer, U.S. Census Bureau, Washington, DC This report is released to inform

More information

Data Should Not be a Four Letter Word Microsoft Excel QUICK TOUR

Data Should Not be a Four Letter Word Microsoft Excel QUICK TOUR Toolbar Tour AutoSum + more functions Chart Wizard Currency, Percent, Comma Style Increase-Decrease Decimal Name Box Chart Wizard QUICK TOUR Name Box AutoSum Numeric Style Chart Wizard Formula Bar Active

More information

The %let is a Macro command, which sets a macro variable to the value specified.

The %let is a Macro command, which sets a macro variable to the value specified. Paper 220-26 Structuring Base SAS for Easy Maintenance Gary E. Schlegelmilch, U.S. Dept. of Commerce, Bureau of the Census, Suitland MD ABSTRACT Computer programs, by their very nature, are built to be

More information

SHAPE, SPACE & MEASURE

SHAPE, SPACE & MEASURE STAGE 1 Know the place value headings up to millions Recall primes to 19 Know the first 12 square numbers Know the Roman numerals I, V, X, L, C, D, M Know the % symbol Know percentage and decimal equivalents

More information

Chapter 4 Linear Programming

Chapter 4 Linear Programming Chapter Objectives Check off these skills when you feel that you have mastered them. From its associated chart, write the constraints of a linear programming problem as linear inequalities. List two implied

More information

Example 2: Simplify each of the following. Round your answer to the nearest hundredth. a

Example 2: Simplify each of the following. Round your answer to the nearest hundredth. a Section 5.4 Division with Decimals 1. Dividing by a Whole Number: To divide a decimal number by a whole number Divide as you would if the decimal point was not there. If the decimal number has digits after

More information

Cecil Jones Academy Mathematics Fundamentals

Cecil Jones Academy Mathematics Fundamentals Fundamentals Year 7 Knowledge Unit 1 Unit 2 Understand and use decimals with up to three decimal places Work with numbers up to ten million Explore the use of negative numbers Develop understanding of

More information

Chapter 2: Getting Data Into SAS

Chapter 2: Getting Data Into SAS Chapter 2: Getting Data Into SAS Data stored in many different forms/formats. Four categories of ways to read in data. 1. Entering data directly through keyboard 2. Creating SAS data sets from raw data

More information

Loading Data. Introduction. Understanding the Volume Grid CHAPTER 2

Loading Data. Introduction. Understanding the Volume Grid CHAPTER 2 19 CHAPTER 2 Loading Data Introduction 19 Understanding the Volume Grid 19 Loading Data Representing a Complete Grid 20 Loading Data Representing an Incomplete Grid 21 Loading Sparse Data 23 Understanding

More information

WHOLE NUMBER AND DECIMAL OPERATIONS

WHOLE NUMBER AND DECIMAL OPERATIONS WHOLE NUMBER AND DECIMAL OPERATIONS Whole Number Place Value : 5,854,902 = Ten thousands thousands millions Hundred thousands Ten thousands Adding & Subtracting Decimals : Line up the decimals vertically.

More information

Fraction to Percents Change the fraction to a decimal (see above) and then change the decimal to a percent (see above).

Fraction to Percents Change the fraction to a decimal (see above) and then change the decimal to a percent (see above). PEMDAS This is an acronym for the order of operations. Order of operations is the order in which you complete problems with more than one operation. o P parenthesis o E exponents o M multiplication OR

More information

Number and Operation Standard #1. Divide multi- digit numbers; solve real- world and mathematical problems using arithmetic.

Number and Operation Standard #1. Divide multi- digit numbers; solve real- world and mathematical problems using arithmetic. Number and Operation Standard #1 MN Math Standards Vertical Alignment for Grade 5 Demonstrate mastery of multiplication and division basic facts; multiply multi- digit numbers; solve real- world and mathematical

More information

Need more help with decimal subtraction? See T23. Note: The inequality sign is reversed only when multiplying or dividing by a negative number.

Need more help with decimal subtraction? See T23. Note: The inequality sign is reversed only when multiplying or dividing by a negative number. . (D) According to the histogram, junior boys sleep an average of.5 hours on a daily basis and junior girls sleep an average of. hours. To find how many more hours the average junior boy sleeps than the

More information

Program Validation: Logging the Log

Program Validation: Logging the Log Program Validation: Logging the Log Adel Fahmy, Symbiance Inc., Princeton, NJ ABSTRACT Program Validation includes checking both program Log and Logic. The program Log should be clear of any system Error/Warning

More information

ABSTRACT INTRODUCTION MACRO. Paper RF

ABSTRACT INTRODUCTION MACRO. Paper RF Paper RF-08-2014 Burst Reporting With the Help of PROC SQL Dan Sturgeon, Priority Health, Grand Rapids, Michigan Erica Goodrich, Priority Health, Grand Rapids, Michigan ABSTRACT Many SAS programmers need

More information

Using an ICPSR set-up file to create a SAS dataset

Using an ICPSR set-up file to create a SAS dataset Using an ICPSR set-up file to create a SAS dataset Name library and raw data files. From the Start menu, launch SAS, and in the Editor program, write the codes to create and name a folder in the SAS permanent

More information

Gateway Regional School District VERTICAL ALIGNMENT OF MATHEMATICS STANDARDS Grades 3-6

Gateway Regional School District VERTICAL ALIGNMENT OF MATHEMATICS STANDARDS Grades 3-6 NUMBER SENSE & OPERATIONS 3.N.1 Exhibit an understanding of the values of the digits in the base ten number system by reading, modeling, writing, comparing, and ordering whole numbers through 9,999. Our

More information

YEAR 5. Carbeile Junior School Mathematics Planning Framework. Sequence 1. Sequence 2. Sequence 3. Sequence 4

YEAR 5. Carbeile Junior School Mathematics Planning Framework. Sequence 1. Sequence 2. Sequence 3. Sequence 4 YEAR 5 1 count forwards or backwards in steps of powers of 10 for any given number up to 1 000 000 solve number problems and practical problems that involve all of the above round decimals with two to

More information

Statistics, Data Analysis & Econometrics

Statistics, Data Analysis & Econometrics ST009 PROC MI as the Basis for a Macro for the Study of Patterns of Missing Data Carl E. Pierchala, National Highway Traffic Safety Administration, Washington ABSTRACT The study of missing data patterns

More information

CREATING A SUMMARY TABLE OF NORMALIZED (Z) SCORES

CREATING A SUMMARY TABLE OF NORMALIZED (Z) SCORES CREATING A SUMMARY TABLE OF NORMALIZED (Z) SCORES Walter W. OWen The Biostatistics Center The George Washington University ABSTRACT Data from the behavioral sciences are often analyzed by normalizing the

More information

The Rational Number System: Investigate Rational Numbers: Play Answer Sheet

The Rational Number System: Investigate Rational Numbers: Play Answer Sheet Name _ Date _ The Rational Number System: Investigate Rational Numbers: Play Answer Sheet Selected Response Items Indicate letter or letters only.. 2.... 6. 7. Fill-in-the-Blank Items 8. 9. 0.. 2.. Discovery

More information

Learning Log Title: CHAPTER 3: PORTIONS AND INTEGERS. Date: Lesson: Chapter 3: Portions and Integers

Learning Log Title: CHAPTER 3: PORTIONS AND INTEGERS. Date: Lesson: Chapter 3: Portions and Integers Chapter 3: Portions and Integers CHAPTER 3: PORTIONS AND INTEGERS Date: Lesson: Learning Log Title: Date: Lesson: Learning Log Title: Chapter 3: Portions and Integers Date: Lesson: Learning Log Title:

More information

Introduction to Mathematical Programming IE406. Lecture 16. Dr. Ted Ralphs

Introduction to Mathematical Programming IE406. Lecture 16. Dr. Ted Ralphs Introduction to Mathematical Programming IE406 Lecture 16 Dr. Ted Ralphs IE406 Lecture 16 1 Reading for This Lecture Bertsimas 7.1-7.3 IE406 Lecture 16 2 Network Flow Problems Networks are used to model

More information

56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998

56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998 56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998 Part A: Answer any four of the five problems. (15 points each) 1. Transportation problem 2. Integer LP Model Formulation

More information

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS TO SAS NEED FOR SAS WHO USES SAS WHAT IS SAS? OVERVIEW OF BASE SAS SOFTWARE DATA MANAGEMENT FACILITY STRUCTURE OF SAS DATASET SAS PROGRAM PROGRAMMING LANGUAGE ELEMENTS OF THE SAS LANGUAGE RULES FOR SAS

More information