I'm using Stata 14
I'm trying to put the ORs from a regression into successive rows of the variable test1 and test2. I have 1500 observations...
Announcement
Collapse
No announcement yet.
225 results in 0.0107 seconds.
loop
x
You can also choose from the popular tags.

Forval and In not working together.
 5 posts

Ankriti Singh started a topic Regression tables : Dependent variable in rows with coeff in columns & mean of control groupin GeneralRegression tables : Dependent variable in rows with coeff in columns & mean of control group
Hi,
I need help with constructing regression tables which look like this:
...
 2 posts

Keep time within a range from DateTime
Hi Everyone!
I am writing my dissertation which is on "The Impact of Macroeconomic Announcements on Exchange Rate Volatility"....
 3 posts

Looping through specific files in multiple subdirectories?
I have a directory of subdirectories corresponding to months/ years with each subdirectory named (subyymm, ex: sub1712). I have subdirectories for each...
 2 posts

Shad Merhej started a topic Comparing each observation from one variable to few hundred thousand in anotherin GeneralComparing each observation from one variable to few hundred thousand in another
Hi all,
I am wondering if anyone has any ideas on how I can compare each observation from one variable to every observation in another variable....
 15 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...
 3 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

Foreach and gen ? Help please
Hi, I was wondering if is possible making a loop to fill a serie, for example:
set obs 10
foreach x in "Enero" "Febrero"...Last edited by Pamela Serda; 19 Feb 2019, 15:03.
 2 posts

Reshaping data
Hello,
I am trying to change the orientation of my data, but do not know an efficient way of going about it. I have data for the prices...
 4 posts

Exporting iterative Metaan results to excel
I developed an iterative loop to calculate Metaan for a total of 39 studies. I have been trying to export Metaan results (scalars) to excel sheet using...
 4 posts

Question about loops
Hello everyone!
I was wondering if anybody could help me remember how to create a loop in stata.
I am trying to run the following command:...Last edited by Luiza Martins; 08 Feb 2019, 05:53.
 2 posts

Calculate present value by loanID
Hi,
I have a data set that contains loan payments data. I would like to calculate the present value of these payments for each loan by loanID....Last edited by Xinruo Wang; 03 Feb 2019, 17:18.
 9 posts

Complicated vlookuplike function
A simplified database of time use data is below. T1T5 are time periods (e.g. T1 is 1pm  2pm; T2 is 2pm3pm, etc.). T1T5 is 1 if the ACTIVITY is done...
 6 posts

Labeling multiple variables using the foreach loop
I am trying to learn the foreach loop command in Stata 13.0.
I want to label multiple variables using the foreach loop but whenever I enter the...Last edited by Joseph Mawa; 30 Jan 2019, 04:56.
 6 posts

Separate regression for each group in Panel data
Hi,
I have a panel dataset, which includes observation for returns and turnover for the past 52 weeks. I want to extract the coefficient...
 9 posts