I am doing sequence analysis using TraMiner package in R. I have data in the STS format. The missing values are coded as “*” and void are coded as “%”. I want to apply seqimpute function in R for filling missing values. But, I want to fill in missing values only where there are * values and not in void spaces “%”.
When I apply following function, it does not work or missing values are not imputed. I only want values imputed for missing values and not in void values. How to do this?
imputed.cov <- seqimpute(data_seq, var=17:86, np=5, nf=5, m=3, timing=TRUE, frame.radius=0, covariates=c("male","country"))
I tried to impute values for missing values and it did not impute missing values.
I tried to run seqimpute and it does not work.
2