Description Usage Arguments Value See Also Examples

Extract weights from a survey design object.

1 2 3 4 5 6 7 |

`object` |
Survey design object |

`type` |
Type of weights: |

`final` |
If |

`...` |
Other arguments ignored |

vector or matrix of weights

`svydesign`

, `svrepdesign`

,
`as.fpc`

1 2 3 4 5 6 7 8 9 10 11 12 | ```
data(scd)
scddes<-svydesign(data=scd, prob=~1, id=~ambulance, strata=~ESA,
nest=TRUE, fpc=rep(5,6))
repweights<-2*cbind(c(1,0,1,0,1,0), c(1,0,0,1,0,1), c(0,1,1,0,0,1), c(0,1,0,1,1,0))
scdrep<-svrepdesign(data=scd, type="BRR", repweights=repweights)
weights(scdrep)
weights(scdrep, type="sampling")
weights(scdrep, type="analysis")
weights(scddes)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.