Displaying 2 results from an estimated 2 matches for "teacherid".
Did you mean:
teacher_id
2005 Oct 05
0
has_and_belongs_to_many on legacy DB
.... All is going
well (using set_table_name, set_primary_key, etc), but I can''t get my
many<=>many relationships to work.
My contrived example of the situation:
Student has_and_belongs_to_many Teachers. This is mapped via table
student2teacher where the foreign keys are studentId and teacherId. The
primary key in Student is studentId, and in Teacher is teacherId. However,
when I run my unit tests I am getting this error:
Mysql::Error: Unknown column ''j.student_id'' in ''where clause''
This is confusing, because I explicity specify that the association f...
2011 Jun 01
1
How to write random effect in MCMCglmm
...- 7 levels)
- ELL (num: 0, 1, - 2 levels)
- Disability (num: 0, 1, - 2levels)
- avgTransfers (num with missing values)
- sdTransfers (num with missing values)
- agec (num with missing values)
- PctELL (num)
- PctDisability (num)
- PctMale (num)
Random Effects:
- Schoolid, Teacherid, Studentid
library(MCMCglmm)
y <- MCMCglmm(factor(Level) ~ Type+factor(yr>=2006)+Male+Ethnicity+ELL+
avgTransfers+sdTransfers+agec+Disability+ELL*pctELL+Disability*pctDisability+
pctMale+factor(yr>=2008)*factor(Grade),
random=~Schoolid+Teacherid+Studentid,
f...