h_get_design_mat function

Helper Function to Create Logical Design Matrix from Factor Variable