Re: [R] Equivalent to Stata egen tag

2011-01-23 Thread David Winsemius
s you similar applicability as table With best regards Denis - Original Message From: David Winsemius To: Denis Kazakevich Sent: Sun, 23 January, 2011 17:56:53 Subject: Re: [R] Equivalent to Stata egen tag On Jan 16, 2011, at 6:48 PM, Denis Kazakevich wrote: What are the R e

Re: [R] Equivalent to Stata egen tag

2011-01-23 Thread Denis Kazakevich
which is great With best regards Denis - Original Message From: David Winsemius To: Denis Kazakevich Sent: Sun, 23 January, 2011 17:56:53 Subject: Re: [R] Equivalent to Stata egen tag On Jan 16, 2011, at 6:48 PM, Denis Kazakevich wrote: > What are the R equivalents to the St

[R] Equivalent to Stata egen tag

2011-01-16 Thread Denis Kazakevich
What are the R equivalents to the Stata command egen tag and egen count? egen station_week_tag = tag(station week) Thank you __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http:/

Re: [R] Equivalent to Stata egen

2009-04-16 Thread ronggui
It is sure thing that different person has different expectation of the help system. Personally, I think Stata's on-line help system is too brief, though the manual may be a different story. Perhaps, it is all about the habit and the extent to which you are used to (and how much you know about it).

Re: [R] Equivalent to Stata egen

2009-04-16 Thread David Winsemius
On Apr 16, 2009, at 3:58 PM, Stas Kolenikov wrote: See, we just jave different expectations of what is to be seen in the help system, and are used to different formats. Yes, Stata thinks of data as a rectangular array (although it stores it in memory, unlike SAS). The inputs to -egen-, as well

Re: [R] Equivalent to Stata egen

2009-04-16 Thread Stas Kolenikov
See, we just jave different expectations of what is to be seen in the help system, and are used to different formats. Yes, Stata thinks of data as a rectangular array (although it stores it in memory, unlike SAS). The inputs to -egen-, as well as the values produced, depend on the particular functi

Re: [R] Equivalent to Stata egen

2009-04-16 Thread rmailbox
From: "David Winsemius" To: "Stas Kolenikov" Cc: "r-help@r-project.org" Date: Thu, 16 Apr 2009 13:39:44 -0400 Subject: Re: [R] Equivalent to Stata egen Terse is OK by me as long as I get told what goes in (allowable data types, argument names and effects) and what come

Re: [R] Equivalent to Stata egen

2009-04-16 Thread David Winsemius
Terse is OK by me as long as I get told what goes in (allowable data types, argument names and effects) and what comes out. What seemed to be lacking in that Stata doc for egen was a description of the purpose or behavior and then could find no description of the values produced. Perhaps it

Re: [R] Equivalent to Stata egen

2009-04-16 Thread Stas Kolenikov
http://www.stata.com/help.cgi?egen -- it creates new variables dealing with some special relatively non-standard tasks that don't boil down to a one-line arithmetic expressions. For that reason, there will be no equivalent to -egen- in general, as it has so many functions that are so different. -ro

Re: [R] Equivalent to Stata egen

2009-04-15 Thread David Winsemius
Peter Kraglund Jacobsen kraglundjacobsen.dk> writes: > > What are the R equivalents to the Stata command egen? > > egen temp = anycount(t0vas t30vas t60vas t120vas t240vas t360vas), > values(0,1,2,3,4,5,6,7,8,9,10) > egen temp2 = rowtotal(t0vas t30vas t60vas t120vas t240vas t360vas) > And peo

[R] Equivalent to Stata egen

2009-04-15 Thread Peter Kraglund Jacobsen
What are the R equivalents to the Stata command egen? egen temp = anycount(t0vas t30vas t60vas t120vas t240vas t360vas), values(0,1,2,3,4,5,6,7,8,9,10) egen temp2 = rowtotal(t0vas t30vas t60vas t120vas t240vas t360vas) __ R-help@r-project.org mailing li