Description Usage Arguments Value Author(s) References See Also Examples

This function estimates quantiles of plausible values within groups.

1 | ```
svyPVquantile(by, svydat, pvs, quantile, interval.type = "quantile", colN=FALSE, ...)
``` |

`by` |
A formula statement is expected which splits the data into several subsets. Within these subsets the quantiles are estimated. |

`svydat` |
A survey design ( |

`pvs` |
A character vector which includes the colnames of the plausible values. These variables must be part of the survey design comitted as |

`quantile` |
A numeric vector of length > 1 which contains the quantiles of interest. |

`interval.type` |
A character vector of length = 1 which denotes the kind of quantile estimation method. Valid inputs are: "quantile" and "probability" if a svrepdesign was submitted and in case of a oridinary survey design the valid inputs are: "Wald", "score" and "betaWald". More information about the different estimation techniques can be gained from the "Details" section of the |

`...` |
More arguments which are forwarded to |

`colN` |
If TRUE the colnames will equal the grouping variable names from the by statement. If FALSE, which is the default, the names will be Group1 up to Group k. |

The function returns a data.frame with the following columns

`Group1..k` |
The first k columns show the different levels of the k subsetting groups. |

`Number.of.cases` |
Shows the unweighted number of cases (NA's excluded) within each group. |

`Sum.of.weights` |
Shows the sum of weights (NA's excluded) within each group. |

`q0...` |
These columns contain the quantile values which were estimated by means of the submitted plausible values. |

Manuel Reif

Lumley, T. (2010). *Complex Surveys*. Hoboken, NJ: Wiley.

Saerndal, C.-E. & Swensson, B. & Wretman, J. (1992). *Model Assisted Survey Sampling*. New York: Springer.

Chaudhuri, A. & Stenger, H. (2005). *Survey Sampling. Theory and Methods*. Boka Raton, FL: Chapman & Hall/CRC.

1 2 3 4 5 6 |

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.