rw2diid using rgeneric

62 views
Skip to first unread message

jlg...@uw.edu

unread,
Feb 14, 2019, 10:43:23 AM2/14/19
to R-inla discussion group
Hi,

I have a couple questions regarding the RW2iid model. 

1) If i wanted to build a model with a rw2 effect in time and also an iid effect in time, can this be used for that? or is it only usable for space (and if this is the case, how does it differ from the bym2 implementation?)?

2) Is there a corresponding INLA:::rw() function for the rw2diid model?

Thanks,

Helpdesk

unread,
Feb 15, 2019, 8:39:07 AM2/15/19
to jlg...@uw.edu, R-inla discussion group


On Thu, 2019-02-14 at 07:43 -0800, jlg...@uw.edu wrote:
> Hi,
>
> I have a couple questions regarding the RW2iid model.


there isn't a such model, but I guess you try to make one.


> 1) If i wanted to build a model with a rw2 effect in time and also an
> iid effect in time, can this be used for that? or is it only usable
> for space (and if this is the case, how does it differ from the bym2
> implementation?)?

are we talking about the rw2diid ???

--
Håvard Rue
Helpdesk
he...@r-inla.org

jlg...@uw.edu

unread,
Feb 15, 2019, 8:56:50 AM2/15/19
to R-inla discussion group
Hi, oops, yes i meant the RW2Diid.

Elias T. Krainski

unread,
Feb 15, 2019, 12:14:23 PM2/15/19
to r-inla-disc...@googlegroups.com
A realization from the rw2diid model is smoother than one from the bym2
model.

If you like, you can try a bym2 for time, which will be a kind of
rw1diid. See the attached code example.

Elias


rw1iid-time.R
Reply all
Reply to author
Forward
0 new messages