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...
To statalist@hsphsun2.harvard.edu Subject Re: st: How to apply a command to numeric variables only Date Sat, 2 Jun 2012 10:50:50 +0100That's already been answered by me in this thread. See <http://www.stata.com/statalist/archive/2012-05/msg01298.html> Before you might lose it,...
#To print the range of salary packages range.sal <- range(read.data$empsalary) print(range.sal) Output: [1] 20000 36000 #To print the details of a person with the highest salary, we use the subset() function to extract variables and observations max.sal <- subset(read.data, empsalary...
In R, how do I code "only show the first 2 words" of an output? Seeking help for using filter and mutate command to break down a current variable into separate variables Rstudio crashs on macOS with the X11 cairo type window Principal Components Analysis (PCA) Error: Long vect...
<SQLServerPublicKey> con la parte pubblica del certificato di SQL Server in formato binario, registrata nel passaggio precedente. Si tratta di un valore stringa lungo che inizia con 0x. <SQLServerCertName> con il nome del certificato di SQL Server registrato nel passaggio precedente. <M...
to exploit the change in trade policy that has led to a more restrictive trade environment. Third, we use both parent and subsidiary variables in order to disentangle from where the statistical significance of relative (parent-subsidiary) variables comes from. Fourth, the sample period is updated...
(or variables) that serve id variables, in this case id. Next is the argument using this tells Stata that we are done listing the id variables, and that what follows are the dataset(s) to be merged. The names are listed, with only spaces (no commas, etc.) between them. (Note, if...
drop `var' >> 4. rename string `var' >> 5. } >> srhcareactivity4 not labeled >> r(182); >> === > > Your problem was posed that you want to -decode- variables, except > that you can't -decode- string variables. But you can't -decode- > variables without value labels ...
To <statalist@hsphsun2.harvard.edu> Subject st: RE: AW: how to identify unique id variables within groups? Date Wed, 20 May 2009 12:46:34 +0100This is not a good method in general. For example, it wouldn't work with string variables. Apart from -duplicates-, there are plenty more...
but the problem is i don't now the min and max values. I want to drop the observations if they are under 2.5% and over 97.5% of the maximum earnings. Boris This would have been useful to state in your original question! Its not that hard though... ...