360Studies

Your Destination for Career Excellence in Bioscience, Statistics, and Data Science

stata commands with examples

how-can-you-recode-a-variable-in-stata

How can you recode a variable in Stata

Before starting this exercise, you should have the “Digital.dta” file. (Download link is given below) Click here to download – “Digital.dta” Importing the “Digital.dta” file. set maxvar 10000 use “/Users/pankajchowdhury/Downloads/Digital.dta” I have the file located at “/Users/pankajchowdhury/Downloads/Digital.dta”. Feel free to modify the file path according to your needs. Code 1: numlabel,add Explanation :  In Stata, […]

How can you recode a variable in Stata Read More »

how-can-you-generate-a-variable-in-stata

How can you generate a variable in Stata

Before starting this exercise, you should have the “Digital.dta” file. (Download link is given below) Click here to download – “Digital.dta” Importing the “Digital.dta” file. set maxvar 10000 use “/Users/pankajchowdhury/Downloads/Digital.dta” I have the file located at “/Users/pankajchowdhury/Downloads/Digital.dta”. Feel free to modify the file path according to your needs. Code 1.1: codebook v730 ta v730 Result

How can you generate a variable in Stata Read More »

rename-a-variable-in-stata

Rename a variable in Stata

Before starting this exercise, you should have the “Digital.dta” file. (Download link is given below) Click here to download – “Digital.dta” Importing the “Digital.dta” file. set maxvar 10000 use “/Users/pankajchowdhury/Downloads/Digital.dta” I have the file located at “/Users/pankajchowdhury/Downloads/Digital.dta”. Feel free to modify the file path according to your needs. Result : Code 1 :  codebook v103

Rename a variable in Stata Read More »

Scroll to Top