mt.ttdetect: Detect different trajectory types

Description Usage Arguments Examples

Description

Uses k-means clustering on a specified vector of variables to identify different types of trajectories

Usage

1
mt.ttdetect(data, kclust, varclust)

Arguments

data

The dataset containing the mouse-tracing data and the variables used for clustering

kclust

Number of clusters

varclust

Vector of variable names used for clustering

Examples

1
2
3
4
5
6
7
8
9
head(dataprocessed) #example dataset

data.g <- mt.ttdetect(data = dataprocessed, 
                      kclust = 2, #classify in two clusters
                      varclust = c("MAD", "AAD") #use variables "MAD" and "AAD"
                      ) 
                      
head(data.g)
table(data.g$clusters)

jmbh/mt.analysis documentation built on May 19, 2019, 1:51 p.m.