[R] Package to work with weight based data

David Winsemius dwinsemius at comcast.net
Thu Apr 28 23:15:31 CEST 2016

> On Apr 28, 2016, at 9:32 AM, BISWAJIT KAR <biswaj41_ssf at jnu.ac.in> wrote:
> 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.

The 'survey' package would seem to be the obvious place to start.

Also review: 

> 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.

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.

> -- 
> Thanks,
> *Biswajit Kar*
> (Research Scholar)
> Ph. D. Student, Geography
> Centre for the Study of Regional Development
> School of Social Sciences
> Jawaharala Nehru University
> New Delhi-110067
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

More information about the R-help mailing list