I have performed a correlation test to a randomized set of variables.
replicate(1000, cor.test(sample(v1),sample(v2)))
I would like to obtain the p.values from each test in a vector for further analysis, how can I do so?
Thanks a lot!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you only need the p values of the replications you can just index it in the replications.
replicatewill simplify the results in an array (vector here) by default: