I found this posting useful:
https://www.statalist.org/forums/for...ragebygroups
My bad...
Announcement
Collapse
No announcement yet.
13 results in 0.0089 seconds.
bysort
x
You can also choose from the popular tags.

Not sorted when conducting bysort egen command even after xtset and sort
Last edited by Minjae Yun; 02 Dec 2019, 14:45.
 2 posts

Dropping observations if missing certain dates
I have incomplete data and would like to drop any observations for which I do not have data in a particular variable during a given time period. My best...
 2 posts

Command for calculating household level expenditure
Hi,
I am working with the National Sample Survey Organization dataset from India. It is an individual level dataset but the consumption figures...
 5 posts

Computing average productivity per weekday and weekend
Hi everyone,
I have a dataset which more or less looks like the one provided below. For this dataset, I want to calculate the average number...
 6 posts

bysort command in xtunitroot
Hi all,
I want to use the xtunitroot command along with bysort. I wanted to check the presence of unit root at each individual crosssections....Last edited by Sudatta Mohapatra; 21 Feb 2018, 10:21.
 1 post

outreg2 if you regress with bysort year
Dear all,
I already found the command for regressing by year ( I use a logit function) and then outreg2 it. Though it still only shows the...
 2 posts

Run a loop by survey wave
Hello, I need to run the loop below separately for each wave of my survey as identified by the interview_nb variable. Since foreach does not admit the...
 3 posts

Jennifer Xie started a topic Urgent help please! Using forvalues for nested loop regression by firm and yearin GeneralUrgent help please! Using forvalues for nested loop regression by firm and year
Hi there,
I am running a market model by using daily returns from year 2006 to 2014 with 36 firms. I want to get the residuals of the loop...
 7 posts

Replicating the values of a variable to fill specific gaps
Dear Statalisters,
I am working with a dataset originating from two different datasets, one with a series of variables regarding the household...
 5 posts

Counting times of query (but queries made in 30 days are regarded as 1)
Hi.
I am trying to count how many queries are made in a year,
but queries made in 30 days are regarded as 1 time only.
...
 2 posts

bysort egen with difference
Hi all,
I hve this data set ...Last edited by tania kallab; 26 Jan 2017, 01:58.
 6 posts

Benjamin Beckers started a topic Parallel computing with Stata/MP 14.1 and parallel package: invalid internship and stata(): 3598 Stata returned errorin GeneralParallel computing with Stata/MP 14.1 and parallel package: invalid internship and stata(): 3598 Stata returned error
Dear Statalisters,
first, apologies for my rudimentary understanding of Stata as I only recently started using it. I am working with an unbalanced...Last edited by Benjamin Beckers; 14 Sep 2016, 11:15.
 2 posts

jvgeconomics started a topic Panel Data: Need variable that calcs shares by variable type and another dimension. Egen?in GeneralPanel Data: Need variable that calcs shares by variable type and another dimension. Egen?
Hi all,
I have a panel database as shown below and need to calculate the levels of type 1 as % of levels in type 3 for the same countries....Last edited by jvgeconomics; 22 Jul 2014, 16:44.
 8 posts