Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: version 7 > 8


From   "Patrick Sturgis" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: version 7 > 8
Date   Fri, 5 Dec 2003 16:09:16 -0000

Nick

Stata Reference Manual says that  in r(rho) alpha 'saves the average
interitem correlation if std is specified'. I think my original problem was
that I hadn't specified std aftter alpha in the ado file. However, I still
get the same error message about versions even when I use your suggested
code. Thanks for your help,

Patrick

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Nick Cox
Sent: 05 December 2003 13:15
To: statalist
Subject: st: RE: version 7 > 8


As you know, Stata has a rather
elaborate system of version control designed
to maximise the extent to which old programs
can work with newer versions of Stata,
which does very occasionally not do what
users hope.

However, although you are getting a message about
versions, it could just be a side-effect
of another mistake in your program. Guessing
that -avcorwithin2- here is just a modification
of -avcorwithin- mentioned in your previous
post, I see an error there: -alpha- does
not leave behind any result in r(rho).

You might be better off with something more
this:

program avcorwithin, rclass
	version 8.0
	tempname y
	alpha bef*
	scalar `y' = r(alpha)
	alpha aft*
	return scalar diff = r(alpha) - `y'
end

bootstrap "avcorwithin" r(diff), reps(1000)

Nick
[email protected]

Patrick Sturgis

> I am getting the following error message when running a
> *.ado file written
> in version 7 in version 8:
>
> command -> avcorwithin2
> error when command executed on original dataset under
> version 8 control
>
> I'd aprreciate it if someone could tell me what this means.

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index