Hi,
I would like to create a variable "oprice" that would be "price" orthogonalized to price2. Is there an easy way to do that in Stata? Is the command "orthog" appropriate?
I would like to create a variable "oprice" that would be "price" orthogonalized to price2. Is there an easy way to do that in Stata? Is the command "orthog" appropriate?
Code:
sysuse auto, clear gen price2 = price + uniform()
Comment