Skip to content

Package to work with weight based data

3 messages · BISWAJIT KAR, David Winsemius, Federman, Douglas

#
Respected all,
                    I am working on a socio-economic survey (named as
National Sample Survey in India provided by National Sample Survey
Organization, Govt. of India) data of individual as well as households.
This is a sample survey where stratified random sapling method has been
used to draw samples. The data set uses 'weights' to estimate figures for
region, state or country level. In the data set, there is a variable called
weights and I use the *'weight cases'* function to activate weights
under *'Data'
 option *in menu bar in SPSS before generating any table or doing any
statistical procedure. So, my question is, is there any package/s in R
where I can use weights and work on this kind of sample survey.

Second thing, is there any package/s to generate multi layer contingency
table in R or how can I do this in R. For example, one similar kind of
table is attached here which one is created by SPSS from the above stated
data-set. Please have a look.
#
The 'survey' package would seem to be the obvious place to start.

Also review: 
https://cran.r-project.org/web/views/SocialSciences.html
https://cran.r-project.org/web/views/OfficialStatistics.html
Nothing was attached. Probably not sent in one of the acceptable formats. See the Posting Guide and List Information pages. The table-class objects can have multiple dimensions. The survey package should be able to produce tabular  estimates from multiple variables in the design specification.
David Winsemius
Alameda, CA, USA
#
You might look at Anthony D'Amico's work at 

    Asdfree.com  

There is a lot to learn from here and many of those examples work with weighted survey results

-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of BISWAJIT KAR
Sent: Thursday, April 28, 2016 12:32 PM
To: R-help at r-project.org
Subject: [R] Package to work with weight based data

Respected all,
                    I am working on a socio-economic survey (named as
National Sample Survey in India provided by National Sample Survey
Organization, Govt. of India) data of individual as well as households.
This is a sample survey where stratified random sapling method has been
used to draw samples. The data set uses 'weights' to estimate figures for
region, state or country level. In the data set, there is a variable called
weights and I use the *'weight cases'* function to activate weights
under *'Data'
 option *in menu bar in SPSS before generating any table or doing any
statistical procedure. So, my question is, is there any package/s in R
where I can use weights and work on this kind of sample survey.

Second thing, is there any package/s to generate multi layer contingency
table in R or how can I do this in R. For example, one similar kind of
table is attached here which one is created by SPSS from the above stated
data-set. Please have a look.