lm_q2e_oneshot | R Documentation |
Use a single call to "lm" with nested coefficients per spectra and peptide. Effectively it will calculate separate coefficient for each spectra and peptide.
lm_q2e_oneshot(
peaks_df,
intensity = "norm_int",
weights = NULL,
intercept = FALSE
)
peaks_df |
Data.frame with peaks data and theoretical isotopic envelopes |
intensity |
Term used as the dependent variable. It could be the unscaled intensity or the normalized at the spectra and peptide level |
weights |
Column of weights in |
intercept |
Logical, whether to fit an intercept or not |
WARNING: this cannot handle too large data.frames. I will try to add biglm at some point. Otherwise data can be grouped by.
A data.frame with q2e estimates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.