Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: 'Cannot be read as number'


From   "Sarah Edgington" <sedging@ucla.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: 'Cannot be read as number'
Date   Fri, 1 Jun 2012 12:43:38 -0700

Amal,
Try -help input- to get more info on the input command.
You don't say what you're trying to enter after that command that's
generating the error but my guess is that you're trying to enter too few
values.  You've defined three variables so you need to enter info for all of
them.  The other thing you need to know is that to get out of the input
dialog you should type end and hit return.
As an example try:
input str12 diag freq w
first 5 10
second 10 1
another 3 4
end

-Sarah

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Amal Khanolkar
Sent: Friday, June 01, 2012 6:08 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: 'Cannot be read as number'



From: Amal Khanolkar

Sent: 01 June 2012 13:34

To: statalist@hsphsun2.harvard.edu

Subject: 'Cannot be read as number'






Hello,



I used the following command to generate frequencies and weights:



 input str12 diag freq w



However, now no matter what I do, I get a 'cannot be read as a number' error
from Stata. I can't even close the wondow and restart Stata  :)  How do I
force Stata to ignore the previous command, so I may continue as normal??



Thanks,



/Amal.






*
*   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/

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index