fit_pl {mrf2d} | R Documentation |
Maximum Pseudo-likelihood fitting of MRFs on 2d lattices.
Description
Parameter estimation for Markov random fields via
Pseudo-Likelihood function optimization. See
pl_mrf2d
for information on the
Pseudo-Likelihood function.
Usage
fit_pl(
Z,
mrfi,
family = "onepar",
init = 0,
optim_args = list(method = "BFGS"),
return_optim = FALSE
)
Arguments
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 |
|
Value
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
(ifreturn_optim
isTRUE
): Information returned by theoptim()
function used for the optimization.
Author(s)
Victor Freguglia
See Also
A paper with detailed description of the package can be found at doi: 10.18637/jss.v101.i08.
Examples
fit_pl(Z_potts, mrfi(1), family = "onepar")
fit_pl(Z_potts, mrfi(1), family = "oneeach")
fit_pl(Z_potts, mrfi(2), family = "onepar")