Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Week 2 08 Codebook And Export To Stata Part 4 4 3 Min 1

Hello, everyone, you're welcome to part four of this lecture on introduction to


EpiData. It is the last part of this lecture. Right in this part four, I want to teach you
two things very quickly. The first one is to show you how to generate a code book in
EpiData. And the second is to show you how to export the data you have captured
into stata for analysis. A codebook is basically a simple document that shows you
the data structure of your database. Okay. More importantly, as part of it, what it
does is to align the front end, is to align the front end with the back end. You
remember that what the data capturer sees is not necessarily what the data analyst
sees. So it's a code book that lists these two and aligns them.
Alright, so let's generate a code book and you see what I'm talking about. Alright, so
you go to document and you click on report structure, scroll down to code book.
Okay, and then you select the project that you want to generate code book for. I've
done that, it says you can generate it in the text file on HTML format or leave it in the
HTML in the text file format. And now a code book has been generated so very
quickly. Now, the date and a few other things are there. When you come to this list
overview, you can see that the very first question that we have is this one,
remember, the name the variable name, we didn't change it automatically. EpiData
gave it H1. And EpiData is also telling us the formats of these different questions that
it's a heading.
And now let's go to the main things, which are the questions. There is question one,
which says, are you receiving TB treatment? So these are the questions from the
questionnaire. This is the value of a code book, aligning the questions from the
questionnaire with the variable names. So in stata, or other software, this, these are
the variable names, you see. And if you wonder what the variable names mean, you
come to the questions and you see what they mean. And if you go down, all the
details are provided question by question in a code book. All right, I'll close this.
We've generated a code book from EpiData. It's simple and easy to do.
The next thing I want to do is show you how to export the data you've captured into
stata, click export, as you can imagine, and then of course, select the the project that
you want to export. And then this window, the export window pops up. And it says to
what format do you want to export it. It could be CSV or other format. But now we
are clicking stata. And where do you want to put it? By default, it goes into the same
folder where you pick that from, or you can specify the folder that you want it to go.
And you can you can tell, you can tell you can tell , you can also indicate whether
you want data to be exported as well. But that doesn't make a lot of sense. We want
to export the data. This says no data. We want to export the data. We're not going to
click on that. But here it also says you want to include deleted record because when
you capture data, you can delete records, you know, in the entry client. And those,
we don't want to include the records we deleted when we export. So we just leave it
in the default. And we click OK. All right, it says export succeeded.
All right, thank you very much. And it shows me, it gives me an export report. All
right, thank you very much. So I want to quickly see what has been exported. And it's
here and this is it. This is what's been exported. And you click on that. And yep, it
shows me that I have these variables described. And it shows me that I have four
records, four observations, and 10 variables. Alright, so that's how to export the data
you've captured from, from EpiData into stata. That brings us to the end of this
lecture on introduction to EpiData. And I hope you've learned a couple of things. And
you can now go and practice and even learn more than I have covered. Enjoy.

You might also like