Using Stata for Survey Data Analysis


Download 1.39 Mb.
Pdf ko'rish
bet50/61
Sana08.03.2023
Hajmi1.39 Mb.
#1252470
1   ...   46   47   48   49   50   51   52   53   ...   61
Bog'liq
2009 Usingstataforsurveydataanalysis (1)

histogram varname [if exp] [in range] [weight] [, [continuous_opts | discrete_opts] options] 
where


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) 

Download 1.39 Mb.

Do'stlaringiz bilan baham:
1   ...   46   47   48   49   50   51   52   53   ...   61




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling