Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @pimentel,
This is the code to extend sleuth in prep for sleuth-ALR.
Here is a summary of the changes:
Transform both counts and TPMs independently
Process TPMs & counts similarly with
process_bootstraps
andsleuth_prep
process_bootstraps
andsleuth_prep
to process TPMs similar to how counts are processed (transform TPM values; createobs_tpm
andsigma_q_sq_tpm
)extra_bootstrap_summary
isTRUE
and only processes TPMs whenread_bootstrap_tpm
isTRUE
(may speed up processing if someone is just interested in one or the other)allow TPMs to modeled by
sleuth_fit
which_var
option tosleuth_fit
to specifyobs_counts
(default) orobs_tpm
; added to theprint
function forsleuth_fit
objects to print which variable was modeled (counts or TPMs).remaining to-dos:
extendDONEsleuth_live
to allow users to look at TPM or counts if both are modeled.right now, if users want to model both TPMs and counts on the same model, they have to be stored separately; I think this should remain the case, but wanted to check on this design decision.We decided users will be forced to model each separately.