Page 1 of 1

Converting Stata code

Posted: Sat Oct 26, 2013 3:37 pm
by paps2
Hi,
I am trying to replicate a study that was done using stata. I am particularly interested in converting the following stata command to appropriate eviews command:

egen hdsex=max(temp1), by(year h_seq ffpos);

I believe the "egen" is there to generate a variable, but I am not sure how to set the condition that starts with "by." Any help would be appreciated. I am using eviews 7 (It is the student version so may not have all the capabilities of a regular eviews).

Re: Converting Stata code

Posted: Wed Oct 30, 2013 11:09 am
by EViews Glenn

Code: Select all

series hdsex = @maxsby(temp1, year, h_seq, ffpos)