Learn R Programming

optDesignSlopeInt (version 1.1.1)

experimental_results: Report the results of the experiment as well as confidence intervals.

Description

Report the results of the experiment as well as confidence intervals.

Usage

experimental_results(xs, ys, alpha = 0.05, B = 1000)

Value

A list object containing the estimate as well as confidence intervals and parameters.

Arguments

xs

The design

ys

The measurements of the response

alpha

1 - alpha is the confidence of the computed intervals. Default is 0.05.

B

For the confidence interval methods with an embedded bootstrap (or resampling), the number of resamples (defaults to 1000).

Author

Adam Kapelner

Examples

Run this code
n = 10 
xmin = 5 / 15
xmax = 19 / 1
xs = runif(n, xmin, xmax)
ys = 2 + 3 * xs + rnorm(n)
experimental_results_info = experimental_results(xs, ys)

Run the code above in your browser using DataLab