I want to calculate panel descriptive statistics for my variables analogously to how Stata provides them using the "xtsum" function. I am able to compute almost everything (overall/within sd, mean, min, max) but I cannot seem to find a reliable source with the formula to compute the between sd. Anybody that knows the formula/has a reliable source?
So far I have used the formula from this thread Between/within standard deviations in R. But I'm unsure whether this formula is correct.