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

Need to consider min/max values in functions #133

Open
StaceyFisher opened this issue Oct 23, 2024 · 2 comments
Open

Need to consider min/max values in functions #133

StaceyFisher opened this issue Oct 23, 2024 · 2 comments

Comments

@StaceyFisher
Copy link

Derived variables do not consider out of range - for example BMI can output a negative value, or value outside of max/min

@StaceyFisher
Copy link
Author

Consider having default min/max values in the function, which can be overridden by min/max in the variable_details sheet

@DougManuel
Copy link
Contributor

@StaceyFisher @caitlink12 and I wondered about using recStart and recEnd to identify out-of-range and other errors in derived variables.

For BMI, if the allowable range is 18 to 45, then recStart = [18, 45], recEnd = copy. Else NA(a).

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