weight1 | R Documentation |
A function that optimizes weights for a given design using newton's method
weight1(opt, x, t, g_part, w0, infor_design, ...)
opt |
Integer. |
x |
Matrix, the design at current stage. |
t |
Integer. Number of levels of treatment. |
g_part |
Matrix. Contrast matrix. Its column numbers must match the row number of information matrix. |
w0 |
Numeric Vector. Initial weights. |
infor_design |
Function. A function for calculating information matrix. |
... |
other necessary control parameters |
A numeric vector of optimized weights.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.