kathryntmorrison / inla

Automatically exported from code.google.com/p/inla
0 stars 0 forks source link

code on webpage doesnot work #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
-------------------------------------------------------------------
run code in http://www.r-inla.org/models/tools
in section models with more then one type of likelihood
the third example doesn't work

What is the expected output? What do you see instead?
working

  Named elements in in control-argument `control.data', is required: NULL

  Valid ones are:
    alpha
    epsilon
    fixed
    gamma
    gev.scale.xi
    hyper
    initial
    link
    param
    prior
    sn.shape.max
    variant

What version of the product are you using? On what operating system?
---------------------------------------------------------------------
    INLA build date ...: Thu Dec 8 15:02:58 CET 2011 
    Revision...........: hgid: 3d4d916232fc date: Thu Dec 08 14:47:37 2011 +0100 

Please provide any additional information below.
----------------------------------------------------
The problem is
control.data = list(
                      list(NULL),
                      list(NULL),
                      list(initial=0))
I believe it should be:
control.data = list(
                      list(),
                      list(),
                      list(initial=0))

Question: should I report problem with code from webpage as an issue?

Original issue reported on code.google.com by jonas.wa...@gmail.com on 11 Dec 2011 at 12:49

GoogleCodeExporter commented 9 years ago
You're right. The example on the www-page is fixed. Thanks!

Original comment by h...@r-inla.org on 11 Dec 2011 at 4:30

GoogleCodeExporter commented 9 years ago
Close this issue. Thanks for the report. 

Original comment by havard.rue on 11 Dec 2011 at 4:36