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

transform should alert when creating NaN's; and plot should alert when using NaN's #3010

Open
gweinberg opened this issue Dec 7, 2022 · 0 comments

Comments

@gweinberg
Copy link

Problem

  1. Currently when using the tranform tool to make a transformation that creates NaN's (e.g., taking log of a variable that contains zeros), the tool doesn't flag this fact. [This can then, for instance, cause student confusion when attempting to make a plot with a regression line and the line doesn't show up, and it's not clear why.]

  2. Following (1), when attempting to make a scatterplot + regression line, with a variable containing NaN's, the line doesn't show up, but the tool doesn't flag the reason why.

Solution

  1. When using the transform tool to create a new variable that would contain NaN's (e.g., taking log of a variable containing zeros), when you click "create new variable," it should, for instance, pop up a new dialog, with something like, "The variable you are attempting to create will contain 5 undefined values; do you wish to continue? [Yes][No]."

  2. When using scatterplot+regression line with a variable containing NaN's, when it makes the plot, a notification should print somewhere near the plot (maybe below), with something like, "The regression line could not be computed since one or more of the variables had undefined values."

Alternatives

No response

Additional context

None.

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

No branches or pull requests

1 participant