help stata2pvdalso see: pathview

Converting Stata data to a file for PathView-Interactive

stata2pvd -- Sort, select & save data for PathView Interactive

Syntax

stata2pvd
[varlist]
[if] [in]
using
filename
, id(id_var)
outlabels(outcome_labels)
itemlabels(item_labels)
[optional options]

If no variables are listed, all will be used. if and in can
be used to select cases to be written.

id(id_variable) adds id_variable to the output as
an ID variable.

outlabels(string) names the outcome categories.

itemlabels(string) provides labels for the items/sequencess.

sort(string|_all) indicates which variables to include when
sorting the data before saving (details below). _all to sort all variables;
a sequence of y's and n's to specify which variables (e.g., yyynyn).

title(string) adds a header to the pvd file.

replace overwrite existing filename.pvd.

nomiss deletes all observations with missing data

stable uses the stable option of sort.

test runs program in test mode for debugging.

If filename is specified without a suffix, .pvd is assumed.
If your filename contains embedded spaces, remember to enclose
it in double quotes.

Description

stata2pvd writes data into a file in comma-separated ASCII format for
use by the data visualization program PathView.
stata2pvd allows you optionally to select variables,
specify an id variable,
delete missing values, and sort on selected variables.

Details on Options

sort(string|_all)} indicates which variables to include when
sorting the data before saving. If you specify sort(_all), the data
will be sorted using all varaibles in varlist. Otherwise,
string is a sequence of y's and n's (e.g., sort(yyny)
corresponding to the sequence of variables in varlist.
A y indicates a variable is to be included when sorting; a n
indicates is is not included. For examples, sort(yyny) would use
the first, second and fourth variables from varlist when
sorting the data before it is saved.

Examples

stata2pvd v4-v8 using testfile, id(v2) sort(yyyn) nomiss replace

stata2pvd b_mpg b_weight using pvout, replace

Author

J. Scott Long

Indiana University

Departments of Sociology & Statistics

jslong{@}indiana.edu

http://www.indiana.edu/~jslong/

Also see

See pathview for information about the PathView program.