Skip to content

LDATS v0.2.5

Compare
Choose a tag to compare
@juniperlsimonis juniperlsimonis released this 23 Dec 01:10
4559ffd

General editing of simulation functions

  • Don't need to make a sparse matrix to pass in now
  • Tweaking the simulation functions to simplify X

Patching a bug in sim_TS

  • Using only as.matrix() fails if there is only 1 year in a segment and there are multiple covariates. In that case, as.matrix(X[in1, ]) returns a matrix of n_covariates rows x 1 column, instead of a matrix of 1 row and n_covariates columns. This edit should fix that by forcing it into a matrix of the correct number of rows.