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 FilterUpwards = TRUE result in a warning in FilterAcoustic() and FilterStoxAcoustic()? #336

Open
arnejohannesholmin opened this issue Aug 23, 2023 · 2 comments
Assignees

Comments

@arnejohannesholmin
Copy link
Contributor

Using FilterUpwards = TRUE for acoustic data is dangerous, as it removes zeros which result in over-estimation of means. For filtering biotic data FilterUpwards = TRUE makes sense when excluding experimental hauls etc, and for acoustic-trawl projects one needs to keep only hauls with the target species.

@arnejohannesholmin arnejohannesholmin self-assigned this Aug 23, 2023
@edvinf
Copy link
Contributor

edvinf commented Aug 27, 2023

The same applies in general to biotic data. The typically have the same registration convetion (absence of record of species indicate zero). If downstream analysis depends on missing values being interpreted as zeroes FilterUpwards can lead to errors in estimation. I do not think we need to treat FilterAcoustic differently from the other filters.

I am torn on whether it is good to burden correct usage with these warnings. I think it is sufficient to clearly describe the issue in the documentation.

An alternative can be to implement some data visualization. For instance a histogram of transect SAs.

@edvinf
Copy link
Contributor

edvinf commented Aug 27, 2023

Possibly, data sets with no zeros at all are rather uncommon. In that case we could perhaps consider implement warnings in the function that calculates means. So that a warning is issued whenever it encounters an input with no zeroes at all.

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