Hi @limkahkheng! Welcome!
It sounds like you might be quoting from a problem set, textbook, or other class assignment. Unfortunately, posting verbatim text from an assignment is something we can't allow. Please read this: FAQ: Homework Policy
Here's the short version:
How to Ask a Homework Related Question:
- Do not ask verbatim copy-paste questions
- Explicitly mention the course you are taking.
- Try to make your question as close to a reproducible example (reprex) as you can. Preferably using the
reprex
package
Can you please edit your post to align better with these guidelines? If you just want to know whether you're specifying the model correctly, the most useful information is a list of the variables and the roles you want them to play in your model. The output of summary()
and str()
applied to your data frame could also be helpful (here's how to post code and console output here — screenshots are difficult to read!).
Determining whether you are interpreting the problem properly is honestly beyond the scope of this forum — only the person who wrote the problem can say for sure how they intended you to interpret it.