This is for model.xy. It takes the model function, its parameters, x values, observed values of the dependent variable obs, and sd values, to generate a likelihood. One of the parameters is passed as testparam, for use with metrop1step.
This requires a badparam function for testing parameters. The standdard deviation is passed as an argument, not calculated from sdmodel.
1 2 | llike.GaussModel(testparam, allparam, whichtest, x, obs, model, badpred,
SD, ...)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.