seqprecstart {TraMineRextras} | R Documentation |
Determines the initial state precarity level from the state ordering. (See details.)
seqprecstart(seqdata, state.order=alphabet(seqdata), state.equiv=NULL)
seqdata |
a state sequence object (class |
state.order |
Vector of short state labels defining the order of the states. First the less precarious (most positive) state and then the other states in increasing precariousness order. States of the alphabet that are not included here define the non-comparable states. |
state.equiv |
List of state equivalence classes. The classes in the list are each set as the vector of the short labels of the states forming the class. |
The initial state precarity levels are set as equivalently spaced values between 0 and 1 assigned to the states in the specified order.
Equivalent states get the mean value of the states in the equivalence class.
Incomparable states (those not listed on the state.order list) receive a value of .5, i.e., the average of all state costs.
The vector of assigned precarity levels sorted according to the original order of states in the alphabet.
Gilbert Ritschard
Ritschard, G., Bussi, M., and O'Reilly, J. (forthcoming), "An index of precarity for measuring early employment insecurity", in G. Ritschard, and M. Studer, Sequence Analysis and Related Approaches: Innovative Methods and Applications, Series Life Course Research and Social Policies, Springer.
## Defining a sequence object with columns 13 to 24 ## in the 'actcal' example data set data(actcal) actcal.seq <- seqdef(actcal[,13:24]) ## state precarity levels using the original state order seqprecstart(actcal.seq) ## Assuming A and B as equivalent regarding precarity seqprecstart(actcal.seq, state.equiv=list(c('A','B'))) ## and letting C be non-comparable seqprecstart(actcal.seq, state.order=c("A","B","D"), state.equiv=list(c('A','B')))