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: Mean2 question


From   Richard Williams <[email protected]>
To   [email protected], [email protected]
Subject   Re: st: Mean2 question
Date   Wed, 14 Sep 2011 19:13:22 -0400

At 04:20 PM 9/14/2011, Kate Vyborny wrote:
Dear list,

I am receiving an error message when running mean2 as in the example
from the mean2 help:

use http://www.stata-press.com/data/r11/nhanes2f, clear
mean2 height age weight smsa using myfile.txt, over(sex) cat(Male
Female) excel replace
option linesize() not allowed
r(198);

When I use the exact same code on another computer I do not receive
this error message.

First, note that the help file for -mean2- (available from SSC) says "You will also need to install the latest versions of outreg2 and sxpose from ssc." So, make sure that both machines have both programs, and also that your Stata is fully updated.

Second, messages like this often seem to come about when there is some kind of installation problem or you don't have the most current version of programs. So, if problems persist, you might try

ssc install mean2, replace
ssc install sxpose, replace
ssc install outreg2, replace
update all

Incidentally, your example worked fine for me, once I realized that I needed sxpose too.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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