Hello,
I am relatively new to Stata and I am confused at how to approach problem. I read through gen, egen, and what I could find that seemed...
Announcement
Collapse
No announcement yet.
124 results in 0.0083 seconds.
string
x
You can also choose from the popular tags.

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

ðŸ™‹ Equivalent of mat_capp in Mata
I am looking for the equivalent of mat_capp/mat_rapp commands in Mata.
Specifically, I need to perform the same operations on string matrices which...
 6 posts

Changing Type of Local Variables
I have an imported dataset where I need to rename all of the variables and want to use the imported label as a part of the new name of the variables....
 4 posts

Panel data: Identify recurrent strings across columns
Dear Statalist,
I have a large dataset that contains several million emails (one row per email sent). I am trying to create a variable that...
 5 posts

Extracting commas between specific characters
Goog Afternoon Statalist users,
I have a database that looks like the following:
Code:Example generated by dataex. To install:
Last edited by Nicolas Echeverry; 24 Feb 2019, 10:14.
 5 posts

Foreach and string variables
I have a panel data set with country, years, and the following three (relevant) variables:
C (float)
code (string)
varcode (string)...
 8 posts

Getting started with STATA
Hey there,
I need to write an essay for which I need Stata. To be honest I never had any experience with Stata before so my question is probably...Last edited by Millbrother CA; 20 Feb 2019, 05:01.
 2 posts