Stata Basics Flashcards

1
Q

How to import excel spreadsheet in stata

A

File, import, excel spreadsheet, then click import first row as variable name (as first row of workshop 1 has all the variables we use e.g consumption (dependent) , income etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to analyse data

A

//analyse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to get summary of statistics on variables e.g use consumption and income

A

Type
Sum consumption income

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to see how 2 variables are correlated

A

Type
Pwcorr consumption income (or 2 variables you look for)

Remember it is important to choose import first row as variable name, so the programme has identified the variables in order to analyse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to do a graph plot of 2 variables (use consumption and income)

A

Type
Twoway (line consumption year) (line income year)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to do a scatter plot of the 2 variables

A

Scatter consumption income

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to estimate a regression function (parameters)1

A

Type
Reg consumption income

How well did you know this?
1
Not at all
2
3
4
5
Perfectly