Skip to content

design weights

3 messages · Mohd Masood, Andrea Cantieni

#
Hi,

Is there a way to use design weights - i.e. each unit is weighted inversely proportional to its probability of selection - as in HLM?

http://www.ssicentral.com/hlm/example6-2.pdf

Or does anybody know how to do this in R otherwise?

Best regards,
Andrea Cantieni

........................................

Andrea Cantieni
Research Assistant

University of Teacher Education Schwyz
Institute for Media and Schools
Zaystrasse 42
6410 Goldau
Switzerland

andrea.cantieni at phsz.ch<mailto:andrea.cantieni at phsz.ch>
www.phsz.ch<http://www.phsz.ch>

..........................................
 _____               _   _               _           _
|  __ \             | | | |             (_)         | |
| |__) |   ___ _ __ | |_| |__  _   _ ___ _  __ _ ___| |_
|  _  /   / _ \ '_ \| __| '_ \| | | / __| |/ _` / __| __|
| | \ \  |  __/ | | | |_| | | | |_| \__ \ | (_| \__ \ |_
|_|  \_\  \___|_| |_|\__|_| |_|\__,_|___/_|\__,_|___/\__|
#
Hi Andrea 
Use "survey" package in R. It deals with survey design including weights. 

BW
Masood

Sent from my iPhone
#
Hi Masood,

Thank you!

But I have to fit a weighted _multilevel_ model!

Best regards,
Andrea


Am 18.08.2015 um 11:53 schrieb Mohd Masood <drmasoodmohd at gmail.com<mailto:drmasoodmohd at gmail.com>>:

Hi Andrea
Use "survey" package in R. It deals with survey design including weights.

BW
Masood

Sent from my iPhone
On Aug 18, 2015, at 5:36 PM, Andrea Cantieni <andrea.cantieni at phsz.ch<mailto:andrea.cantieni at phsz.ch>> wrote:
Hi,

Is there a way to use design weights - i.e. each unit is weighted inversely proportional to its probability of selection - as in HLM?

http://www.ssicentral.com/hlm/example6-2.pdf

Or does anybody know how to do this in R otherwise?

Best regards,
Andrea Cantieni

........................................

Andrea Cantieni
Research Assistant

University of Teacher Education Schwyz
Institute for Media and Schools
Zaystrasse 42
6410 Goldau
Switzerland

andrea.cantieni at phsz.ch<mailto:andrea.cantieni at phsz.ch><mailto:andrea.cantieni at phsz.ch>
www.phsz.ch<http://www.phsz.ch/><http://www.phsz.ch<http://www.phsz.ch/>>

..........................................
_____               _   _               _           _
|  __ \             | | | |             (_)         | |
| |__) |   ___ _ __ | |_| |__  _   _ ___ _  __ _ ___| |_
|  _  /   / _ \ '_ \| __| '_ \| | | / __| |/ _` / __| __|
| | \ \  |  __/ | | | |_| | | | |_| \__ \ | (_| \__ \ |_
|_|  \_\  \___|_| |_|\__|_| |_|\__,_|___/_|\__,_|___/\__|







_______________________________________________
R-sig-mixed-models at r-project.org<mailto:R-sig-mixed-models at r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models