Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message when group is not a factor #34

Open
lbau7 opened this issue Jan 22, 2020 · 2 comments
Open

Error message when group is not a factor #34

lbau7 opened this issue Jan 22, 2020 · 2 comments

Comments

@lbau7
Copy link
Collaborator

lbau7 commented Jan 22, 2020

When the group argument in des.print is numeric instead of a factor, then one gets the error message:
"Error in a.list[[k]] <- na.omit(a[which(group == levels(group)[k])]) :attempt to select less than one element in integerOneIndex"
Maybe we can have a more meaningful error message in this case.

@lbau7
Copy link
Collaborator Author

lbau7 commented Jun 10, 2020

Wollen wir das lösen indem wir eine Fehlermeldung ausgeben, falls group kein factor ist, oder wollen wir es umwandeln? Momentan sind zwei Abfragen eingebaut, für die Fälle, dass group numeric ist und Länge 1 hat, und für den Fall dass group ein character ist. In der Dokumentation steht aber, dass group ein factor mit mindestens zwei levels sein muss, was somit nicht stimmt.

Außerdem frage ich mich, was der Punkt "If not specified, a random grouping variable with 2 groups is used." für einen Sinn hat.

@jan-imbi
Copy link
Member

Umwandeln + Warning.
Bzgl. "If not specified, a random grouping variable with 2 groups is used." weiß ich auch nicht was das soll. Vielleicht wurde früher einfach irgendein faktor mit zwei leveln aus den Daten ausgewählt als group. Glaub das können wir streichen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants