I am trying to use depmixS4 package to get HMM model. But i got error message: Error in lm.wfit(x = as.matrix(object@x[!nas, ]), y = as.matrix(object@y[!nas, : missing or negative weights not allowed
```
mod2 <- depmix(response = norm_attributed_orders ~ 1, data = dfout2, nstates = 2,
family = gaussian())
mod2 <- fit(mod2)
summary(mod2)
```
I tested there is no NA value in the dataset "dfout2"
$ norm_attributed_orders: num [1:26307776] 0 0 0 0 0 0 0 0 0 0 ... (because I normalized the data into range [0, 1])
The "norm_attributed_orders" data like: 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.01923077 0.00000000 0.11538462 0.11538462 0.07692308 0.21153846 0.11538462 0.23076923 0.23076923 0.03846154 0.15384615 0.11538462 0.28846154 0.17307692