SCM

[#5815] Weight variable when creating sequences

Date:
2014-07-24 15:32
Priority:
3
State:
Open
Submitted by:
Alba Lanau (polisonica)
Assigned to:
Nobody (None)
Resolution:
Won't Fix
Severity:
minor
TraMineR version:
v2.0-10
E-Mail address:
alba.lanau@bristol.ac.uk
Summary:
Weight variable when creating sequences

Detailed description
I have noticed that if, for some reason, when creating sequences I introduce a variable that does not exist in the weight field (e.g. weights=mvad$fakevar in the example below) the program does not show an error. Instead it creates the sequences and allows to continue with the analysis. It is only a small thing, but it would be handy to receive an error.

data("mvad")
library(WeightedCluster)
mvad.seq<-seqdef(mvad[, 17:86], weights=mvad$fakevar)

Kind Regards

Comments:

Message  ↓
Date: 2014-08-13 12:41
Sender: Matthias Studer

Thank you for your bug report.

Unfortunately, R itself does not throw an error when acessing mvad$fakevar, but return a NULL value instead. For this reason, we cannot distinguish between unspecified weight and misspeciefied values.

Attached Files:

Changes

Field Old Value Date By
ResolutionNone2014-08-13 12:41matthias_studer
Thanks to:
Vienna University of Economics and Business Powered By FusionForge