67 tuple(vector, array[]
int, array[]
int) sparse,
71 int add_intercept,
int sparse_design) {
73 vector[1 + num_elements(beta_sd)] ext_beta_sd = append_row(1.0, beta_sd);
75 vector[neffs] scaled_beta = beta .* (rdesign * ext_beta_sd);
79 result = csr_matrix_times_vector(
80 nobs, neffs, sparse.1, sparse.2, sparse.3, scaled_beta
83 result = fdesign * scaled_beta;
87 result = result + intercept[1];
91 return(rep_vector(intercept[1], nobs));
vector combine_effects(array[] real intercept, vector beta, int nobs, int neffs, matrix fdesign, tuple(vector, array[] int, array[] int) sparse, vector beta_sd, matrix rdesign, int add_intercept, int sparse_design)