hello guys my name is Scott and actually in this video I will give you an introduction about Stata so first I will go to Stata whenever you open the Stata you will get into this kind of window so I will give you a brief overview what each window is telling us about so I think before going into explaining these videos I will first upload the data which there's so many data set that Stata provides so that users can play around with those data sets to get familiarized with Stata and you can practice their skills over those data sets so if you go to file there are some example data sets here so if you click them you can also click on the Stata manual data sets which are which comes up whenever you install Stata it will provide you some data sets so I will click on stat up 14 minimal data sets so once in this set of 14 manual data sets I will go into the base reference manuals and if you go here actually you like to use data set which is named as photo so actually I am interested in this data set use so close this window now I have this data set so this data set so for it so in the command window if you in order to upload this data set just to because this is a very famous data set instead up so you can just simply write sis use photo and you will get the save data set which I quoted from File menu so we have this data set now so now I will explain the each window so if you go towards the command window the this review window so review window will show all the commands that you have all your brawn so when I went into file menu and when I clicked into this quarter or DD so instead I have actually run a command in the backend end or and the command was then shown to me here and and review them also have keep the only the command syntax in this command in this section and after that if you guys remember that I told you where that you can also upload the same data set by writing simply a cyst use auto so I entered a command here because this is the result window and until the command here and this command also appears here then but if you want to rerun this command you can simply enter again so now you can see that we have I have because I have run this command to time in review tab in review in section we you can see that come on two times so it's a good window suppose if you have run several command and you want to go back to some previous commands so instead of writing your command being here because you can just simply go to review section and can recall that come on again and now if I come towards the right side so here here you will see that there is a variable window here so in the variable window we have variable names and then we also have we also have the labels so so small so because in Stata you got a add spaces in the variable name but you can add labels so make means so in label you can explain the label what actually that variable name is capturing so variable in May is capturing make and model prices price mpg is actually mileage and our EP 78 is repair record 1978 I will repeat it again that in Stata where when you have to declare a variable you got the add spaces in the variable name so if you want so therefore you therefore in order to explain the variable you need to add you something you need to add label adding a label is not essential but it's always better because maybe after 2 or 3 years when you come back to the data set so you can easily understand the variables and what a what kind of data they are capturing and now before we do the properties if I select randomly any variable in the variable window then the property this section will show us what is the kind of that variable or what is the properties of this variable so as you can see here in detail the variable name is me label is make and model the type is STI 18 means string variable and format also telling us that it's a string format and here they're telling us this variables belongs to this auto dd-dear and here it also telling us that the data what OD dot d ta actually dot d dia is a standard data format just like exit in axle when you save the file you the axle save the file as XLS or XLS X in the newer version in the same way when you save data in Stata it will be by default be sold as dot ETA but instead you can also import data sets in different other performers like XLS CSV and here it's showing us that the value in this data says there are 12 variables and the number of observations are 74 and how much memory is you taking etc and on which variable the data set is sorted so this data set is sorted by the foreign variable the foreign variable you can see is the last variable so this is the brief review about the windows that you see instead up no I I will good I will take you guys toward different tabs that you can see here so in data tab you can have different options for sorting actually mainly to manipulate data so I'm not going to go into detail at this part but I will in my later videos we will be using these tabs for in more detail then you can go to graphics you can draw two-way grass you bought rock there is a huge list of graphs that you can draw through stat up and then we have different statistics that you can do a huge list of statistics that you can do like some readable test linear models like linear regressions Noah and also like survival analysis panel that our survey data analysis these are the more common statistics that people use but there is a huge list like time series so which you can which user can use and it are really helpful in analyzing the data so and I will also like to add one thing about Stata that Stata provides both for most of the good things that you also you don't have to write commands you can just go to different tabs and then you can select different options and then stat I will automatically generate a command here and and they would execute that thing but you can also instead of going to each menu you can also simply and come here and write down the command because one thing also not to notice that there are things that are you can do through by clicking these options or by clicking these tabs but there are so many other commands for which there is no drop-down menus or menus like these therefore those you have to write now come on and another thing that I would like to say that is very very useful specially for the beginning in big business to get your get themselves introduced to like help sauce course you are going to draw draw supposed to be a graph but you don't know how to do it so you can just write down help in the command window and write down help to way so that I will directly take you to a house window where it will describe what's the syntax is what kind of flow what kind of options that sentence provide and a very very detailed detailed explanation of the command that you can use it how you can use and also it Stata also gives you examples especially in the end of this thing so here you can see that there are different examples they are giving in the help command window so again I will say that whenever you faced a suppose if you are using any command and you are getting an error so it's always recommended to write down help then command name and then stat I will take you towards the towards the window well it will explain the come on and how you have to use what are the different option each come on here and now I will tell you guys a few more important things like so because TASM as you writing commands here if as you become more and more experienced in Stata you will and it's always preferred to write in a separate script so I will go back again if you come here again there is a new data file I did do file editor actually do file is a script file where you can write down the script you can write down command so whenever you so whenever you have to do the analysis you don't need to rewrite all the commands here in this command window you can adjust can just open your do file and can just execute all the script in one go so it will save your all the work on your do file so this is a simple do file you can in the do file if you have to write a command you have to enter staring and then you suppose I have to write this is hard do file so this is our starting new file so I'm not going to write any command or suppose if I like to write a command which is m2 way so if I press ctrl all and then in order to execute these three lines and control D so you can see automatically instead I have taken me to this help window where it is telling us about the to be graphs so if you go back here you can see that Stata executed this to file and then printed told us that he have written down here the kondu file and and also wrote down help to him and after that another thing important thing to do is suppose which is not recommended there is a option which is the data editor instead up so if you pressed at a deter so now you can go into Stata editor and candidate things suppose if this is price and you thought this price is drawing you this price should be 4100 so you can just simply go and did it but as I said that it is not recommended to go directly into Stata like this we go in even if you want to do this it's better to keep the cohort of this edit in in your do file so suppose when I have made an edit the Stata said that he have replaced price is equal to 40 100 in one one means the line number one so so suppose if you want to do this did so if you go to come on window and go to page up if you press page up it will show you the last command that you have run so the last come on that a the Stata executed is replace price is equal to 400 won so it is always better that suppose if you take copy this come on you because I'm using sis use to data then I wrote out sis use Auto because I have to tell data Stata that cost Lord the sis use auto dataset and then replace price is equal to 40 109 one secondly I will also it's whenever you make a new file it's better to write down three so what clear do is that it it cleared everything from here in these windows so it will clear the data set and and once you clear you step then after that you can upload a new data set suppose now if I execute just this clear control all and then control D so you can see there is no data set here so now I can upload a new data set and press execute then you can see that we so we have data set here and have done the same thing they have replaced the price is equal to 40 109 one secondly I have shown you guys that if you have to edit data you can just simply here go into data editor and can do it is then there is an important tool which is browsing in order to just browse data browser will not allow you to make any changes through the data but you can simply go into the browser and can see how data looks like so once we are in the browser I will tell you guys one important thing here as you can see that there are three variables like in the red and in the blue I will tell you what's the difference between red and blue so actually instead at there are three and there are three kind of variables so one variable is numeric then string and then we have label that label integers which you can label so I will tell you what does it mean so suppose these data spare so variable like price mpg the rep 78 Headroom which are shown in black are numeric variables so the numeric variables can be integers can be in a long can be double so and all these numeric variable in Stata browser window will appear in black color whereas the red ones are the strings which contains alphabets and on strings it's logical that you can't do any mathematical operation because they are in strings but on the other hand once you go to form to this foreign mailing list which is peering in blue an important thing to note here is that these foreign is actually a numeric but it's labeled so if you if you come here I have selected this domestic but here the value is 0 actually you are we are labeling 0 as domestic but on the back end we have 0 and if you go down if I select foreign so the foreign is 1 even if I select foreign here one another for a note whether it will remain one so actually in foreign we have labeled it domestic and foreign we have done this thing because sometimes you we need to use variables like for L in in our regressions or in our different different other commands which require this foreign to the inner numeric not air spring so that's why we keep it a in a numeric node as a spring and we have labeled them as domestic and foreign to for our ease because once you get into data it's written down as 0 of 1 it will be for a new user to say that what does it mean by zero and what it does mean by one again we have two kinds of variables instead of on a spring and what other one is in other one is pneumatic the pneumatic a further divided into integers the long slot well probably we get into more details about these types in later videos so so as we have told you about the label suppose this variable label as foreign there is a come on like they're so damn means that tabulate or make a table foreign so once I will select this thing tab for an end enter it's showing me that okay in the data set we have total of 74 observations and after those four of the way 74 observation we have 52 domestic in 22 for but if I run the same command if I pressed B a job and then we press coma in after that and oh hell or labor so I am saying that now tabulate this above table but without labels as I just shown you guys that this foreign is having a label over them so no label so now I have the same table but with without labels and now since you it is domestic is 52 and one is 22 so so this is a very short overview about Stata how things looks like in Stata how you can use help command and a bit short brief overview of the of the help function and then the dual file so and thank you for watching the video