https://drive.google.com/folderview?id= ... sp=sharing
Before I post it to CRAN if some folks could test it for me I'd appreciate it.
In addition to some changes and bug fixes (see news(package="RMark") after installing), I added a feature in which real parameters can be fixed by adding a field called fix in the design data for a parameter. It has values of NA for free parameters and a real value for any fixed parameter. You can over-ride those values by using fixed=list(index=,value=) approach. You'll receive a message that you are doing so in case it is unintended. I'm hoping folks will use this approach in place of deleting design data which is still allowed but doesn't work with all parameters. This new approach will work for any parameter.
- Code: Select all
library(RMark)
data(dipper)
dp=process.data(dipper)
ddl=make.design.data(dp)
# assign p=1 for time=3; all others are NA and free to vary
ddl$p$fix=ifelse(ddl$p$time==3,1,NA)
head(ddl$p)
# fit model and show real parameters
summary(mark(dp,ddl),show.fixed=T)
# if you specify a fixed value in the model that overlaps with fixed values in the
# design data, it will override the value but you'll get a message that indices are
# duplicated. This is not a problem but was added so the user was aware if unintended.
summary(mark(dp,ddl,model.parameters=list(p=list(formula=~1,fixed=list(index=2,value=0)))),show.fixed=T)