Computes the gradients in the linear regression MCMC
1  | fn.grads(y, X, l1obs, s1obs, fn.psi = fn.psi.huber, fn.chi = fn.chi.prop2)
 | 
y | 
 numeric vector of responses  | 
X | 
 design Matrix  | 
l1obs, s1obs | 
 observed value of slope and scale statistics  | 
fn.psi | 
 psi function for M-estimation  | 
fn.chi | 
 chi function for M-estimation  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.