RATS 10.1
RATS 10.1

DTA is the native format for Stata™ data files. It’s a Labeled Table format available for series input (only), on all RATS versions.

RATS Instructions

data(format=dta)

 read series from Stata into memory

store(convert=dta)

copy series from Stata into RATS format

Interface Operations

Data Wizard

You can read series using Data/Graphics—Data (Other Formats).


 

Series Window and RATS Data File Window

You can import series using File—Import... or the  toolbar button.

Details

Data in a DTA file are stored as named series which will be read or imported using those names. You can read all the series by leaving the series list blank on either DATA or STORE, or you can request specific series by listing just the ones you want. If you import directly into a data list, you will get all series.
 

RATS will not recognize any dates on the file.

Example

open data pennxrate.dta

calendar(panelobs=34,a) 1970

data(format=dta) 1//1970:01 151//2003:01 year xrate ppp $

   id capt realxrate lnrxrate oecd g7

 

reads 24 years of panel data for 151 countries. 

 


Copyright © 2025 Thomas A. Doan