📄 stata4.key
字号:
.a W. Gould
.k prog-rams prog-ramming sort order
.x
2/00 Why does my do-file or ado-file produce different
results every time I run it?
FAQS/lang/sort.html
.e FAQ
.c faq
.t Official ado directory
.k prog-rams prog-ramming official dir-ectory folder-s path-s ado-files
.k sysdir dir-ectories
.x
1/00 Where is the official ado directory?
FAQS/lang/ado.html
.e FAQ
.c faq
.t Personal ado directory
.k prog-rams prog-ramming personal dir-ectory folder-s path-s ado-files
.k sysdir dir-ectories
.x
1/00 Where is my personal ado directory?
FAQS/lang/personal.html
.e FAQ
.c faq
.t The use of macros with the power operator
.a W. Gould
.k prog-rams prog-ramming oper-ators power-s macro-s local-ly
.x
12/99 I coded `a'^^2 and got the wrong sign. Why?
FAQS/lang/macpow.html
.e FAQ
.c faq
.t Adding extra observations when coding an ado-file
.a W. Gould
.k prog-rams prog-ramming expand data obs-ervations ado-files file-s command-s
.k set
.x
12/99 How do I add an observation when coding an ado-file?
FAQS/lang/addobs.html
.e FAQ
.c faq
.t Debugging your program
.a A. Riley
.k prog-rams prog-ramming debug-ging trace set bug-s lint debug-ger tracing
.x
5/96 How do I debug my program?
FAQS/lang/debug.html
.e FAQ
.c faq
.t The correct delimiter for local macros
.a W. Gould
.k prog-rams prog-ramming delimit-er local macro-s ado-files file-s do-files
.x
2/96 Why do I get errors with my local macros?
FAQS/lang/quote.html
.e FAQ
.c faq
.t Passing arguments to do-files
.a W. Gould
.k prog-rams prog-ramming do-files file-s arg-uments pass-ing
.x
2/96 How can I pass arguments to my do-files?
FAQS/lang/args.html
.e FAQ
.c faq
.t Copying tables from Stata to another application
.a K. Crow
.k tabl-es expor-ting copy-ing paste pasting outreg data-sets set-s
.k data-management
.x
12/04 How do I export tables from Stata?
FAQS/data/copytable.html
.e FAQ
.c faq
.t Neighbors on a rectangular grid
.a Nicholas J. Cox
.k rect-angular grid-s point-s area-s coor-dinates by-sort sort command-s
.k data-sets set-s manage-ment egen
.x
10/04 How do I identify neighbors of points or areas on
a rectangular grid in Stata?
FAQS/data/grid.html
.e FAQ
.c faq
.t Counting distinct strings across a set of variables
.a N. J. Cox
.k data-sets set-s manage-ment distinct str-ings var-iables
.k count-s reshape for-each each for-values value-s
.k obs-ervations loop-s loop-ing repeat-ing
.x
7/04 How do I count the number of distinct strings
across a set of variables?
FAQS/data/distinctstrings.html
.e FAQ
.c faq
.t Writing to Excel via ODBC
.a K. S. Turner
.k insheet data-sets set-s manage-ment outsheet
.k spread-sheets database base
.k odbc load-ing input-ting input-ing record-s
.k read format-s import-ing expor-ting transfe-rring open
.k sql dbase ms access excel
.x
4/04 Can I use ODBC to write to an existing Excel file?
FAQS/data/odbc_excel.html
.e FAQ
.c faq
.t Leap year indicators
.a N. J. Cox
.k data-sets set-s manage-ment var-iables time date year-s leap
.x
1/04 How do I identify leap years in Stata?
FAQS/data/leapyear.html
.e FAQ
.c faq
.t Problems with reshape
.a N. J. Cox
.k data-sets set-s manage-ment reshape wide long reorganize
.k xpose unab name-s
.x
12/03 I am having problems with the reshape command. Can
you give further guidance?
FAQS/data/reshape3.html
.e FAQ
.c faq
.t Malformed end-of-line sequence
.a J. Hassell
.k data-sets set-s manage-ment infile miss-ing value-s row-s
.k end line-s hex-dump dump anal-yze anal-ysis file-filter
.k filter-s file-s
.x
12/03 Why do I get rows of missing data when I use infile?
FAQS/data/miss_data.html
.e FAQ
.c faq
.t Dropping spells of missing values
.a N. J. Cox
.k value-s miss-ing drop panel-s data-sets set-s
.k sort manage-ment spell-s
.x
9/03 How can I drop spells of missing values at the
beginning and end of panel data?
FAQS/data/dropmiss.html
.e FAQ
.c faq
.t Converting other format files into Stata dataset files
.a S. Driver
.k data-sets set-s manage-ment infile infix insheet format-s ascii text
.k import-ing transfe-rring statt-ransfer spread-sheets odbc convert-ing
.k format file-s dta .dta read-ing input-ting input-ing convers-ion dbmscopy
.x
5/03 How can I convert other packages' files to Stata
format data files?
FAQS/data/convert2.html
.e FAQ
.c faq
.t Configuring ODBC for Mac and Linux
.a K. S. Turner
.k data-sets set-s manage-ment odbc iodbc mac-intosh linux dsn-s source name-s
.k driver-s manager database base
.x
4/03 How do I set up an ODBC Data Source Name for Stata
on Mac or Linux?
FAQS/data/odbcmu.html
.e FAQ
.c faq
.t Making ^foreach^ go through all values of a variable
.a N. J. Cox
.k data-sets set-s manage-ment for-each each for-values value-s loop-s
.k loop-ing repeat-ing command-s iter-ate list-s level-s var-iables
.x
4/03 Is there a way to tell Stata to try all values of a
particular variable in a @foreach@ statement without
specifying them?
FAQS/data/foreach.html
.e FAQ
.c faq
.t The ^destring^ command
.a N. J. Cox
.k data-sets set-s manage-ment destring str-ings encode
.x
3/03 Why doesn't the @destring@ command in Stata include
an ^encode^ option?
FAQS/data/destring.html
.e FAQ
.c faq
.t Using the STATATMP environment variable
.a P. Huckelba
.k data-sets set-s manage-ment rc 699 r(699) disk-s space dir-ectory
.k temp-orary tmpdir statatmp
.x
2/03 Why am I getting an error message that there is
"insufficient disk space"?
FAQS/data/statatmp.html
.e FAQ
.c faq
.t Handling date information when numbers are in a continuous sequence
.a D. Reichel
.k data-sets set-s date-s mdy elap-sed format-s
.x
2/03 How do I convert date variables into Stata elapsed
dates when the numbers run together, like 4151999?
FAQS/data/dateseq.html
.e FAQ
.c faq
.t Changing the default memory setting
.a W. Gould
.k data-sets set-s manage-ment mem-ory max-imums size limit-s stor-age default
.x
2/03 Each morning I have to set my memory size to, say,
20m. The default, 1m, is not sufficient for my data.
Is there a way of changing the default setting?
FAQS/data/setmemory1.html
.e FAQ
.c faq
.t True and false in Stata
.a N. J. Cox
.k data-sets set-s manage-ment boolean true false logic-al
.x
2/03 What is true and false in Stata?
FAQS/data/trueorfalse.html
.e FAQ
.c faq
.t Creating variables recording whether any or all possess some char.
.a N. J. Cox
.k data-sets set-s var-iables all any member-ship group-s egen gen-erate
.k create
.x
2/03 How do I create a variable recording whether any
members of a group (or all members of a group)
possess some characteristic?
FAQS/data/anyall.html
.e FAQ
.c faq
.t Creating dummy variables
.a W. Gould
.k data-sets set-s manip-ulation dum-my var-iables creat-e dum-mies indica-tor
.x
2/03 How do I create dummy variables?
FAQS/data/dummy.html
.e FAQ
.c faq
.t Using a value label multiple times
.a P. Lin
.k data-sets set-s manip-ulation value-s label-s
.x
2/03 Can I apply the ^label values^ command to more than one variable
at once? I want to attach the same value labels to several
variables.
FAQS/data/label.html
.e FAQ
.c faq
.t Results of the mod(x,y) function
.a N. J. Cox and T. J. Steichen
.k data-sets set-s manage-ment mod-ulus func-tions precis-ion
.x
2/03 Why does the mod(x,y) function sometimes give
puzzling results?
Why is mod(0.3,0.1) not equal to 0?
FAQS/data/mod.html
.e FAQ
.c faq
.t Logical expressions and missing values
.a W. Gould
.k data-sets set-s manip-ulation expr-essions miss-ing value-s logic-al
.k boolean if
.x
2/03 Why is x > 1000 true when x contains missing value?
FAQS/data/values.html
.e FAQ
.c faq
.t Keeping the same variable labels with ^collapse^
.a N. J. Cox
.k data-sets set-s manage-ment collapse var-iables label-s
.x
2/03 How can I collapse my dataset and keep the same
variable labels?
FAQS/data/variables.html
.e FAQ
.c faq
.t Saving one or more parts of a dataset
.a P. Seed, N. J. Cox, and J. M. Linhart
.k data-sets set-s manage-ment sav-ed use load read writ-e writ-ing restore
.k file-s sav-ing delete remov-e subset-s drop keep var-iables obs-ervations
.x
2/03 How can I save one or more parts of a large dataset?
FAQS/data/savesome.html
.e FAQ
.c faq
.t Multiple operations on data records
.a D. Kantor
.k data-sets set-s manage-ment if cond-itions state-ment
.x
2/03 How do I perform multiple operations on data records
if a condition is met?
FAQS/data/condition.html
.e FAQ
.c faq
.t Expanding datasets to all possible pairs
.a N. J. Cox
.k data-sets set-s manage-ment expand all pair-s
.x
2/03 How do I produce a dataset based on all possible
pairs of identifiers within each group?
FAQS/data/pairs.html
.e FAQ
.c faq
.t Variable arrays in Stata
.a W. Gould
.k data-sets set-s sas array-s var-iables
.x
2/03 How do I implement SAS-like ARRAYs in Stata?
FAQS/data/arrays.html
.e FAQ
.c faq
.t Replacing missing values
.a N. J. Cox
.k data-sets set-s miss-ing value-s previous following replace cascade
.k cascad-ing nonmiss-ing non
.x
2/03 How can I replace missing values with previous or
following nonmissing values?
FAQS/data/missing.html
.e FAQ
.c faq
.t Current date and time
.a J. Wernow and D. Kantor
.k data-sets set-s date-s time-s stamp-s s_time s_date log-s datetime
.x
2/03 How can I put the current date and time in my log files?
FAQS/data/dateandtime.html
.e FAQ
.c faq
.t Calculating variables containing weighted group summary statistics
.a N. J. Cox and S. P. Jenkins
.k data-sets set-s manage-ment stat-istics summ-ary weight-ed weight-se group-s
.x
1/03 I want to calculate a variable containing weighted
group summary statistics, but I do not want to
collapse the data and ^egen^ does not support weights.
How can I do this?
FAQS/data/weighted.html
.e FAQ
.c faq
.t Dealing with multiple responses
.a N. J. Cox and U. Kohler
.k data-sets set-s manage-ment reshape wide long reorganize split mult-iple
.k response-s composite var-iables concat-enation egen foreach forvalues
.k indica-tor str-ings func-tions tab-ulations
.x
1/03 How do I deal with multiple responses?
FAQS/data/multresp.html
.e FAQ
.c faq
.t Creating variables recording prop. of the other members of a group
.a N. J. Cox
.k data-sets set-s manage-ment group-s gen-erate var-iables member-ship
.x
9/02 How do I create variables summarizing for each
individual properties of the other members of a
group?
FAQS/data/members.html
.e FAQ
.c faq
.t Identifying runs of consecutive observations in panel data
.a N. J. Cox and V. Wiggins
.k data-sets set-s manage-ment gap-s run-s panel-s cross section-al
.k time-series series xt tsspell
.x
8/02 How do I identify runs of consecutive observations
in panel data?
FAQS/data/panel.html
.e FAQ
.c faq
.t Selecting a subset of observations with a complicated criterion
.a N. J. Cox
.k data-sets set-s manage-ment selec-tion subset-s group-s
.x
7/02 How do I select a subset of observations using a
complicated criterion?
FAQS/data/selectid.html
.e FAQ
.c faq
.t Converting other format files into Stata dataset files
.a N. J. Cox
.k data-sets set-s excel transfe-r read-ing input-ting input-ing spread-sheets
.x
7/02 How do I get information from Excel into Stata?
FAQS/data/newexcel.html
.e FAQ
.c faq
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -