A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lindeloev.github.io/mcp/reference/mcp_example.html below:

Get example models and data — mcp_example • mcp

Get example models and data

mcp_example(name, sample = FALSE)
Arguments name

Name of the example. One of:

sample

TRUE (run fit = mcp(model, data, ...)) or FALSE.

Value

List with

Examples
# \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)
# }

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4