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

st: RE: cumulative integral


From   "FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: cumulative integral
Date   Wed, 1 Jun 2005 08:11:14 -0500

Andreas - use the -gen- option:

Integ var2 var1,gen(var3)


Al Feiveson 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andreas
Aschbacher
Sent: Wednesday, June 01, 2005 7:03 AM
To: [email protected]
Subject: st: cumulative integral

Dear fellows !

I have about 15000 observations in x and y column named by var1,var2 :
(var1 means x , var2 means y)

 var1                  var2
22.5	         6.27425E-07
27.3	         4.35712E-06
30.71428571	 1.21999E-05
.                   .
.                   .
.                   .

Now I'd like to make cumulative integral: value until 22.5 in var3, value
until 27.3 in var3, value until 30.71428571 and so on.
How to make this most quick ? I'd like to work with cubic splines.
if I say integ var2 var1 I only get last cumulative value.
thank you for any advice !

Andreas

 

--
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
*
*   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/
*
*   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