i'm new to R and I'm sorry if this question is already answered. This is an example of my dataset:
idnumber SIC(1-digit) Year Ebit
198 A 2019 2344
196 A 2019 6383
374 A 2019 5628
281 A 2019 2672
274 A 2018 2792
196 A 2018 3802
374 A 2018 3892
468 B 2019 6372
389 B 2019 3829
493 C 2019 2718
928 C 2019 2628
278 C 2019 3672
I want to compute the standard deviation for "Ebit" by the industrial sector "SIC(1-digit)". In this way I would like to find a volatility measure of operating revenue "Ebit" by industry.
Thanks in advance, for your kind answer..