Estimate variance explained with GAM brmsfit

I am interested in extracing something similar to “% Deviance explained” that the mgcv package is providing from a brms fit that uses thin plate splines ( s(var1, var2, k=n)). Since brms uses mgcv in the background, is there an easy way to access this?

related: Calculating variance explained by each predictor and clustering variable in brms

1 Like