Maximum Pseudolikelihood Estimation for an Ordinal Markov Random Field Model
Source:R/maximum_pseudolikelihood.R
mple.Rd
The function mple
estimates the parameters for the ordinal MRF
by optimizing the joint pseudolikelihood with the Newton-Raphson method.
Usage
mple(
x,
convergence_criterion = sqrt(.Machine$double.eps),
maximum_iterations = 1000,
thresholds,
interactions
)
Arguments
- x
A dataframe or matrix with
n
rows andp
columns, containing binary and ordinal variables forn
independent observations andp
variables in the network. Variables are recoded as non-negative integers(0, 1, ..., m)
if not done already. Unobserved categories are collapsed into other categories after recoding. Seereformat_data
for details.- convergence_criterion
The convergence criterion for the pseudoposterior values in the EM algorithm. Defaults to
sqrt(.Machine$double.eps)
.- maximum_iterations
The maximum number of EM iterations used. Defaults to
1e3
. A warning is issued if the procedure has not converged inmaximum_iterations
iterations.- thresholds
A matrix with
p
rows andmax(m)
columns, containing the category thresholds for each node. Used as starting values in the Newton-Raphson procedure. Optional.- interactions
A matrix with
p
rows andp
columns, containing the pairwise association estimates in the off-diagonal elements. Used as starting values in the Newton-Raphson procedure. Optional.
Value
A list containing:
interactions
: A matrix withp
rows andp
columns, containing the maximum pseudolikelihood estimates of the pairwise associations in the off-diagonal elements.thresholds
: A matrix withp
rows andmax(m)
columns, containing the maximum pseudolikelihood estimates of the category thresholds for each node.