romainkp / stremr

Streamlined Estimation for Static, Dynamic and Stochastic Treatment Regimes in Longitudinal Data
MIT License
38 stars 8 forks source link

ID cannot be a factor, all character variables will be ignored #45

Open romainkp opened 4 years ago

romainkp commented 4 years ago

Add a test that the ID variable provided by the user is NOT a factor within importData and return an error to the user otherwise.

Make it clear in the doc that the ID variable should be not be provided as a factor. Otherwise, the current implementation will create dummies for all study ID.

Make it clear in the doc that all character variables are ignored by stremr (i.e., they won't be converted to factors).