Hello everyone,
I've been working on this for two days and am failed to produce the results. I really appreciate it if you can help me out. I am interested in estimating fixed effects relative to the means of reference group, e.g., teacher fixed effects on students' match score relative the the school mean. It's great that felsdvregdm, a user-written command, can produce such estimates. However, I got error message saying "variable __00000Y not found" by using my own data and a simple dataset I created for testing purpose.

I used Stata/SE 14.2 and I listed the dataset I tested below.

I tried the following syntax and got error message:"variable __00000Y not found"

felsdvregdm math_score, ivar(stu_id) jvar(teacher_id) reff(school) feff(teachfe_dm) peff(stufe_dm) feffse(teachse_dm) mover(mover) group(group) xb(xb) res(resid) mnum(mnum) pobs(pobs) onelevel

One caveat is I was not be able to install the command by typing "ssc install felsdvregdm". I typed "search for felsdvregdm" and then installed the package by following the links.

The reference for felsdvregdm is:
Centering and reference groups for estimates of fixed effects: Modifications to felsdvreg" by Kata Mihaly, The RAND Corporation, Daniel McCaffrey, The RAND Corporation, J.R. Lockwood, The RAND Corporation, Tim R. Sass, Florida State University


Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte(stu_id teacher_id math_score school)
 1 1 4 1
 1 1 3 1
 1 1 5 1
 1 1 3 1
 2 1 5 1
 2 1 3 1
 2 1 4 1
 2 1 5 1
 3 1 5 1
 3 1 2 1
 3 1 3 1
 3 1 4 1
 4 2 5 1
 4 2 3 1
 4 2 1 1
 4 2 3 1
 5 2 3 1
 5 2 2 1
 5 2 4 1
 5 2 5 1
 6 2 2 1
 6 2 3 1
 6 2 2 1
 6 2 4 1
 7 3 2 2
 7 3 1 2
 7 3 4 2
 7 3 2 2
 8 3 4 2
 8 3 2 2
 8 3 4 2
 8 3 2 2
 9 3 4 2
 9 3 2 2
 9 3 4 2
 9 3 3 2
10 4 4 2
10 4 5 2
10 4 4 2
10 4 3 2
11 4 5 2
11 4 4 2
11 4 4 2
11 4 3 2
12 4 2 2
12 4 5 2
12 4 3 2
12 4 3 2
13 4 4 2
13 4 2 2
13 4 3 2
13 4 4 2
14 4 5 2
14 4 3 2
14 4 5 2
end