To statalist@hsphsun2.harvard.edu Subject Re: st: How to apply a command to numeric variables only Date Tue, 29 May 2012 08:27:33 +0100Similar questions arise often on this list. In your case one solution is to -destring- the string variables before the loop, but then the loop will...
Re: st: How to apply a command to numeric variables only From: Nick Cox <njcoxstata@gmail.com> Prev by Date: Re: st: Problem using asclogit regression Next by Date: st: RE: RE: Create a table of estimation results from several simple regressions Previous by thread: Re: st: How...
In your case one solution >>> is to -destring- the string variables before the loop, but then the >>> loop will convert back, so that does not appeal. >>> >>> Another is to select numeric variables beforehand. -ds- will do this >>> >>> ds srhcareactivity1-srhcareactivity6 ,...
"Boolean (yes/no)" in Epidata. But when data was exported to Stata 8.2, the result is very frustrating: <snip> What I need is just a binary variable. Must I have to transform it to numerical variable firstly and then label variables and values again manually? Are there any other ways...
read and append several files and want to make certain that no data are lost due to appending a numeric variable onto a string variable (or vice versa). In cases where this is not desirable, a single call to -destring- is all that is necessary to restore one or more variables to ...
I want two variables, namely, the household and the individual. Eventually, I want to make them numerical. So, being string variable isn't important. Yu-Jin * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/...
(use -help destring- to read about it, or you can access it via the menu Data -> Create or change data -> Other variable-transformation commands -> Convert variables from string to numeric) The Stata documentation is very good; you could for example answer this question by typing: search...