Model Migration Schedules

These are the instructions for running the MATLAB program for estimating the 7 parameter model migration schedule for any number of profiles at one time.

The name of the MATLAB program file for estimating the 7-parameter model schedule is “Model Schedule_7_param_fit.m”.

The example input file has 51 age profiles of outmigration data stored in Excel format. TESTDATA.xls is the file name and it contains the age profiles of outmigration (Si(x)’s) for each of the 50 states and the District of Columbia as generated from the Census 2000 PUMS 1% Sample and described in Chapter 4 Section 4.3.

To run the example, load the MATLAB program file into the MATLAB Editor window and make sure the path is correct and points to the folder where the data file is stored. Run the program. The resulting beta variable is the matrix that stores the parameter estimates. The Y-pred variable is the matrix that stores the estimated model schedule function values. To open either of these matrices into the Variable Editor window just double click on the variable in the Workspace window. Then you can copy and paste the data from Variable Editor window into Excel for further analysis or processing. In addition, the program automatically saves text files that contain the matrix of parameters (p7arams.txt) and the matrix of predicted function values (p7pred.txt) and finally the R2 values contrasting the predicted and observed function values (R7params.txt).

Download the MATLAB program file:
Model Schedule_7_param_fit.m
Download the example data:
TESTDATA.xls