Get the most informative subjects for the highly stratified response data by the D-optimility.
D_optimal(X, id, beta, nonZeroSet, M, rho, linkv, corstrv)
A data frame contains all the random samples which we will choose subject from.
The id for each subject in the X
The paramters that we estimate under the current samples
The set of the index of the non zero coefficient
A numeric matrix calculated by the getMH
function
A numeric number indicating the estimate of correlation coefficient
A specification for the model link function.
A character string specifying the correlation structure. The following are permitted: "independence", "exchangeable" and "ar1".
a index of the most informative subject
D_optimal uses the D-optimality criterion from the experimental design to choose the most informative subjects for the highly stratified response data.