Hi, Aroob.
The message missing observed variables in dataset: diclima dirins tais emotions says that the dataframe does not have any column with the same name as the variables diclima dirins tais emotions. Check if there is any misspelling.
Best,
Yago
Dear Aroob,
As Yago mentioned, lavaan probably expects variables to be defined at each level at which you want to use them.
For example, if you want to look at motivation from both the within and between perspectives, then you might have to define it at both levels. For example:
level: 1
amotivation_within =~ m_1 + m_2 + m_3
level: 2
amotivation_between =~ m_1 + m_2 + m_3
Check out the official lavaan tutorial for a reproducible example:
https://lavaan.ugent.be/tutorial/multilevel.html
Best,
Lukasz