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]

From |
Nick Cox <njcoxstata@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

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) <jvverkuilen@gmail.com> wrote: > On Sat, Oct 13, 2012 at 7:45 AM, Nick Cox <njcoxstata@gmail.com> 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/

**Follow-Ups**:**Re: st: rescaling a variable by the maximum value question***From:*"JVerkuilen (Gmail)" <jvverkuilen@gmail.com>

**References**:**st: rescaling a variable by the maximum value question***From:*"JVerkuilen (Gmail)" <jvverkuilen@gmail.com>

**Re: st: rescaling a variable by the maximum value question***From:*"Justina Fischer" <JAVFischer@gmx.de>

**Re: st: rescaling a variable by the maximum value question***From:*Nick Cox <njcoxstata@gmail.com>

**Re: st: rescaling a variable by the maximum value question***From:*Nick Cox <njcoxstata@gmail.com>

**Re: st: rescaling a variable by the maximum value question***From:*"JVerkuilen (Gmail)" <jvverkuilen@gmail.com>

- Prev by Date:
**Re: st: Checking to see if the association between two variables is linear or otherwise** - Next by Date:
**Re: st: rescaling a variable by the maximum value question** - Previous by thread:
**Re: st: rescaling a variable by the maximum value question** - Next by thread:
**Re: st: rescaling a variable by the maximum value question** - Index(es):