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

st: error


From   "Andreas Aschbacher" <[email protected]>
To   [email protected]
Subject   st: error
Date   Mon, 29 Mar 2004 15:35:45 +0200 (MEST)

Dear fellows !

I tried much with the following program,but I can't understand :
'7.000000000000001' invalid obs no  -     as error message
I can't solve the problem by reading r(198)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clear
set obs 100
tempname tempd1 tempd2
scalar `tempd1' = .1
di `tempd1'
g double conv =.
range d 0 10 101
forvalue i = 1/100 {
   g u`i' =.
   scalar `tempd2' = `i' * `tempd1'
   di "tempd2                                                       "  
`tempd2'
   local f = (`tempd2'/.1)+1
   di `f'
   range x 0 `tempd2' `f'
   gen double y = exp(-(`tempd2' -x) ^2/2)*.1/(x + .1)
 
   integ y x,gen(Sy)
   replace conv = Sy[`i' +1] in `i'
   replace u`i' = y
   drop Sy y x
}

twoway line conv d

any advice will be appreciated very much

andreas aschbacher

-- 
+++ NEU bei GMX und erstmalig in Deutschland: T�V-gepr�fter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz

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