Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: rescaling a variable by the maximum value question


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: rescaling a variable by the maximum value question
Date   Sat, 13 Oct 2012 15:47:36 +0100

Note that Mata's definition of -max()- is different:

mata
: y =  st_data(., "y")
: st_addvar("float", "y2")
: st_store(., "y2", y / max(y))
end

I don't know anything about your students, but teaching any Stata
users that statistical commands leave saved results in their wake is a
good idea.

Nick

On Sat, Oct 13, 2012 at 2:27 PM, JVerkuilen (Gmail)
<[email protected]> wrote:
> On Sat, Oct 13, 2012 at 7:45 AM, Nick Cox <[email protected]> wrote:
>> "What Jay is missing" is better corrected to "What Jay understands" ...
>
> Thanks. ;) I figured out that max(.) worked on rows, not on columns,
> but was hoping there would be a simple solution that was very easy to
> explain to students. My data manipulation skills could be improved.
> Probably true for everyone but definitely true for me!
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index