befehle Flashcards

1
Q

zusammenfassen

A

summarize

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

outreg2

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

age detailiert zusammenfassen wenn 1999 geboren

A

summarize age if year==1999, detail

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

comments in do files

A

comment with one line *
comments of more than one line /* text */
comments within one line // text
line-join indicator: /// at the end of the command, if command is longer than one line

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

find out working directory

A

pwd

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

center of the data

A

what would be a typical observation

mean
-> sum of observations / number of observations

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

variability of data

A

how is the data spread around the centre

standard deviation

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

value lables, numerical value in same summary

A

fre

ssc install fre, replace

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

value lables shown in summary

A

tabulate

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

show distribution of var1 in a graphic

A

-> histogramm
hist var1, frequency

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

select if the variable has the value 0

A

if x==0

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

select if the variable does not have the value 0

A

if x != 0

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

select if the variable has a value less than 0

A

if x< 0

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

select if the variable has a value greater than or equal to 0 and less than 1

A

if x >= 0 & x<1

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

select if the variable has a balue greater than or queal to 0 or a value less than 1

A

if x >= 0|x<1

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

select if the variable has a missing value

A

if x ==.

if mi(x)

17
Q

select if the variable has a valid value

A

if x < .

if !mi(x)

18
Q

boxplot

A

graph box

zwei boxplots zb 1x für f und 1x m
graph box var1, by (sex)

19
Q

value labels should change

A

recode

20
Q

scatterplots

A

well suited for two metric variables
(dont work well with few values)

command:
scatter
twoway scatter var1 (y) var2(x)
twoway scatter var1 var2, by (sex)

-can be used to check whether a relationship is non-linear

21
Q
A