Collin Edwards

192 Followers
210 Following
306 Posts
PhD in ecology and evolutionary biology. Mathematical and statistical ecologist, R programmer. Works at the interface of data and theory to explore population dynamics, species interactions, community assembly. Blacksmithing and martial arts enthusiast. He/Him.
Websiteevo-eco.org/
githubgithub.com/cbedwards
Google Scholarhttps://scholar.google.com/citations?user=SI50LP8AAAAJ
In my new position I'm frequently needing to compare different versions of the same excel file (the FRAM model uses excel for inputs and outputs; I frequently need to compare the inputs or outputs of different model runs). Does anyone know of a good non-browser tool for comparing excel files? Basically looking for a `diff` analog. I'm tempted to write an #Rstats package for this, but if it exists I'd rather not re-invent the wheel.

Next programmed event for @rladiesrome:

Title: Debugging in R
Speaker: Shannon Pileggi - @PipingHotData
When: Feb 20th 6.15pm CET
RSVP: https://www.meetup.com/rladies-rome/events/298710129/
#rladies #rstats #debugging #datascience

@fgazzelloni @RConsortium @RLadiesGlobal

Debugging in R, Tue, Feb 20, 2024, 6:15 PM | Meetup

Join [R-Ladies Rome](https://rladiesrome.quarto.pub/website/) for an empowering **Interactive Workshop**: **Debugging in R** exclusively designed for women in technology. I

Meetup

Tip of the Day!

Here is a reminder to everyone [rightly] pissed at the incredibly high cost of peer-reviewed journal articles behind paywalls:

If you send an email to the lead/corresponding author (whose contact is almost always provided in the article, or easily found with google) and ask for a copy of the article, the author will almost universally be delighted to send a copy [legally] to you, free.

We authors LOVE it when someone asks for a copy of our articles!!!

I'm excited to share a preprint of my work identifying statistical methods for modeling butterfly populations in #ecology and #conservation. I developed guidelines for fitting sparse transect monitoring data with Generalized Additive Models (GAMs), based in large part on a new #Rstats package I developed to simulate and fit realistic butterfly data.

https://biorxiv.org/cgi/content/short/2023.12.07.570644v1

@noamross @gavinsimpson

It feels like the `by = factor` term is redundant there, and should lead to issues, but I suspect that just means I'm not thinking about shrinkage and wiggliness appropriately. Certainly the code runs that way.

#rstats question for mgcv

If I want to test whether there is support for a smooth x factor effect, I can just include the smooth and the smooth x factor as separate terms to create nested models, right? As in

library(mgcv)
set.seed(0)
dat<-gamSim(5,n=200,scale=2)
##make explicit factor
dat$fac = factor(letters[dat$x0])

m = gam(y ~ s(x1) + fac + s(x1, by = fac), data = dat)
m1 = gam(y ~ s(x1) + fac, data = dat)
anova(m, m1, test = "F")

@noamross @gavinsimpson

Amazing discovery for #Rstudio + Windows users:
the tray utility PureText (free in the Microsoft store) makes it trivially easy to copy-paste text from the R console into a word document (or similar) without also copying the background colors of your console and the text of your console. #Rstats
pretty specific ask but: if you've worked on a video game project using Ink, and that project spanned multiple .ink files, i would love to ask you a few questions for RESEARCH of an EXPERIMENTAL NATURE, thank you!

#Rstats question:

I'm fitting some mixed models of the form

y ~ x + (1| category)

etc, where I have estimated uncertainty in y in the form of variance.

To carry out weighted regression (e.g. using lmer with `weights = SOMETHING`),
I want to weight by the inverse of the variance, right? Or is it the inverse of the standard deviation? These give pretty different answers!

Can't remember which package made it so easy to align multiple #ggplot panels in a complex figure in #rstats? It was the patchworks package. (Posted for the next time I have to make new multiplanel figures).