Description Usage Arguments Value Examples
Bayesian robust linear regression with Stan
1 |
x |
Numeric matrix of input values. This matrix should not contain a column of 1's. |
y |
Numeric vector of output values. |
nu |
Character, either "fixed" for a fixed value of nu (I'm going to make it 4, since this is a fake package), "continuous", in which case the prior distribution for nu is gamma(shape = 2, rate = 0.5), for an expected value of 4, or "discrete", in which case the prior distribution for nu is a discrete uniform(1, 10). In a real package, I'd give more input options (fixed parameter value, shape, rate, upper bound, ...), but I don't care here |
... |
Arguments passed to 'rstan::sampling' (e.g. iter, chains). |
An object of class 'stanfit' returned by 'rstan::sampling'
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.