Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72798

Replacing a value in one column with a value in another column if that value equals 15

$
0
0
Hello,

I am a beginner in Stata. I am trying to replace (or generate in a new column) a value in column 1 with the value for that same observation in another column.

I have tried the command replace var1 = var 2 if var 1 ==15 but without success.

Could someone help me?

Kind regards,
Sophie

Viewing all articles
Browse latest Browse all 72798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>