Questions tagged [traminer]
The R TraMineR library is a toolbox for exploring and rendering categorical sequence data such as sequences describing family life trajectories or professional careers. This "traminer" tag is intended for questions related to the usage including data preparation and output handling of TraMineR and its companion TraMineRextras, WeightedCluster, and PST packages.
traminer
224
questions
1
vote
1
answer
397
views
x-axis label in seqdplot
I have problems labelling my x-axis when I nplot the state-distribution by time points in sequence analysis using seqdplot() from the package TraMinR. The labelling works with other plotting functions ...
3
votes
1
answer
765
views
TramineR legend position and axis
I'm working with TraMineR and I don't know how to arrange my plot. So basically what i would like to have the legend under the plot and to remove the space between the x and y axis. Any help is ...
1
vote
1
answer
99
views
Sequence analysis clustering CHI2 EUCLID error
I am quite new to sequence analysis and trying to identify clusters in an aggregated sequence matrix, focusing on the state duration. However, when using method='CHI2'/'EUCLID' combined with step=1 (...
1
vote
0
answers
498
views
Weighted Cluster Analysis in R — generating more clusters than requested with hclust
I'm trying to conduct a hierarchical agglomerative cluster analysis in R by using the Weighted Cluster package. Before doing so, I calculated the distances between state sequences by leveraging the ...
1
vote
1
answer
422
views
TraMineR seqdplot : order states by total frequency
I would like to display a state distribution plot (obtained with seqdplot) ordered by state frequency.
For instance, with the mvad dataset :
library(TraMineR)
data(mvad)
mvad.labels <- c("...
0
votes
1
answer
204
views
Naming of clusters and labelling in TramineR
I am trying to do clustering of the following sequences. Unfortunately when I plot the clustering I am not able to find a way to label the states.
For example instead of A, B, C,D, I want to label ...
3
votes
1
answer
1k
views
Find number of clusters using distance matrix with hierarchical clustering
How do I determine the optimal number of clusters while using hierarchical clustering. If I am just having the distance matrix as I am measuring only pairwise distances (levenshtein distances), how do ...
1
vote
1
answer
426
views
calculating entropy in a sequence of letters
I am trying to calculate shannon's entropy of sequence of letters, for example,
A <- c('A-A-A-A', 'A-B-C-D-E-E', 'A-B-D-F-G-E')
I am trying to use the TraMineR ways to do so, but as I already have ...
3
votes
1
answer
786
views
How to plot several seqplots (TraMineR package) using plot_grid() function in R?
I am trying to plot several plots of "state sequence object" created with the TraMineR package using the plot_grid() function. My main problem is, that I can not store the plots created with the ...
1
vote
1
answer
61
views
Possible to write Typology into dataset?
I am working with TraMineR and I am new to R and TraMineR.
Actually I made a typology of a life course dataset with TraMineR and the cluster library in R.
(used this guide: http://traminer.unige.ch/...
1
vote
1
answer
229
views
My TraMineR sequence plot exceeds the set data range. Why does it do that and how can I fix it?
My problems can easily be summarized in these two pictures:
Sequence Plots:
Sequence Frequency:
The x axis is exceeded, although the dataset ends at 2018. I really hope to find out why this is ...
1
vote
1
answer
270
views
Formatting data for event sequencing in TraMineR
I would like to examine the relative turbulence of text within a series of text compositions, using the seqST() function of the TraMineR package. Within my data frame, each row (N=65) has a single ...
1
vote
1
answer
89
views
seqecreate reorders events alphabetically
I am creating an event sequence using Traminer seqecreate function. However, the events that occur at the same time are reordered alphabetically in created the event sequence object.
The data is ...
2
votes
1
answer
109
views
How to coerce stslist.freq to dataframe
I am doing some describtive sequence analysis using the "TraMineR" library. I want to report my findings via R-Markdown in html format. For formating tables I use "kable" and "kableExtra".
To get the ...
1
vote
1
answer
108
views
How to add a regression line to a TraMineR entropy plot?
I'd like to know if it's somehow implemented to add a linear regression line to a TraMineR entropy plot.
Example:
library(TraMineR)
data(biofam)
set.seed(10)
biofam <- biofam[sample(nrow(biofam),...