STATA data file (version 13 and earlier) |
STATA have changed the internal format of their .dta files in STATA version 14.
To read a STATA 14 or later file with Facets, first in STATA,
. saveold filename13, version(13)
Then Data=filename13.dta can be processed by Facets.
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 (64-bit) Rasch Measurement and Rasch Analysis Software: www.winsteps.com Author: John Michael Linacre.
Facets Rasch measurement software.
Buy for $149. & site licenses.
Freeware student/evaluation Minifac download Winsteps Rasch measurement software. Buy for $149. & site licenses. Freeware student/evaluation Ministep download |
---|
Forum: | Rasch Measurement Forum to discuss any Rasch-related topic |
---|
Questions, Suggestions? Want to update Winsteps or Facets? Please email Mike Linacre, author of Winsteps mike@winsteps.com |
---|
State-of-the-art : single-user and site licenses : free student/evaluation versions : download immediately : instructional PDFs : user forum : assistance by email : bugs fixed fast : free update eligibility : backwards compatible : money back if not satisfied Rasch, Winsteps, Facets online Tutorials |
---|
Our current URL is www.winsteps.com
Winsteps® is a registered trademark