Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: transformations in commands


From   SamL <saml@demog.berkeley.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: transformations in commands
Date   Fri, 2 Jun 2006 10:46:48 -0700 (PDT)

Not having tried it myself, but I thought this could essentially be done
with the -glm- command.  And, relatedly, if stata incorporates other link
functions for multi-level models, it would seem that the ado glamm (sp?)
would become the multi-level model equivalent of -glm-, while pre-packaged
multi-level analogues for ols regression (perhaps -mixreg-), logit
regression (perhaps -mixlogit-), ordered probit (perhaps -mixopro-), and
so on, would also be available.  But, the general question I'd ask now is,
isn't -glm- useful for this kind of situation?

Sam

On Fri, 2 Jun 2006, David Jacobs wrote:

> I can't speak for R, but EViews lets the user perform all sorts of
> transformations in the command syntax and this is a particularly handy feature.
>
> After many years using both EViews and Stata I strongly agree with
> Alan's implicit claims about how useful this feature is.
>
> Dave Jacobs
>
>
> At 12:25 PM 6/2/2006, you wrote:
> >Alan--
> >You could roll your own, by writing a wrapper for each regression
> >command that parses expressions, generates tempvars, and labels them
> >with the relevant expression.  Don't users of R have to program their
> >own stuff every time?
> >
> >On 6/2/06, Feiveson, Alan H. (JSC-SK311) <alan.h.feiveson@nasa.gov> wrote:
> >>Hi  - I have been demonstrating the wonders of Stata to users of R and
> >>have been embarrassed by their criticism of  Stata's inability to
> >>transform a variable within the syntax of a command. For example reg y
> >>log(x) won't work. The variable z=log(x) must be generated first. I'm
> >>curious as to whether other statistical software besides R allows this
> >>sort of thing. At any rate, I would strongly urge Stata Corp. to
> >>incorporate this sort flexibility.
> >>
> >>Al Feiveson
> >>
> >>*
> >>*   For searches and help try:
> >>*   http://www.stata.com/support/faqs/res/findit.html
> >>*   http://www.stata.com/support/statalist/faq
> >>*   http://www.ats.ucla.edu/stat/stata/
> >*
> >*   For searches and help try:
> >*   http://www.stata.com/support/faqs/res/findit.html
> >*   http://www.stata.com/support/statalist/faq
> >*   http://www.ats.ucla.edu/stat/stata/
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index