johnfergusonNUIG / graphPAF

Other
2 stars 2 forks source link

In joint_PSPAF.R updated do_sim() function to keep factor variables o… #1

Closed MauriceOConnell closed 2 years ago

MauriceOConnell commented 2 years ago

…utput as class factor. Also make change to error in code on lines 372 and line 1480 where number_rf_new was changed to j i.e. to read

current_mat[,mediator_col[index]] <- do_sim(colnum = pathspecific_col_list_orig[ perm_mat[i,j] ], current_mat = current_mat_riskfactor_refval, model = mediator_models[[index]], SN=TRUE)