Minot
Using Stata for Survey Analysis
Page 46
varname
is the name of the variable to be graphed
if
is used to limit observations that are included
based on the exp condition
in
is used to limit observations that are included
based on the case number
weight
is to give
the weighted distribution
options
are commands to control the
look of the graph
scatter
This command generates a two-way scatter plot, showing a dot for each observation. The syntax is:
scatter varlist [
if exp] [
in range] [weight] [, options]
where
varlist
is the list of variables to be graphed
if
is used to limit observations that are included based on the exp condition
in
is used to limit observations that are included based on the case number
weight
is to give the weighted distribution
options
are commands to control the look of the graph
graph options
There are too many options to describe here, but we describe how to make
some of the more common
graphs.
Some options are common to many graph types:
title(“text
”)
specifies the title to use on the graph
xti(“text
”)
specifies title
on X axis
yti(“text
”)
specifies title on Y axis
by(var1
)
repeat graph for each value of var1
Some options for histograms:
bin(#
)
specifies that the histogram will have # bars (# is a number)
Do'stlaringiz bilan baham: