juliasilge.com icon indicating copy to clipboard operation
juliasilge.com copied to clipboard

Estimate change in #TidyTuesday CEO departures with bootstrap resampling | Julia Silge

Open utterances-bot opened this issue 3 years ago • 6 comments

Estimate change in #TidyTuesday CEO departures with bootstrap resampling | Julia Silge

Are more CEO departures involuntary now than in the past? We can use tidymodels' bootstrap resampling and generalized linear models to understand change over time.

https://juliasilge.com/blog/ceo-departures/

utterances-bot avatar Apr 30 '21 05:04 utterances-bot

Brilliant video, explains bootstrapping very clearly, thankyou

matthh9797forecast avatar Apr 30 '21 05:04 matthh9797forecast

Julia! Tidymodels needs a cheat sheet on Rstudio !

mwilson19 avatar May 03 '21 14:05 mwilson19

@juliasilge Hi Julia, lets say we gonna use Linear regression model instead of Logis model for this case, after using bootstrap method to find a best model, do we need to care about testing error term for this model? (like heteroskedasticity, autocorelation...)

conlelevn avatar Jun 21 '22 02:06 conlelevn

BTW: its interesting that, in EDA we have seen the trend of Number of CEO departures of "other" was decreasing, hence I expect there is a negative relationship between this Number and fyear but some how the coefficient told us the other way around.

conlelevn avatar Jun 21 '22 02:06 conlelevn

@conlelevn One of the reasons that people use bootstrap resampling to measure things (like the slope, etc) is that it is more robust, meaning that, for example, the assumptions of OLS breaking down somewhat for your data typically don't have much impact. There's lots of papers exploring how/when this is true, if you are interested in learning more!

juliasilge avatar Jun 21 '22 13:06 juliasilge

If anybody is looking for the magic to match the order of the legend with the lines in the plot ... just add this before the ggplot() call:

mutate(involuntary = fct_reorder2(involuntary, fyear, n)) %>%

Neal Grantham has a lovely explanation of fct_reorder2() which you can find here: https://www.nsgrantham.com/reorder-legend-ggplot2

RaymondBalise avatar Jan 09 '23 12:01 RaymondBalise