Description Usage Arguments Value Mathematical formula See Also Examples
bpr_gradient
computes the gradient w.r.t the coefficients w of
the Binomial distributed Probit regression log likelihood function.
1 | bpr_gradient(w, H, data, is_NLL = FALSE)
|
w |
A vector of parameters (i.e. coefficients of the basis functions) |
H |
The |
data |
An |
is_NLL |
Logical, indicating if the Negative Log Likelihood should be returned. |
the gradient vector of the log likelihood w.r.t the vector of coefficients w
The gradient of the Binomial distributed Probit regression log likelihood function w.r.t to w is computed by the following formula:
log p(y | f, w) = ∑_{l=1}^{L} log Binom(m_{l} | t_{l}, Φ(w^{t}h(x_{l})))
1 2 3 4 5 6 7 | obj <- polynomial.object(M=2)
obs <- c(0,.2,.5)
des_mat <- design_matrix(obj, obs)
H <- des_mat$H
w <- c(.1,.1,.1)
data <- matrix(c(10,12,15,7,9,8), ncol=2)
gr <- bpr_gradient(w, H, data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.