Dear Service,
I have following structure for a panel data with dependent variable = X, Visit (I also have date of visit) and Treatment which vary inside a subject = ID.When a treatment fails it is replaced by a new one:
My objective is to compare the values of X between treatments but I don't know how to deal with the fact that within the same subject there is more than one treatment.
How can I handle this in a random coefficients model (as for example mixed X Visit Treatment || ID:, cov(unstruc)?
Thank you very much.
Jorge
I have following structure for a panel data with dependent variable = X, Visit (I also have date of visit) and Treatment which vary inside a subject = ID.When a treatment fails it is replaced by a new one:
ID | Visit (or date of visit) | X | Treatment |
1 | 1 | 3.5 | INF |
1 | 2 | 4.1 | ETA |
1 | 3 | 3.4 | ETA |
1 | 4 | 2.9 | ABA |
2 | 1 | 1.2 | ETA |
2 | 2 | 3.4 | ETA |
2 | 3 | 2.1 | ABA |
3 | 1 | 1.1 | INF |
4 | 1 | 0.9 | ABA |
How can I handle this in a random coefficients model (as for example mixed X Visit Treatment || ID:, cov(unstruc)?
Thank you very much.
Jorge
Comment