Using Stata to Inspect a Dataset

  Рет қаралды 19,934

Alan Neustadtl

Alan Neustadtl

Күн бұрын

Пікірлер: 25
@gideonejim4857
@gideonejim4857 2 жыл бұрын
Thanks, this is very knowledgeable… I’m actually facing some crisis analyzing datasets with STATA, would really appreciate if any help could be granted
@Basnet_Pratap
@Basnet_Pratap 6 жыл бұрын
If someone is looking for videos to learn basics ,it is the best for beginners
@svkn6785
@svkn6785 6 жыл бұрын
Alan thanks. Your videos are very helpful. But what if I want to use the numeric label instead of variable label? Simply because my variable names are too long and I need to recode them anyways.
@smilex3
@smilex3 6 жыл бұрын
Sunga, I don't understand your question. variable labels and value labels are two very different things in Stata and you seem to be referring to them as if they are the same. In the command window type "help label" to read about the difference. That might help you formulate your question. Also, if you can demonstrate your problem using a commonly available Stata dataset (e.g. auto.dta), it would be easier to help you. Sincerely, Alan
@svkn6785
@svkn6785 6 жыл бұрын
My apologies for the delayed reply Alan. I was referring to the category labels. I understand stata assigns a numeric id that you can view if you go to the data editor and click on the category name. I figured out that i can get stata to use this numeric category rather than the name by using "numlabel add command".
@smilex3
@smilex3 6 жыл бұрын
I think you may be confused by the difference between the values of numeric variables and any attached value labels. Maybe you will find the following example helpful: clear * /* Make a small dataset to play with */ input byte marital 1 2 3 4 5 end /* Show variable characteristics without value labels */ list, clean tab marital /* Add variable labels */ label define marlabel 1 "married" 2 "widowed" 3 "separated" 4 "divorced" 5 "never married" label values marital marlabel /* Show variable characteristics with value labels */ list, clean tab marital tab marital, nolabel /* Use -numlabel- to add a numeric prefix to the label */ numlabel marlabel, add tab marital tab marital, nolabel
@svkn6785
@svkn6785 6 жыл бұрын
Yes this is what I was talking about. This is very helpful thank you Alan.
@davidadu-poku378
@davidadu-poku378 8 жыл бұрын
started following. how can i get access to your data used? Thanks.
@smilex3
@smilex3 8 жыл бұрын
Mostly, I use the General Social Survey for examples which can be downloaded from gss.norc.org/
@aliamirbukhari
@aliamirbukhari 4 жыл бұрын
really helpful but i just want know why we need to change the directory
@smilex3
@smilex3 4 жыл бұрын
Hi Ali, When you start the program, Stata has a default directory where it expects to find all of your data and program files. Also, this will be the location that Stata writes files like when you save a data or program file. On a Windows computer, it might be something like "C:\Users\Stata\documents". As long as you always keep all of your Stata files from every project in this directory Stata should be able to use those files without you changing the directory. Eventually, this will probably lead to problems where you are confused by all the files you have and you would have difficulty finding specific files for specific projects. So, most people organize their Stata files in different directories or folders. You might have a folder for a class you are taking, and a folder for your dissertation, and a folder for a research project for publication. I have separate folders for every topic I teach in my statistics classes. Using a well-thought our directory or folder structure adds organization to the messiness of managing hundreds of files. For example, files might be organized as follows: "C:\Users\Stata\documents\class" "C:\Users\Stata\documents\dissertation" "C:\Users\Stata\documents\publication1" . . . etc. So, if you keep your files in any directory other then the default Stata directory, Stata will be unable to find your files until you change the default directory to point Stata to the place where those files are stored. The first Stata command in just about all of my programs is the command to change the default directory to point to that program's required files.
@uberjam7307
@uberjam7307 7 жыл бұрын
Thank you so much for making these videos!
@housnialisuldanfarid8190
@housnialisuldanfarid8190 6 жыл бұрын
Thanks Alan for your support and other freinds in this vedios so that i want to analysis with data so any help vedeos
@vukanpj
@vukanpj 7 жыл бұрын
really useful! thank you
@smilex3
@smilex3 7 жыл бұрын
Thank you!
@nicoletadicusar210
@nicoletadicusar210 7 жыл бұрын
Thank you a lot. Very useful :)
@smilex3
@smilex3 7 жыл бұрын
I'm glad you found the video helpful.
@bongumusakhoza3863
@bongumusakhoza3863 6 жыл бұрын
9:39 Understanding stata syntax from help file (example)
@cobyasante2458
@cobyasante2458 9 жыл бұрын
Thanks...very helpful
@smilex3
@smilex3 9 жыл бұрын
coby asante Thank you for your kind words. I am glad you fond this video useful!
@saimon54
@saimon54 7 жыл бұрын
Can i Get the Data File
@smilex3
@smilex3 7 жыл бұрын
If you are affiliated with a college or university with access to the ICPSR archive you can get the data at www.icpsr.umich.edu/icpsrweb/
@DM1986198619861986
@DM1986198619861986 6 жыл бұрын
thank you so much
@tesfahun_taddege
@tesfahun_taddege 7 жыл бұрын
Very interesting
@bongumusakhoza3863
@bongumusakhoza3863 6 жыл бұрын
18:40 'summarize' command results
Basic Regression Commands in Stata
24:58
Alan Neustadtl
Рет қаралды 48 М.
Creating Additive Indices Using Stata
15:20
Alan Neustadtl
Рет қаралды 23 М.
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,6 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 63 МЛН
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 41 МЛН
Stata Command Modifiers--if, in, and by/bysort
16:00
Alan Neustadtl
Рет қаралды 56 М.
Cleaning Data in Stata
22:42
Alan Neustadtl
Рет қаралды 99 М.
Creating New Variables Using Stata
31:24
Alan Neustadtl
Рет қаралды 55 М.
Using local macros in Stata
28:37
Alan Neustadtl
Рет қаралды 37 М.
Introduction to Stata - Thinking like Stata
14:39
UCSF GSI
Рет қаралды 52 М.
Cross-tabulations in Stata®
8:56
StataCorp LLC
Рет қаралды 255 М.
Aggregating Data by Subgroups in STATA
7:16
David Braudt
Рет қаралды 67 М.
Dealing with Duplicate Observations in STATA
14:44
David Braudt
Рет қаралды 29 М.
What's it like-Getting started in Stata 15
17:15
StataCorp LLC
Рет қаралды 186 М.
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,6 МЛН