createLtmmObj: Create an ltmm model object given data and parameters

View source: R/top_level.R

createLtmmObjR Documentation

Create an ltmm model object given data and parameters

Description

This function is useful for omparing models produced using the ltmix package to models fit using other, or for computing fit criteria and risk measures for a known set of parameters.

Usage

createLtmmObj(x, distributions, trunc, Pars, Pi, npars = NULL)

Arguments

x

data vector

distributions

densities to combine

trunc

left truncation point (optional)

Pars

list of length G of parameter values

Pi

vector of length G of component proportions

npars

Can optionally be used to overwrite the number of free parameters (used in the calculation of AIC & BIC), if the model has additional constraints

Value

An ltmm model object


ltmix documentation built on June 22, 2024, 7:02 p.m.

Related to createLtmmObj in ltmix...