Hi everyone, I'm going a bit crazy with the specification of a regression I need to do and I'd appreciate any advice on how to proceed.

I have a panel dataset of 500 individuals who make 5 binary decisions. I randomly allocated half of these individuals to make decisions in a different order (to control for ordering effects). For each individual I also have 4 variables that measure their personality on a Likert scale 1-10. I'd like to see if the ordering changes any of their binary decisions, and if their personality also matters.

My model is as follows:

*Define panel data by unique id*

encode id, gen(idno)

xtset idno

*FE Logit Regression"

xtlogit share i.treat_n i.group_no x1 x2 x3 x4, fe nolog

where:

"share" is the binary variable (0 or 1)

"treat_n" is the categorical variable, with values to 1 to 5, indicating the 5 scenarios where each individual either shares or not shares

"group_no" is the binary variable (0 or 1) that indicates if they belonged to the group that saw the decisions in a different order

x1 x2 x3 x4 are Likert scale values (1 to 10) based on self-reported preferences (e.g. willingness to take risks, willingness to share, etc.)

My problems are:

1) the variable "group_no" gets omitted, also if I run xtreg instead of xtlogit. How do I overcome this?

2) Is that the best way to include Likert scale variables?

3) Is there a completely different way than doing xtlogit, fe or re that I might be forgetting?

Thank you!

I have a panel dataset of 500 individuals who make 5 binary decisions. I randomly allocated half of these individuals to make decisions in a different order (to control for ordering effects). For each individual I also have 4 variables that measure their personality on a Likert scale 1-10. I'd like to see if the ordering changes any of their binary decisions, and if their personality also matters.

My model is as follows:

*Define panel data by unique id*

encode id, gen(idno)

xtset idno

*FE Logit Regression"

xtlogit share i.treat_n i.group_no x1 x2 x3 x4, fe nolog

where:

"share" is the binary variable (0 or 1)

"treat_n" is the categorical variable, with values to 1 to 5, indicating the 5 scenarios where each individual either shares or not shares

"group_no" is the binary variable (0 or 1) that indicates if they belonged to the group that saw the decisions in a different order

x1 x2 x3 x4 are Likert scale values (1 to 10) based on self-reported preferences (e.g. willingness to take risks, willingness to share, etc.)

My problems are:

1) the variable "group_no" gets omitted, also if I run xtreg instead of xtlogit. How do I overcome this?

2) Is that the best way to include Likert scale variables?

3) Is there a completely different way than doing xtlogit, fe or re that I might be forgetting?

Thank you!

## Comment