martinctc / rwa

Package for running Relative Weights Analysis in R
https://martinctc.github.io/rwa
12 stars 8 forks source link

Data file problem #3

Closed maipham123 closed 3 years ago

maipham123 commented 3 years ago

Hi,

May I ask: In the data file, did you put the correlation matrix in? Or did you put the mean-centered of each variable? I did not find any specification about the data file and would really appreciate your help. Thank you.

Mai

martinctc commented 3 years ago

Hi Mai, the data file to pass in would not require any processing before running rwa(). A correlation matrix is calculated within the function itself. There is an example in the documentation where you could run this with diamonds dataset from ggplot2, so you can see what the data could look like:

rwa(diamonds,"price",c("depth","carat"))

Does this help? Please let me know so I can try to improve the documentation to make this clearer.

maipham123 commented 3 years ago

Hi,

Thank you so much for the fast reply! I think it's a bit confusing whether the data file is a raw data or not (from your reference and the JavaScript link you provide at the end of the introduction page). Otherwise, I now understand that the dataset is a raw data file and the function will calculate the correlation matrix for me. Thank you so much for your fantastic work!

Mai

On Fri, Oct 30, 2020, 17:52 Martin Chan notifications@github.com wrote:

Hi Mai, the data file to pass in would not require any processing before running rwa(). A correlation matrix is calculated within the function itself. There is an example in the documentation where you could run this with diamonds dataset from ggplot2, so you can see what the data could look like:

rwa(diamonds,"price",c("depth","carat"))

Does this help? Please let me know so I can try to improve the documentation to make this clearer.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martinctc/rwa/issues/3#issuecomment-719455063, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARSGYHQB3G3YAZZJW3WQGRDSNKEFBANCNFSM4TEYQR4Q .