s-news
[Top] [All Lists]

Question about SimSmoDraw in Finmetrics

To: "S-Plus list" <s-news@lists.biostat.wustl.edu>
Subject: Question about SimSmoDraw in Finmetrics
From: "James Dartnall" <james.dartnall@gmail.com>
Date: Wed, 24 May 2006 20:38:44 +0100
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AhOo5c1CwWE2RpEj1JL+LRtV+5LS/Hmd8OIlE/Batcvi2rxGuMwn5QPsif8fRqA0IqpEAEtAXBF/mcTEs21sDsmv0kieBfuvPk4E3RnHGP4HUAXY7Er5F/SqwwSRwMlRnR6FWnn9QkF6SwoPdlnYvbb48NEL6QQrZ0w2h0U5Va0=
Hello all,

I have a query about drawing simulated samples using SimSmoDraw. Using
the example of river nile data, "nile.dat", why is it that when I do
this:

nile.mod = GetSsfStsm(irregular=sqrt(15099), level=sqrt(1469))
nile.fil = KalmanFil(nile.dat, ssf.mod, task="STSIM")

set.seed(123)
ssf.draw = SimSmoDraw(nile.fil, nile.mod, task="STSIM")
nile.draw = ssf.draw$response
tsplot(nile.draw, nile.dat)


I get a different answer than to when I do this:

nile.mod = GetSsfStsm(irregular=sqrt(15099), level=sqrt(1469))
nile.fil = KalmanFil(nile.dat, ssf.mod, task="DSSIM")

set.seed(123)
ssf.draw = SimSmoDraw(nile.fil, nile.mod, task="DSSIM")
nile.draw = nile.dat - ssf.draw$response
tsplot(nile.draw, nile.dat)

More importantly I know the first example using simulated states gives
the wrong answer because the smoothed simulated mean appears to bear
little resemblance to the actual data. It is as if the smoothed draw
is not conditional on the data as in the example in D&K figure 2.4
(i), and it seems to occur whatever seed value I use. If this is the
case, then how can I make the smoothed draw conditional on the data?

I am using S-Plus 7 and Finmetrics 2 on windows XP.

Hope someone can help,

James Dartnall

<Prev in Thread] Current Thread [Next in Thread>
  • Question about SimSmoDraw in Finmetrics, James Dartnall <=