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

st: version 7 > 8

From   "Patrick Sturgis" <[email protected]>
To   <[email protected]>
Subject   st: version 7 > 8
Date   Wed, 17 Mar 2004 09:06:34 -0000

This is a repeat of a message I posted toward the end of last year, which
Nick Cox kindly helped me to resolve. However, the resolution was only
partial as it fixed the bug in my code but I still seem to have a problem
with running the same file successfully in version 8 (it works fine in 7).
Here is the code:

program define alphawithin
  version 8.0
  if "`1'" == "?" {
  global S_1 "alphawithin"
  tempname y
  alpha bef*
  scalar `y' = r(alpha)
  alpha aft* 
 post `1' (`r(alpha)'-`y')

When I run this with:	bstrap	alphawithin,	reps(10)

I get the following error message:

command ->	alphawithin
error when	command executed	on	original	dataset
under	version	8	control

Any suggestions? Thanks,


Dr Patrick Sturgis
Department of Sociology
University of Surrey
tel: +44 (0) 1483 686974
fax: +44 (0) 1483 689551
e-mail: [email protected]

*   For searches and help try:

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