0
$\begingroup$

Let's say I have one variable that has a known metric (e.g., variable A has a mean of .7 and standard deviation of .3). How do I scale a second variable (variable B) to have the same mean and standard deviation?

I know how to make both variables have a mean of zero and standard deviation of one. (That's easy--translate them to z scores), but I can't think of how to center them around a particular value with a particular sd. Thanks!

$\endgroup$
4
  • 1
    $\begingroup$ 0.7 + 0.3 * (B - B_mean) / B_SD $\endgroup$
    – Nick Cox
    Commented Nov 13, 2013 at 17:36
  • 2
    $\begingroup$ Pleased that you got what you wanted, but I am not sure what long-term value this question has for the forum. $\endgroup$
    – Nick Cox
    Commented Nov 13, 2013 at 18:00
  • $\begingroup$ @dfife It is not so easy because under some circumstances it is better to use the geometric mean $\endgroup$
    – Flask
    Commented Nov 13, 2013 at 18:53
  • $\begingroup$ Also see this for example ... which has been marked as a duplicate of a different question (though I believe the one I link above is more like it) $\endgroup$
    – Glen_b
    Commented Nov 13, 2013 at 23:54

0