home.social

#statsdon — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #statsdon, aggregated by home.social.

fetched live
  1. I caved and updated my #rstudio version
    aaaaand I've lost all my addins :( what are your favourite #r #rstudio addins? #coding #statsdon
    I had a word count one...and more but I forgot what 😭

  2. Is there a way to copy references from word into R markdown? I am updating some work I did a while back, but I wrote it in word, using Zotero for citations. Now I am using R to write it, and I'd rather not have to manually update each reference. #r #rstats #statsdon #coding

  3. I need to improve my coding. Everything I write is a Frankenstein of things that worked last year, & other people's genius. That's OK but it's V long & messy.

    Are there any blogs/classes/groups that review code, or where I can learn to write nicer code? #rstats #statsdon #WomenWhoCode

  4. Follow up ggplot question:
    I'm trying to understand why I need to specify color in the ggplot(aes) & again manually add it:

    df%>%
    ggplot(aes(x, y, colour=factor(z), shape=factor(z)) +
    geom_point()+
    scale_color_manual(values = my_col) +
    scale_shape_manual(
    values = c(15, 17, 18))

    If I don't put " ggplot(aes( colour=factor(z)" the manual colour doesn't work. If I don't add manual color, I can't specify the colours.

    #rstats #statsdon #dataviz #ggplot

  5. 📣 ggplot enthusiasts. Can someone help me to understand what the difference is between the aes() in the ggplot() function, and the aes() in the geom_line() function? 🙏
    e.g:
    ggplot(df, aes(x, y, colour = factor(colour))) +
    geom_line(aes(group = 1), size = 2) 📊
    #rstats #ggplot #statsdon #datavis

  6. #rstats question:

    If I have an imputed dataset of 5 lists, is there a way to find the average for a variable over all lists?

    E.g, what is the average age in the imputed dataset. At the moment I would just do mean(df[[1]]$age) for each 5, and manually average those. Seems long. #statsdon

  7. Slowly realising that the #Bayesian model I've built is really specific to my data, which means I decide what to report & how to report it. I keep looking for inspiration on reporting the results, but I need to do the thinking on what makes sense for the intended audience.

    When we are taught stats, its usually a 'prescription'. 'Compare two group means, do a t test, report the p value, df and test stat'. I'm scared of my model 😂 I want the prescription back!! #datascience #rstats #statsdon