Description Usage Arguments Details Value Examples
View source: R/callmix.labelling.R
Classification of positions as fishing or steaming, using speed data.
1  | callmix.labelling(x, nclust, algo = "depmix")
 | 
x | 
 a vector of the speed data  | 
nclust | 
 the number of clusters  | 
algo | 
 'depmix' or 'mclust'  | 
By using the methods provided in the algo argument, model-based clustering is performed, with the specified number of clusters. The clusters are then assigned to fishing of steaming using the following labelling scheme: Fishing corresponds to the combination of components that has a joint empirical variance smaller than that of the low-speed states estimated in a 2-component model. If there is more than one combination that reduces the variance, we choose the one with a joint empirical mean closest to that of the low-speed states estimates in a 2-component model.
A list of 3 elements: 'states' A vector of the classified fishing or steaming states. 'loglik' Final log-likelihood estimate of the EM algorithm. 'parameters' A list of parameters dependent on the model.
1 2  | data("DanishTrips")
res <- callmix.labelling(DanishTrips$speed,3)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.