Hello, I am using mixed-effects logistic regression for panel data in STATA 15, and I was wondering if my commands are correct.

My DV is a binary variable, and each respondent was surveyed once a year for five years. So, each respondent has five repeated measures. In the data, the respondent identifier is the variable ID. I also have time-varying covariates IV1, IV2, and time-invariant covariates IV3 and IV4, and a time variable Year. I want to use a mixed-effects logistic regression as follows:

Code:
melogit DV IV1 IV2 IV3 IV4 Year || ID: Year, cov(un)
But, this is kind of like a growth curve model except for the binary DV. I was wondering if my command is correct, and what is the difference between a growth curve model and a mixed-effects logistic model for panel data. Thank you very much!