July 2021

Working with tree-based hierarchies using data.tree

July 30, 2021 | rstats-tips.net

Lately I tried to visualize an hierarchy with Tableau Desktop. The problem was that the hierarchy had a variable depth because it was tree-based. Each row had an id and a parent_id. Normally hierarchies in Tableau are defined by pulling some fields together, such as product category, product group ... [Read more...]

Is it worth the weight?

July 29, 2021 | Econometrics and Free Software

Intro Oh man, I did it again. Grab a coffee, this is going to be a long one. Weights got me confused. The justification for using weights seems simple enough; if you’re working with a sample in which one (or more) strata are over(under)-represented, you should compute ...
[Read more...]

Caching the results of functions of your R package

July 29, 2021 | Posts on R-hub blog

One principle of programming that’s often encountered is “DRY”, “Don’t Repeat Yourself”, that encourages e.g. the use of functions over duplicated (read: copy-pasted and slightly amended) code. You could also interpret it as don’t let the machine repeat its calculations if useless. How about for a ... [Read more...]

Getting predictions from an isotonic regression model

July 29, 2021 | kjytay

TLDR: Pass the output of the isoreg function to as.stepfun to make an isotonic regression model into a black box object that takes in uncalibrated predictions and outputs calibrated ones. Isotonic regression is a method for obtaining a monotonic fit … Continue reading →
[Read more...]

Webinar – R Adoption Series – Scaling R at GSK

July 29, 2021 | Jesse

Full video recording available here (58:52 mins) Summary: In this presentation, Andy Nicholls, Head of Data Science within GSK Biostatistics, provided an overview of GSK’s WARP environment for Biostatistics. The presentation described... The post Webinar – R Adoption Series – Scaling R at GSK appeared first on R Consortium.
[Read more...]

likelihood inference with no MLE

July 28, 2021 | xi'an

“In a regular full discrete exponential family, the MLE for the canonical parameter does not exist when the observed value of the canonical statistic lies on the boundary of its convex support.” Daniel Eck and Charlie Geyer just published an interesting and intriguing paper on running efficient inference for discrete ...
[Read more...]

Hasty Bug-fix Release of RSwitch v2

July 28, 2021 | hrbrmstr

Version 2 of RSwitch — the macOS menubar utility that enables fast and seamless switching between R versions on macOS and also provides notifications for new versions of RStudio Dailies has had a hasty update to deal with an error condition if/when the RStudio Dailies pages contain no links (they’re ...
[Read more...]
1 2 3 9

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)