Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201945

TraMineR using SPELL or TSE format

$
0
0

I am trying to create a sequence plot using data of behaviour states over time. My data is in long format - I have tried to change this to wide format however there are too many time values to do so.
My data is in TSE or SPELL format. I am just unsure how to take my data to prepare for sequence plots. I would like to visualise the data to find out the percent of behaviour displayed between individuals (n=19) and the transitions that occurred more often etc.

Any help would be much appreciated.

leftevents <- LeftSummary[c(1,26,5)]

this gives a column for id, time (in hour format) and behaviour class (in numbers 1-6)

leftevents.seqe <- seqecreate(id = leftevents$HorseID, timestamp = leftevents$time_hour, event = leftevents$ActualLF)

this only sometimes works. Currently have the error

Error in seqecreate.internal(data = data, id = id, timestamp = timestamp,  : 
   [!] Missing values not supported. 

label

lab <- c("LayingLeft","Step","Pawingground","Standing","Weightshifting","LayingRight")

But I am stuck at this point.


Viewing all articles
Browse latest Browse all 201945

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>