View source: R/initialization.R
initialize | R Documentation |
Constructs data frame with these fields:
unit: ID for unit
n: previous reference count values (measure of exposure), must at least be 1
y: previous count values of interest
n_new: new reference count values (measure of exposure), must at least be 1
y_new: new count values of interest
true_theta: true value of theta (if known)
theta_nopool: no-pooling estimate of theta
theta_complpool: complete-pooling estimate of theta
theta_partpool: partial-pooling estimate of theta
ucl_true_theta: UCL based on n_new and true value of theta (if known)
ucl_nopool: UCL based on n_new and no-pooling estimate of theta
ucl_complpool: UCL based on n_new and complete-pooling estimate of theta
ucl_partpool: UCL based on n_new and partial-pooling estimate of theta
fe_true_theta: factor f, with observed y_new exceeding true-theta UCL by f * sd(y_new), given n_new and true value of theta (if known)
fe_nopool: factor f, with observed y_new exceeding no-pooling UCL by f * sd(y_new), given n_new and no-pooling estimate of theta
fe_complpool: factor f, with observed y_new exceeding complete-pooling UCL by f * sd(y_new), given n_new and complete-pooling estimate of theta
fe_partpool: factor f, with observed y_new exceeding partial-pooling UCL by f * sd(y_new), given n_new and partial-pooling estimate of theta
Vectors must be of equal length, with length >= 3. unit, n, y, n_new, y_new, and true_theta (if known) are initialized using the corresponding parameters. The other fields (and true_theta, if not known) are initialized with NA.
initialize(unit, n, y, n_new, y_new, true_theta = NULL)
unit |
ID for unit |
n |
Previous reference count values (measure of exposure), must at least be 1 |
y |
Previous count values of interest |
n_new |
New reference count values (measure of exposure), must at least be 1 |
y_new |
New count values of interest |
true_theta |
True value of theta (if known; optional) |
Initialized data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.