Skip to content

Regarding the order of arguments in the expand.grid function. #1

@kurokida

Description

@kurokida

Dear @lkumle ,

I truly appreciate your paper and GitHub code—they have greatly contributed to my research. Thank you sincerely.

I have a quick question for clarification.
In the following line of code:

artificial_data <- expand.grid(Subject = (1:20), Word = (1:100))

Shouldn't the order of Subject and Word be reversed?

In fact, in your paper, the following line is written (and I think this is correct):

artificial_data <- expand.grid(Word = (1:100), Subject = (1:20))

because the following rep should be applied to Subject, not to Word.

artificial_data["Frequency"] <- rep(frequency_ratings, 20)

However, in the GitHub code and in Scenario 3, Subject appears first in the argument list.

I mentioned earlier that the code in your paper appears to be correct. However, there seems to be something puzzling in Figure 5. For the same Word = 1, the Frequency values vary. Shouldn't the Frequency be fixed for each individual word?

I apologize if I’m misunderstanding something.

Best regards,
Daiichiro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions