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

Should there be an discrete (integer) type for variables? #177

Open
evertrol opened this issue Sep 26, 2018 · 0 comments
Open

Should there be an discrete (integer) type for variables? #177

evertrol opened this issue Sep 26, 2018 · 0 comments

Comments

@evertrol
Copy link

One can configure variables to be categorial or continuous. For a variable that only takes integer values, either option is debatable.

Using discrete, integer values may change the representation in graphs (axes, for example).
It could also have the potential to change results of statistics such as average and stdandard deviation, by using integer division.
(I'm aware JavaScript/EcmaScript/TypeScript don't actually use integers, and even if there is a library doing this, it is, again, debatable whether this is wanted.)

The main reason for putting this here as a possible option, came out of playing with the Titanic dataset: it feels more natural to have age, and especially familiy size, as a discrete, integer type. (Perhaps also passenger class, which is presented as a floating point type, but should actually be a categorical type.)

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

1 participant