weight2: Implementation of Newton's method, part 2.

View source: R/design.R

weight2R Documentation

Implementation of Newton's method, part 2.

Description

A function that removing boundary points after newton's method.

Usage

weight2(opt, x, t, g_part, w0, infor_design, ...)

Arguments

opt

Integer. opt=0 means D-optimal, opt=1 means A-optimal.

x

Matrix, a design returned by weight1.

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

Value

Matrix, an optimal design


OWEA documentation built on Sept. 18, 2022, 1:07 a.m.