Video thumbnail for How to Replicate / Copy / Clone a Variable in Stata | Clonevar

How to Replicate / Copy / Clone a Variable in Stata | Clonevar

Aug 5, 2023
We can use generate command to replicate or copy a variable in Stata but there are some drawbacks of generate command in this case. Generate works fine if we wish to generate a new variable but if want an exact copy of another variable then we need to use clonevar which not just copies the data but also the value label and variable labels. 00:00 Intro to video 0:30 Why clonevar is important 3:05 How to use clonevar Website: thedatahall.com As an Amazon Associate, I earn from qualifying purchases.
Jobs & Education