Skip to main content

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.

1 vote
1 answer
59 views

Neglecting time in state sequence

I have a sequence of events that happens over a very long period of time (123). There are over 200 states. The sample is composed of 110 firms. There are 8 different events. The range of the time is ...
Antonin Ricard's user avatar
1 vote
1 answer
168 views

Reduce the range of time in sequence analysis with R

I have a sequence that happens over a very long period of time. I tried 8 different algorithms to classify my sequences (OM, CHi2,...). Time goes from 1 to 123. I have 110 individual and 8 events. ...
Antonin Ricard's user avatar
1 vote
1 answer
111 views

Discrepancy analysis and weighted sequence data: where do I find my group variable?

I'm trying out discrepancy analysis. Due to the large size of my sequence data I'm using the weights with the WeightedCluster package. Everything works smoothly until the point when I get to the ...
Aart-Jan's user avatar
1 vote
1 answer
1k views

PST: Error in names(StCol) <- A : attempt to set an attribute on NULL

Consider the following code: library(PST) library(TraMineR) library(RCurl) x <- getURL("https://gist.githubusercontent.com/aronlindberg/c79be941bc86274f4526705600962789/raw/...
histelheim's user avatar
  • 5,018
1 vote
1 answer
176 views

Converting TSE data to STS with TraMineRextras

I have a data set which is formatted like TSE: Event is a code of the mode of entry (1 is export, 2 to 5 is partenariat, 6 to 7 is Acq.Mino, 8 is Acq_Majo). Country is not used. I would like to ...
Antonin Ricard's user avatar
0 votes
2 answers
96 views

How to group same observation in a dataframe to one group [closed]

I have a dataframe with diagnosis in the x-axis (from diagnosis 1 to 30) and ID-numbers in the y-axis. The observations is the different diagnosis the patient have gotten by the doctor. I had a ...
user avatar
1 vote
1 answer
48 views

C_cstringrefseqdistance and C_cstringdistance functions in TraMineR R package [closed]

I cannot access the source codes for C_cstringrefseqdistance and C_cstringdistance C functions used by the seqdist() function in the TraMineR R package. Do you know if these source codes have been ...
user3284568's user avatar
1 vote
1 answer
132 views

Setting the "tpow" and "expcost" arguments in TraMineR::seqdist

I'm actually working on the pathways of inpatients during their hospital stay. These pathways are represented as states sequences (the current medical unit at each time unit) and I'm trying to find ...
L. Trutt's user avatar
1 vote
0 answers
31 views

What is the algorithm under the function seqefsub?

I wonder what is the underliyng algorithm implemented in the function seqefsub. In the book chapter "Exploratory mining of life event histories", and I found this: Efficient algorithms for ...
lordbitin's user avatar
  • 195
3 votes
1 answer
71 views

Omit output when calling seqdef

I wonder if it is possible to omit the output of the function seqdef of TraMineR. I do not see any verbose argument or similar. Thank you! Víctor
lordbitin's user avatar
  • 195
1 vote
1 answer
469 views

How to compute dissimilarities between sequences when sequences contain gaps?

I want to cluster sequences with optimal matching with TraMineR::seqdist() from data that contains missings, i.e. sequences containing gaps. library(TraMineR) data(ex1) sum(is.na(ex1)) # [1] 38 sq &...
jay.sf's user avatar
  • 70.8k
2 votes
3 answers
182 views

How to get the largest possible column sequence with the least possible row NAs from a huge matrix?

I want to select columns from a data frame so that the resulting continuous column-sequences are as long as possible, while the number of rows with NAs is as small as possible, because they have to be ...
jay.sf's user avatar
  • 70.8k
2 votes
1 answer
468 views

Difficulty reproducing the chi-square distance calculation produced by the seqdist() function of Traminer package (in R) using the associated formula

I've been doing some exploratory analysis of data in the form of ordered sequences of categorical states, e.g. sequence x = A,A,B,D... etc. I've been using the Traminer package in R to do this ...
LTD's user avatar
  • 23
1 vote
1 answer
122 views

TraMineR refseq

I use the function seqdist from package TraMineR. First I calculate on 2 trajectories in seq.all : seqdist(seq.all[1:2,], method="OM", indel=1.1, sm=couts) [,1] [,2] [1,] 0.00000 46....
Charb's user avatar
  • 11
1 vote
1 answer
168 views

TraMineR for time-use data with over hundred different activities

I'm trying to analyse sequences with TraMineR UKTUS records people activities for every 10 minutes defined by the dataset as act1_1, act1_2,...,act1_144 variables (144 x 10 minutes). Each time ...
RforDummies's user avatar

15 30 50 per page
1
3 4
5
6 7
15