-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adding lispmds-style merging to mergeMaps function #148
Comments
In light of further discussion, the default behaviour will be merging all titres (no exclusions). There will be an option to have a sample SD limit when merging, with a default of 1.5. There will the options for a user defined function, plus an option for lispmds-like merging to allow backwards compatibility. I've modified the
I'm don't think
I don't know whether you want a variable sd_limit with lispmds merging, I can add more tests if so. Otherwise, I think there should be a warning if the user sets sd_limit and merge_function. I can't write a test for user defined function because I still haven't got my head around what it would look like. |
How about this for the tests? Testing the 3 options we will have, with "conservative" being the default:
Am not sure what to do with the > values in the "lispmds" merge option though? |
A couple of thoughts
I think for lisp, the > should be converted to numeric because that's the most likely pre-processing I would do with lisp.
|
Thanks, for the last 2 cases we used to replace with |
I don't remember the discussion. I thought Racmacs converted all to numeric took the GMT if SD<1 (that's what I put in the summary document so I'll need to correct it). lispmds would have pre-processed the > to numeric and so would treat it as a case of < & numerics. I think either is fine because practically speaking for flu it's likely to be <10 and >1280 so the SD limit would make it * anyway. |
In the current version Racmacs has a special rule to set any mix of < and > to *, which mirrors what acmacs did. We agreed the default sd would be NA so without that rule <10 and >1280 would become <2560 for the new default "conservative" method and around 113 for the "likelihood" method. I suggest we keep the old Racmacs / acmacs rule and they become * with a warning. |
I agree to with merging < & > to *. I can't remember what Derek said. <10 and >1280 would actually merge to <5120. |
ok, and yes true re <5120 |
I just pushed version 1.2.0 to shwilks/Racmacs which implements these merge changes, although no merge messages or warnings about it yet. |
Thanks! |
Racmacs and lispmds have different merging criteria at present. When there's a mix of numeric and < titres, Racmacs converts these to numeric and takes the GMT whereas lispmds converts them all to < and takes the maximum. Additionally Racmacs uses the sample SD and lispmds uses the population SD. Lispmds does not support > titres, these are handled using a preprocessing step that converts them to numeric or *.
Proposal (using the population SD)
I looked in the file test-merging.R and these are my proposed changes (# is the lines I've edited, ## is new lines):
And changing the sd limit function to allow a 4 fold (bottom two are the new tests)
The text was updated successfully, but these errors were encountered: