JanaJarecki/cognitivemodels

check get_par("free") for a = b

Closed this issue · 0 comments

todo commented

If we have equality-constraints, with the RHS of the constraint being a parameter, that is free, should the contrained parameter on the LSH be counted as free or as fixed? Technically it is fixed, but it would need to be included in the free parameters in the model to be fitted (solnp)...


# @todo check get_par("free") for a = b
# @body: If we have equality-constraints, with the RHS of the constraint being a parameter, that is free, should the contrained parameter on the LSH be counted as free or as fixed? Technically it is fixed, but it would need to be included in the free parameters in the model to be fitted (solnp)...
expect_parnames_equal(fix = list(a="b"), c("a", "b", "c", "d"))
expect_parnames_equal(fix = list(a="b", b="c"), c("a", "b", "c", "d"))
expect_parnames_equal(fix = list(a="b", b="c", c="d"), c("a", "b", "c", "d"))
expect_parnames_equal(fix = list(a="b", b="c", c="d", d=0), NULL)


This issue was generated by todo based on a todo comment in 4030f5f.