Error In Statistic(Data, Original, ...) : Unused Argument (Original)

I am creating the results/discussion percent of a psychology research approaches paper.

You watching: Error in statistic(data, original, ...) : unused argument (original)

I am trying to encompass a table in which I am reporting the suggests, conventional deviations, and correlationships among all variables in the study. The variables are photos (categorical, IV#1), memory score (proportion, DV), neuroticism score average (interval, covariate), and also virtual humale emovement (categorical,IV#2).

In my manuscript I have tried to use prop.table() with each variable in the parentheses: prop.table(data$photos, data$memory, etc). I am ending up via an error that claims "unsupplied disagreements (data$people, data$memory)" -- various disagreements appear in the parentheses as soon as I change the order.

First, I would certainly choose to know if this is the feature that I want to get a table that expresses what I have actually stated over. Second, I would prefer to understand, if this is the appropriate attribute, how I go about running this without an error.

rensa May 3, 2018, 2:02am #2

Scannell_1! I haven"t provided prop.table myself, but going by the documentation it looks choose it only takes 2 arguments: one is the table you"re operating on, and the various other, margin, is a vector of all of the indices you desire to generate a margin on.

See more: " I Dreamed A Dream Piano Easy Piano) In F Major, I Dreamed A Dream

I can"t be certain without seeing the context of your code, yet it seems like you"re trying to provide each table column as a separate debate. Since prop.table only expects 2 debates, it ignores the others, fairly than saying, "Hey, I"m guessing these various other disagreements are probably meant to be for the margin as well." Trying combining them right into a vector with c(), like:

prop.table( information, c(data$photos, data$memory, data$humans, data$theotherone))Lemme recognize how you go!


1 Like
jcblum May 7, 2018, 12:52am #3

Assuming that photos, memory, and so on are variables (columns) in a data structure called data, then I"m afrhelp prop.table isn"t going to job-related via
rensa"s idea, either.

Here"s what prop.table does: you give it a table of counts and also tell it which margin(s) of the table you want to summarize over, then it converts the counts right into prosections. If you provide it a vector (a single list of values), it divides each worth by the amount of all the worths. If you incorporate a bunch of data framework columns right into a vector utilizing c(), then it will provide you something pretty nonsensical — all the numbers from the various columns in one lengthy list, divided by the amount of that list.

Aside: what I suppose by "table"...

When you view the term "table" in this context, it does not intend any type of old information presented in columns and rows — here, it particularly means the result of cross tabulation. So in the typical instance, you feed prop.table a matrix or the output from a cross tabulation feature (e.g., table, xtabs).


First, I would certainly favor to know if this is the attribute that I want to get a table that expresses what I have actually stated above.

It would assist a lot to see a sample of your data and also an example of the type of table you have in mind — however in the meantime, I"m not certain I check out just how prop.table fits right into your goals?

It sounds like you want to:

Calculate summary stats about your dependent variable (and probably likewise your covariate?)Fit a model? (I"m going off of "corconnections among all variables" here)Report all this information in tabular form

But I don"t know whether you"re trying to figure out just how to perform all those steps, or if you"ve already done actions 1 and 2, and also are just trying to find a means to carry out 3?

1 Like
Home Categories FAQ/Guidelines Terms of Service Privacy Policy

Powered by Discourse, ideal regarded via JavaScript enabled