楼主: jf0403
11924 3

[一般统计问题] svyset的主要功能是什么,一般在什么情况下使用? [推广有奖]

  • 0关注
  • 0粉丝

大专生

55%

还不是VIP/贵宾

-

威望
0
论坛币
409 个
通用积分
24.7399
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
322 点
帖子
6
精华
0
在线时间
107 小时
注册时间
2007-9-30
最后登录
2024-8-26

楼主
jf0403 发表于 2013-7-30 16:15:42 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
svyset的主要功能是什么,一般在什么情况下使用?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Set

沙发
蓝色 发表于 2013-7-31 00:05:30
stata的一本手册就专门讲svy的。
[SVY] Stata Survey Data Reference Manual

你可以看看这本书最开始的介绍



Introduction
Stata’s facilities for survey data analysis are centered around the svy prefix command. After you
identify the survey design characteristics with the svyset command, prefix the estimation commands
in your data analysis with “svy:”. For example, where you would normally use the regress command
to fit a linear regression model for nonsurvey data, use svy: regress to fit a linear regression model
for your survey data.
Why should you use the svy prefix command when you have survey data? To answer this question,
we need to discuss some of the characteristics of survey design and survey data collection because
these characteristics affect how we must perform our analysis if we want to get it right.
Survey data are characterized by the following:
 Sampling weights, also called probability weights—pweights in Stata’s terminology
 Cluster sampling
 Stratification
These features arise from the design and details of the data collection procedure. Here’s a brief
description of how these design features affect the analysis of the data:
 Sampling weights. In sample surveys, observations are selected through a random process,
but different observations may have different probabilities of selection. Weights are equal to
(or proportional to) the inverse of the probability of being sampled. Various postsampling
adjustments to the weights are sometimes made, as well. A weight of wj for the jth observation
means, roughly speaking, that the jth observation represents wj elements in the population
from which the sample was drawn.
Omitting weights from the analysis results in estimates that may be biased, sometimes seriously
so. Sampling weights also play a role in estimating standard errors.
 Clustering. Individuals are not sampled independently in most survey designs. Collections of
individuals (for example, counties, city blocks, or households) are typically sampled as a group,
known as a cluster.
There may also be further subsampling within the clusters. For example, counties may be
sampled, then city blocks within counties, then households within city blocks, and then finally
persons within households. The clusters at the first level of sampling are called primary sampling
units (PSUs)—in this example, counties are the PSUs. In the absence of clustering, the PSUs
are defined to be the individuals, or, equivalently, clusters, each of size one.
Cluster sampling typically results in larger sample-to-sample variability than sampling individuals
directly. This increased variability must be accounted for in standard error estimates, hypothesis
testing, and other forms of inference.
 Stratification. In surveys, different groups of clusters are often sampled separately. These groups
are called strata. For example, the 254 counties of a state might be divided into two strata, say,
urban counties and rural counties. Then 10 counties might be sampled from the urban stratum,
and 15 from the rural stratum.
Sampling is done independently across strata; the stratum divisions are fixed in advance. Thus
strata are statistically independent and can be analyzed as such. When the individual strata
are more homogeneous than the population as a whole, the homog
已有 3 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
经济书生 + 1 + 1 + 1 热心帮助其他会员
Sunknownay + 100 + 6 + 1 + 1 + 1 热心帮助其他会员
h3327156 + 1 + 1 + 1 好的意见建议

总评分: 经验 + 100  论坛币 + 6  学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

藤椅
jf0403 发表于 2013-8-6 17:05:50
好,非常感谢,这本手册可以在这里下载:
https://s.pinggu.org/search.php?m ... ta+Reference+Manual

板凳
hanlinxian246 发表于 2016-8-17 20:16:46
学习了!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-29 02:43