Akshat Dwivedi
  • About
Categories
All (12)
Advertising (3)
Analysis (1)
Bayesian (1)
Bootstrap (1)
Causal Inference (2)
Experimentation (2)
G-computation (1)
G-estimation (1)
GEE (2)
GLM (3)
Instrumental Variables (2)
Insurance (1)
Measurement (1)
Miscellaneous (3)
Multicollinearity (1)
Offset (1)
Python (1)
Quarto (1)
R (9)
Simulation (1)
Time-to-event (1)
Tweedie (2)

Sampling from the poor man’s posterior distribution of parameters from models fitted to claims data

Bayesian
Bootstrap
GLM
Insurance
R
Tweedie
This post is about fitting a handful of different models to a subset of a popular car-insurance claims data available online. Plausible future data values can be simulated…
Jan 5, 2025

Simulating data from a time-to-event experiment with non-proportional hazards, random censoring, and cure

Advertising
Experimentation
R
Simulation
Time-to-event
This post is about simulating data from a log-logistic accelerated failure time mixture cure model with censoring. It also visually compares the estimated cumulative…
Sep 22, 2024

Scrollable box for long math equations on mobile

Quarto
While writing new posts, I preview them on (Google) Chrome on my laptop before publishing. The three people who read my blog posts usually read them on mobile. So one fine…
Mar 5, 2024

Using an obscure causal inference method to estimate treatment effects with the help of another less obscure causal inference method

Advertising
Causal Inference
Experimentation
Instrumental Variables
G-estimation
G-computation
GEE
R
In a previous post, I used the ratio estimator and the method of instrumental variables (IV) to estimate the effect of showing an ad on sales from a fictitious ad campaign.
Feb 9, 2024

Setup and test Python by programming a spelling bee solver

Python
All the previous posts on this blog have been in R. But sometimes I want to program in another language – Python, Scala, etc. So in the process of setting up and testing…
Oct 8, 2023

How should the untreated in the treatment group from an experiment be analyzed?

Advertising
Causal Inference
Instrumental Variables
R
This (longer-than-expected) post compares intention-to-treat, per-protocol, as-treated, and instrumental variable analyses on a simulated dataset. Along the way, it goes off…
Sep 28, 2023

Specifying an offset in a Tweedie model with identity link

R
Tweedie
Offset
This post explores several things:
Jul 30, 2023

One reason why a (g)lm coefficient is NA

R
GLM
Multicollinearity
TL;DR: Use the alias function in R to check if you have nested factors (predictors) in your data
Mar 31, 2023

GEE on aggregated data?

R
GLM
GEE
TL;DR: The geepack R package doesn’t do what it doesn’t claim to do
Mar 20, 2023

Determining the volume of my (cocktail) jigger

Miscellaneous
Measurement
R
In the fall of 2022, I was gifted a cocktail mixing set for my birthday1 which included a cocktail jigger. A jigger is an essential tool for mixing cocktails as it makes it…
Jan 9, 2023

How Many Five-Star Ratings Do I Need?

Analysis
Miscellaneous
R
In the fall of 2021, a friend who runs her own business sent me this picture with the accompanying question:
Aug 16, 2022

Hello, World!

Miscellaneous
This first post is to check whether the features I want for this blog work as desired.
Aug 1, 2022
No matching items
 

akshat.blog © 2022-2025 Akshat Dwivedi. Built with Quarto and GitHub Pages. Read the license.

  • Report an issue