Sorry I'm new to the forum, although I have read many posts, I was not able to find the solution to my problem. I am pretty sure it's an easy one.
I have a dataset with unique ID but multiple observations (Left and Right side of the same person).
I want to run logistic on variables accounting on the results of the fellow side.
For example, the probability that the Left side will develop the same outcome as the Right side, depending on X and Y variables.
Code:
clear input int ID byte Side float Outcome 1 1 0 2 1 0 3 1 1 4 1 0 5 2 0 6 1 0 7 2 0 8 2 0 9 1 0 9 2 1 10 1 0 11 1 0 12 1 0 13 1 0 14 2 0 end
Sorry if this is not the correct way to post or ask a question, please let me know how to improve.
Regards,
0 Response to Performing regression analysis by ID
Post a Comment