Converting Stata code

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

paps2
Posts: 1
Joined: Sat Oct 26, 2013 3:27 pm

Converting Stata code

Postby paps2 » Sat Oct 26, 2013 3:37 pm

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).

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Converting Stata code

Postby EViews Glenn » Wed Oct 30, 2013 11:09 am

Code: Select all

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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests