0
$\begingroup$

I'm using social sequence analysis, and comparing between different distance methods for my data. I'm wondering if there is a way to view/call the automatic substitution cost matrix that the dynamic hamming distance procedure uses? I have been able to create what I think would be the substitution cost matrices with the seqcost and the seqsubm functions (code below). Both these functions give me the same results - which is to be expected. However, I am wanting to know that what I've generated using this code is what the alogorthim would be using to compute? And, is there a way to view the substitution cost matrix that the procedure uses?

Thanks in advance for your advice!

#Compute the Dynamic Hamming distances. 

dist.dhd <- seqdist(number.seq, method = "DHD", with.miss = FALSE, norm = "none")
dist.dhd

##create DHD cost matrix - both functions give same output

dhdcost <- seqcost(number.seq, method = "TRATE", time.varying = TRUE, transition = "both")
dhdcost


couts <- seqsubm(number.seq, method = "TRATE", time.varying = TRUE, transition = "both")
round(couts, 2)
```
New contributor
Siobhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
$\endgroup$

Your Answer

Siobhan is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.