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

st: RE: Stata programming and the scalar/tempname command


To   <[email protected]>
Subject   st: RE: Stata programming and the scalar/tempname command
From   "Nick Winter" <[email protected]>
Date   Thu, 6 Jun 2002 11:02:46 -0400
Reply-to   [email protected]
Sender   [email protected]
Thread-index   AcINajKKro+4MOHRRte24CkTUyA30gAANYMw
Thread-topic   Stata programming and the scalar/tempname command

> -----Original Message-----
> From: Anna-Lisa Pierre [mailto:[email protected]] 
> Sent: Thursday, June 06, 2002 10:38 AM
> To: [email protected]
> Subject: st: Stata programming and the scalar/tempname command
> 
> 
> Hi this is a bit of a programme that I am writing. Can anyone 
> spot why it 
> does not work? The scalar commands do not appear to work. I get the 
> following error "= invalid name" and "unrecognized command:  
> scalar__0000OP" 
> when I run the programme. Any help is greatly appreciated.
> 
>   tempname catnum degreef obs
>   tempvar scoreqq scor_uqq scor_nqq diffqq1
> 
>   noisily oprobit `*' `if' [`weight'`exp']
> 
>   scalar `catnum'=e(k_cat)
>   scalar`degreef'=e(df_m)
          ^
I note at least that there needs to be a space between the word "scalar"
and the name of the scalar ("`degreef'").  This explains the second
error you mention; where is the first one occurring?

Nick Winter
*
*   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