|
STATA data file |
Top Up Down
A A |
STATA datasets, with their data correctly formatted, can be specified directly to Facets.
Data = STATAdata.dta
Dvalues= is useful for constant values in the data
Facets analyzes integer data in the range 0-255.
Follow the format of STATAdata.dta:
This data set has three facets: States, Years, Items
The two Items are "pop", and "area".
There are four STATA variables: state, year, pop, area.
The data are dichotomous: 0, 1
Here is STATAspecs.txt, the Facets specification file which builds the list of element labels from STATAdata.dta:
Title = "Facets analysis with Stata file: Build list of element labels" Facets = 3 ; State, Year, Item Models = ?, ?, ?, D Positive = 1 Noncentered = 1 Labels=Build 1, State * 2, Year * 3, Item 1, Pop 2, Area * Dvalues=* 3, 1-2 ; the data reference for facet 3 is always items 1 and 2 * Data = STATAdata.dta ; Example dataset from www.stata-press.com |
After a Facets analysis, the output file STATAspecs.out.txt contains:
Table 2. Data Summary Report. ..... This list is generated by Labels=Build. .... Labels= 1, State, ; facet 1 1 = CT 2 = MA 3 = ME 4 = NH 5 = RI 6 = VT * 2, Year, ; facet 2 1970 = 1980 = 1990 = 2000 = * |
If this fails to produce the correct list of labels, check that Facets has input the STATA file correctly:
Click on: "Edit" menu, "Edit Data =".
The contents of the STATA file are displayed in tab-separated format:

Copy-and-paste the Labels= into STATAspecs.txt and save it with a new name: STATAgood.txt
Title = "Facets analysis with Stata file: element labels added" Facets = 3 ; State, Year, Item Models = ?, ?, ?, D Positive = 1 Noncentered = 1 Labels= 1, State, ; facet 1 1 = CT 2 = MA 3 = ME 4 = NH 5 = RI 6 = VT * 2, Year, ; facet 2 1970 = 1980 = 1990 = 2000 = * 3, Item 1, Pop 2, Area * Dvalues=* 3, 1-2 ; the data reference for facet 3 is always items 1 and 2 * Data = STATAdata.dta ; Example dataset from www.stata-press.com |
Analysis of STATAgood.txt is successful:
"Facets analysis with Stata file: element labels added" Table 6.0 All Facet Vertical "Rulers".
Vertical = (1A,2A,3A,S) Yardstick (columns lines low high extreme)= 0,4,-2,2,End +----------------------------------------+ |Measr|+State |-Year |-Item | |-----+--------+------------+------------| | 2 + NH + + | | | | | | | | | | | | | VT | | | | 1 + + + | | | | | | | | CT | 2000 | | | | | | | * 0 * * 1980 * Area Pop * | | | 1970 1990 | | | | MA ME | | | | | | | | | -1 + + + | | | | | | | | | | | | | | | | | -2 + RI + + | |-----+--------+------------+------------| |Measr|+State |-Year |-Item | +----------------------------------------+ |
Help for Facets Rasch Measurement Software: www.winsteps.com.