I am writing the results/discussion portion of a psychology research methods paper.
I am trying to include a table in which I am reporting the means, standard deviations, and correlations among all variables in the study. The variables are photos (categorical, IV#1), memory score (ratio, DV), neuroticism score average (interval, covariate), and virtual human emotion (categorical,IV#2).
In my script I have tried to use prop.table() with each variable in the parentheses: prop.table(data$photos, data$memory, etc). I am ending up with an error that says "unused arguments (data$humans, data$memory)" -- different arguments appear in the parentheses when I change the order.
First, I would like to know if this is the function that I want to get a table that expresses what I have stated above. Second, I would like to know, if this is the right function, how I go about running this without an error.