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" <>
To   <>
Subject   st: RE: RE: version 7 > 8
Date   Fri, 5 Dec 2003 16:09:16 -0000


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,


-----Original Message-----
[]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

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

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


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:

*   For searches and help try:

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