e91bb3c5f2e812846d49b74f701cea1f132129c0,bambi/tests/test_built_models.py,,test_many_common_many_group_specific,#Any#,201
Before Change
// build model using add(append=True)
model1 = Model(crossed_data_missing, dropna=True)
model1.add("Y ~ 1")
model1.add("continuous")
model1.add("dummy")
model1.add("threecats")
model1.add(group_specific="0+threecats|subj")
model1.add(group_specific="1|item")
After Change
)
model1 = Model(crossed_data_missing, dropna=True)
model1.fit(
"Y ~ continuous + dummy + threecats + (threecats|subj) + (continuous|item) + (dummy|item) + (threecats|site)",
tune=10,
draws=10,
chains=2,
)
// check that the group specific effects design matrices have the same shape
X0 = pd.concat(
[
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: bambinos/bambi
Commit Name: e91bb3c5f2e812846d49b74f701cea1f132129c0
Time: 2021-02-23
Author: tomicapretto@gmail.com
File Name: bambi/tests/test_built_models.py
Class Name:
Method Name: test_many_common_many_group_specific
Project Name: bambinos/bambi
Commit Name: e91bb3c5f2e812846d49b74f701cea1f132129c0
Time: 2021-02-23
Author: tomicapretto@gmail.com
File Name: bambi/tests/test_built_models.py
Class Name:
Method Name: test_poisson_regression
Project Name: bambinos/bambi
Commit Name: e91bb3c5f2e812846d49b74f701cea1f132129c0
Time: 2021-02-23
Author: tomicapretto@gmail.com
File Name: bambi/tests/test_built_models.py
Class Name:
Method Name: test_cell_means_with_many_group_specific_effects