Hi! Thank you for your attention.
I am currently working on a dataset involving 61 individuals who rated 301 pieces of content. This content was provided by either children with special educational needs (SEN) or those without, and it can be categorized into three groups: A, B, and C.
I aim to investigate whether the experience of interacting with SEN children affects the ratings of SEN versus non-SEN content and how it varies among the different categories. To achieve this, I have identified five variables:
ID: Represents the 61 individuals.
exp: Indicates whether the individual has experience (dummy variable).
sen: Shows whether the content is provided by SEN children (dummy variable).
type: Categorizes the content into three types (0, 1, 2).
rating scores: Ranges from 1 to 5.
Here is an example of the data:
I plan to use random effect model with the code:
The situation is that the value of within-group variables, including SEN and type, are repeated across several observations within each group (I don't know whether it's the correct way to describe the questions). For instance, among the 301 observations for ID 2025001, the sen variable may be 0 for 100 instances and 1 for 201 instances. Similarly, the type variable could be 0 for 50 instances, 1 for 150 instances, and 2 for 101 instances. Is this situation appropriate for a random effects model, or should I consider calculating some average scores instead?
Thank you!
I am currently working on a dataset involving 61 individuals who rated 301 pieces of content. This content was provided by either children with special educational needs (SEN) or those without, and it can be categorized into three groups: A, B, and C.
I aim to investigate whether the experience of interacting with SEN children affects the ratings of SEN versus non-SEN content and how it varies among the different categories. To achieve this, I have identified five variables:
ID: Represents the 61 individuals.
exp: Indicates whether the individual has experience (dummy variable).
sen: Shows whether the content is provided by SEN children (dummy variable).
type: Categorizes the content into three types (0, 1, 2).
rating scores: Ranges from 1 to 5.
Here is an example of the data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long id byte(exp ratingscore sen type) 2025071 0 4 0 0 2025070 0 1 0 0 2025069 0 1 0 0 2025068 1 1 0 0 2025067 1 2 0 0 2025066 0 1 0 0 2025065 1 1 0 0 2025063 0 2 0 0 2025062 0 1 0 0 2025061 1 1 0 0 2025060 1 1 0 0 2025059 0 2 0 0 2025058 0 1 0 0 2025057 0 1 0 0 2025056 0 1 0 0 2025055 1 1 0 0 2025054 1 1 0 0 2025053 0 2 0 0 2025052 1 2 0 0 2025051 1 1 0 0 2025050 0 1 0 0 2025049 0 1 0 0 2025048 0 1 0 0 2025047 1 1 0 0 2025045 0 1 0 0 2025044 0 5 0 0 2025043 1 1 0 0 2025042 1 1 0 0 2025041 0 2 0 0 2025039 1 1 0 0 2025038 0 4 0 0 2025036 1 1 0 0 2025034 1 1 0 0 2025033 0 1 0 0 2025030 0 1 0 0 2025029 0 1 0 0 2025027 0 1 0 0 2025026 0 1 0 0 2025025 1 1 0 0 2025024 0 1 0 0 2025023 0 2 0 0 2025022 0 1 0 0 2025021 0 1 0 0 2025020 1 1 0 0 2025019 1 1 0 0 2025018 1 1 0 0 2025017 0 1 0 0 2025016 1 1 0 0 2025015 1 1 0 0 2025014 0 1 0 0 2025012 1 1 0 0 2025011 0 3 0 0 2025010 0 1 0 0 2025009 0 1 0 0 2025008 1 5 0 0 2025007 1 1 0 0 2025005 0 1 0 0 2025004 0 1 0 0 2025003 0 1 0 0 2025002 0 1 0 0 2025001 0 1 0 0 2025071 0 2 0 0 2025070 0 5 0 0 2025069 0 4 0 0 2025068 1 5 0 0 2025067 1 2 0 0 2025066 0 5 0 0 2025065 1 5 0 0 2025063 0 4 0 0 2025062 0 3 0 0 2025061 1 3 0 0 2025060 1 1 0 0 2025059 0 4 0 0 2025058 0 3 0 0 2025057 0 3 0 0 2025056 0 2 0 0 2025055 1 5 0 0 2025054 1 4 0 0 2025053 0 4 0 0 2025052 1 3 0 0 2025051 1 4 0 0 2025050 0 3 0 0 2025049 0 4 0 0 2025048 0 2 0 0 2025047 1 3 0 0 2025045 0 3 0 0 2025044 0 4 0 0 2025043 1 3 0 0 2025042 1 1 0 0 2025041 0 2 0 0 2025039 1 1 0 0 2025038 0 3 0 0 2025036 1 5 0 0 2025034 1 5 0 0 2025033 0 4 0 0 2025030 0 2 0 0 2025029 0 5 0 0 2025027 0 3 0 0 2025026 0 3 0 0 2025025 1 4 0 0 end
Code:
xtreg ratingscore i.exp##i.sen##i.type, i(id) re vce(robust) margins exp#sen#type margins sen#type, dydx(exp)
Thank you!

Comment