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