-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi,
I'm encountering an issue when specifying different covariates for the first and second stages in a tsps model.
For example: tsps("outcome ~ exposure + covariates_stage2 | instrument + covariates_stage1")
I'd like to include covariates only in the second stage (covariates_stage2) and not in the first stage (covariates_stage1). However, when I try this, I get the following error:
Error in moments[, i] <- (X - linearpredictor) * Zwithcons[, i] : incorrect number of subscripts on matrix
Do I need to include the same covariates in both stages? Or is there a way to specify covariates only for the second stage without this error?
Any help would be appreciated!
Metadata
Metadata
Assignees
Labels
No labels