# \donttest{
ex = mcp_example("demo")
plot(ex$data) # Plot data
print(ex$simulated) # See true parameters used to simulate
print(ex$call) # See how the data was simulated
# Fit the model. Either...
fit = mcp(ex$model, ex$data)
plot(fit)
ex_with_fit = mcp_example("demo", sample = TRUE)
plot(ex_with_fit$fit)
# }
Run the code above in your browser using DataLab