-
Notifications
You must be signed in to change notification settings - Fork 6
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
include lower truncation for normal distrubution #57
base: main
Are you sure you want to change the base?
Conversation
Change log-normal onsets to also include lower truncate
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57 +/- ##
==========================================
- Coverage 72.82% 69.93% -2.90%
==========================================
Files 10 10
Lines 357 316 -41
==========================================
- Hits 260 221 -39
+ Misses 97 95 -2 ☔ View full report in Codecov by Sentry. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
hey! great idea!
|
Can do the first two. |
This tests both upper and lower truncation in one go. I think it's fine like this but could also be tested separately in addition.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@@ -137,15 +137,15 @@ end | |||
# The `LogNormalOnset` is based on a log-normal distribution and has four parameters: `μ`, `σ`, `offset` and `truncate_upper`. | |||
|
|||
# Example: | |||
onset_lognormal = LogNormalOnset(; μ = 3, σ = 0.25, offset = 0, truncate_upper = nothing); | |||
onset_lognormal = LogNormalOnset(; μ = 3, σ = 0.25, offset = 0, truncate_upper = nothing, truncate_lower = nothing); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
onset_lognormal = LogNormalOnset(; μ = 3, σ = 0.25, offset = 0, truncate_upper = nothing, truncate_lower = nothing); | |
onset_lognormal = LogNormalOnset(; | |
μ = 3, | |
σ = 0.25, | |
offset = 0, | |
truncate_upper = nothing, | |
truncate_lower = nothing, | |
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is for the docs only anyway I would omit
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Everything implemented now. I only mentioned the truncate lower in the docs because I didn't want to prolong the parameter plots even further. If you still want me to do that I can though. |
Lower truncation might be useful to simulate specific experiments where there was/ is an exclusion criterion, artificially changing the distribution.
E.g. in our Oddball experiment, we set a lower RT threshold, throwing out every trial below.