# NOT RUN {
# Drug dataset example with sex and treatment as the variables of interest
data(drugDat);
drug.elrm = elrm(formula=recovered/n~sex+treatment, interest=~treatment, r=4,
iter=2000, burnIn=0, dataset=drugDat);
# Summarize the results
summary(drug.elrm);
# Call update and extend the chain by 15000 iterations and set the burn-in
# period to 100 iterations
drug.elrm = update(drug.elrm, iter=3000, burnIn=100);
# Summarize the results
summary(drug.elrm);
# Now change the burn-in to 500
drug.elrm = update(drug.elrm, iter=0, burnIn=500);
# Summarize the results
summary(drug.elrm);
# }
Run the code above in your browser using DataLab