Newton Raphson method to get optimal weights for given design points "X".
S_weight(X, T, e1, f, ...)
A numeric vector. K dose levels for a given design
A numeric vector. Model parameter values
Numeric. Threshold to stop the iteration.
A character. D_weight for D-optimal weight; c_weight for c-optimal weight; DD_weight for Ds-optimal weight
Default.