My df is mydata:
DATE Tot VOLUME
1 2013-05-01 08:00:00 41.19 17447212
2 2013-05-01 09:00:00 48.04 22345495
3 2013-05-01 10:00:00 58.76 24855225
4 2013-05-01 11:00:00 58.92 24756301
5 2013-05-01 12:00:00 63.96 23329007
6 2013-05-02 08:00:00 39.20 15601614
I understand this part, building a linear mode and getting the formula y=a+bx
z.out <- zelig(y~s(x),data=mydata,model="ls")
I also undersntand this part, given the linear model formula and explanatory variable,
what would be my dependent variable. Straight forward:
x.out <- setx(z.out, VOLUME=20000000)
I read the documentation about how sim works but I really did not get it. As I understand
simulation, it picks random numbers from a sample size. But in this case there is only
one number (x.out). I really need to understand how simulation works in Zelig. Can you
explain this to me?
s.out <- sim(z.out,x.out)
This communication is for informational purposes only. It is not intended as an offer or
solicitation for the purchase or sale of any financial instrument or as an official
confirmation of any transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change without notice. Any
comments or statements made herein do not necessarily reflect those of JPMorgan Chase
& Co., its subsidiaries and affiliates.
This transmission may contain information that is proprietary, privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution, or use of the
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED.
Although this transmission and any attachments are believed to be free of any virus or
other defect that might affect any computer system into which it is received and opened,
it is the responsibility of the recipient to ensure that it is virus free and no
responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates,
as applicable, for any loss or damage arising in any way from its use. If you received
this transmission in error, please immediately contact the sender and destroy the material
in its entirety, whether in electronic or hard copy format. Thank you.
Please refer to
http://www.jpmorgan.com/pages/disclosures for disclosures relating to
European legal entities.