View source: R/pseudo_likelihood.R
fit_pl | R Documentation |
Parameter estimation for Markov random fields via
Pseudo-Likelihood function optimization. See
pl_mrf2d
for information on the
Pseudo-Likelihood function.
fit_pl( Z, mrfi, family = "onepar", init = 0, optim_args = list(method = "BFGS"), return_optim = FALSE )
Z |
A |
mrfi |
A |
family |
The family of parameter restrictions to potentials. Families
are:
|
init |
The initial value to be used in the optimization. It can be:
|
optim_args |
Additional parameters passed to |
return_optim |
|
An object of class mrfout
with elements:
theta
: The estimated array of potential values.
mrfi
: The interaction structure considered.
family
: The parameter restriction family considered.
method
: The estimation method ("Pseudolikelihood"
).
value
: The optimal pseudo-likelihood value.
opt.xxx
(if return_optim
is TRUE
): Information returned by the
optim()
function used for the optimization.
Victor Freguglia
A paper with detailed description of the package can be found at doi: 10.18637/jss.v101.i08.
fit_pl(Z_potts, mrfi(1), family = "onepar") fit_pl(Z_potts, mrfi(1), family = "oneeach") fit_pl(Z_potts, mrfi(2), family = "onepar")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.