SCM

[#6501] Error when use seqrep.grp with missing in state sequence object

Date:
2017-04-10 07:14
Priority:
3
State:
Closed
Submitted by:
Charles Mouté (charlesmoute)
Assigned to:
Gilbert Ritschard (gritschard)
Resolution:
Accepted As Bug
Severity:
trivial
TraMineR version:
v2.0-12
E-Mail address:
charlesmoute@gmail.com
Summary:
Error when use seqrep.grp with missing in state sequence object

Detailed description
Instead of :

gr[[i]] <- seqrep(seqdata[ig, ], dist.matrix = mdis[ig,ig], dmax = dmax, ...)

in the script, I think we should have

seqrep(seqdata[ig, ], dist.matrix = mdis[ig,ig], dmax = max(mdis[ig,ig]), ...)"

R.version
_
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 3.2
year 2016
month 10
day 31
svn rev 71607
language R
version.string R version 3.3.2 (2016-10-31)
nickname Sincere Pumpkin Patch

Comments:

Message  ↓
Date: 2017-07-04 09:37
Sender: Gilbert Ritschard

Error occurred when diss=NULL and the default LCS distance was computed.
Fixed by adding a with.missing argument to seqrep.grp that should be set as TRUE when diss=NULL and the sequences contain missing values. Available since Revision 890 (July 4, 2017).

Attached Files:

Attachments:
Size Name Date By Download
686 KiBCapture d’écran 2017-04-10 à 09.13.28.png2017-04-10 07:14charlesmouteCapture d’écran 2017-04-10 à 09.13.28.png

Changes

Field Old Value Date By
close_dateNone2017-07-04 09:37gritschard
assigned_tonone2017-07-04 09:37gritschard
details Instead of : gr[[i]] <- seqrep(seqdata[ig, ], dist.matrix = mdis[ig,ig], dmax = dmax, ...) in the script, I think we should have seqrep(seqdata[ig, ], dist.matrix = mdis[ig,ig], dmax = max(mdis[ig,ig]), ...)" R.version _ platform x86_64-apple-darwin13.4.0 arch x86_64 os darwin13.4.0 system x86_64, darwin13.4.0 status major 3 minor 3.2 year 2016 month 10 day 31 svn rev 71607 language R version.string R version 3.3.2 (2016-10-31) nickname Sincere Pumpkin Patch 2017-07-04 09:37gritschard
status_idOpen2017-07-04 09:37gritschard
File Added5151: Capture d’écran 2017-04-10 à 09.13.28.png2017-04-10 07:14charlesmoute
Thanks to:
Vienna University of Economics and Business Powered By FusionForge