I just came to the sad conclusion that I have not been maintaining my statistical skills enough the last years, and therefore I must kindly ask for help in this easy question:

How to find standard deviations from variable A for individuals in a group adjusted for effect of variable B?

I have a data-set with one variable "Name", one variable "Salary" and one variable "Seniority". I would like to compute standard deviation per individual to find out if they have their "rightful" salary compared to the rest of the group, but I also have to take into account that seniority (linear) is supposed to affect the salary.

All clues and hints will be highly appreciated!

How to find standard deviations from variable A for individuals in a group adjusted for effect of variable B?

I have a data-set with one variable "Name", one variable "Salary" and one variable "Seniority". I would like to compute standard deviation per individual to find out if they have their "rightful" salary compared to the rest of the group, but I also have to take into account that seniority (linear) is supposed to affect the salary.

All clues and hints will be highly appreciated!

Last edited: