Announcement
Collapse
No announcement yet.
130 results in 0.0133 seconds.
string
x
You can also choose from the popular tags.

How to combine char(40) and a string
I have a standard error saved in a local variable `se'. For instance, the s.e. is .89. I want it to be (0.89) saved in another local variable. Then I...Last edited by Kailin Gao; 06 Sep 2019, 23:31.
 4 posts

Delete the duplicates by column
Hi, I have more than 3,000 dta files with same format and this is one of the file.dta below.
As you can see, this is a wide type data set and I...Last edited by Priver JM; 04 Sep 2019, 11:09.
 7 posts

No observations r(2000) with Regress and SEM
Hello all. I am working with a dataset that contains many categorical variables with values that are still in written word format, which I am trying to...
 17 posts

Calculating Age Using Dates
In Stata, I need to calculate the age of a patient at the last checkup by using the date of birth and the checkup date. All the data is inputted via...
 2 posts

Minutes off in datetime formatting
Hello,
I am working on a load profile with 30minute invervals of electricity demand that I wish to collapse into hourly demand in Stata....
 2 posts

Uniforming string variable with loop
Hi everyone! I have encountered the following problem while doing some data cleaning.
I have a list of 30k + observations something like:
...
 2 posts

Rename variables  substr
Dear users,
I have a list of variables that I would like to rename.
I would like to modify the variable names by applying the following...
 6 posts

Create Indicator Based on Change in Another Variable
Hi again, STATA friends!
Great first experience using the forum, thank you to the respondents for the help. I now have a question regarding...Last edited by Cody Fiduccia; 05 Jun 2019, 15:27.
 7 posts

compare substrings in same var  same same, but different
Hi.
I have a problem with a huge list of >19,000 towns. There are > 1,200 towns with duplicates (regarding name (dup != 0)), and the...
 6 posts

Synthetic Controls  String Variables
I am trying to run the npsynth command (Abadie, Diamond, Hainmueller, 2009) with a database of gravity data. Each observation is a trade flow from a pair...
 4 posts

Keep last digit of a variable
Hi all,
I have an (independent) variable 'yearquarter' in my data that looks like "2001q3" and so on.
After performing...
 5 posts

Madora Balchan started a topic Help with converting dates from fractional/decimal form to recognized form in Statain GeneralHelp with converting dates from fractional/decimal form to recognized form in Stata
Hey everyone,
I'm a student who needs help with this particular problem. I have in my Stata dataset a variable that is shown in fractional/decimal...
 2 posts

generate dummy variable using strpos
Hi everyone!
I have searched this forum and read the official stata help section, but I'm still not able to do what I want to do so I hope...
 7 posts

stata
Which stata command do we run to get the very first time a certain patient showed up for a clinic visit considering he/she has made several clinical visits?...
 2 posts