Description Usage Arguments Details Value References See Also Examples

Stratify the auxiliary variable `x`

into `H`

strata using the cum-sqrt-rule.

1 |

`x` |
a positive numeric vector giving the values of the auxiliary variable. |

`H` |
a positive integer smaller or equal than |

`forced` |
a logical value indicating if the number of strata |

`J` |
a positive integer indicating the number of bins used for the cum-sqrt-rule. |

The cum-sqrt-rule is used in order to define `H`

strata from the auxiliary vector `x`

.

Depending on some characteristics of `x`

, e.g. high skewness, few observations or too many ties, the resulting stratification may have a number of strata other than `H`

. Using `forced = TRUE`

tries its best to obtain exactly `H`

strata.

Note that if `length(x) < H`

then `forced`

will be set to `FALSE`

.

A numeric vector giving the stratum to which each observation in `x`

belongs.

Sarndal, C.E., Swensson, B. and Wretman, J. (1992). *Model Assisted Survey Sampling*. Springer.

`optiallo`

for allocating the sample into the strata using Neyman optimal allocation.

1 2 |

```
sh: 1: cannot create /dev/null: Permission denied
Loading required package: shiny
Loading required package: mvtnorm
Loading required package: cubature
[1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
[38] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
[75] 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3
```

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.