R/05_MLestimator_fitfunction.R

# maxLikEstimator <- function(x, model){
#   # What distribution?
#   distribution <- model@distribution
#   
#   # Function to use:
#   distFun <- switch(distribution,
#           "Gaussian" = maxLikEstimator_Gauss,
#           "Ising" = maxLikEstimator_Ising)
#   
#   # Run and return:
#   distFun(x, model)
# }

Try the psychonetrics package in your browser

Any scripts or data that you put into this service are public.

psychonetrics documentation built on Oct. 3, 2023, 5:09 p.m.