Advertisement
Guest User

Untitled

a guest
May 26th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #change class and rename variables
  2. res = as.data.frame(mediationres)
  3. names(res) <- as.character(quote(c(d, icc1, icc2, BG_a, BG_b, WG_a, WG_b, WG_c, BG_a_est, BG_a_SE, BG_b_est, BG_b_SE, WG_a_est, WG_a_SE, WG_b_est, WG_b_SE, WG_c_est, WG_c_SE, BG_a_est_gmc, BG_a_SE_gmc, BG_b_est_gmc, BG_b_SE_gmc, WG_a_est_gmc, WG_a_SE_gmc, WG_b_est_gmc, WG_b_SE_gmc, WG_c_est_gmc, WG_c_SE_gmc, BG_a_est_cwc, BG_a_SE_cwc, BG_b_est_cwc, BG_b_SE_cwc, WG_a_est_cwc, WG_a_SE_cwc, WG_b_est_cwc, WG_b_SE_cwc, WG_c_est_cwc, WG_c_SE_cwc)))[-1]
  4.  
  5. #save the data
  6. write.csv(file="MLM_sim_400.csv", x = res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement