ncn-foreigners / nonprobsvy

An R package for modern methods for non-probability surveys
https://ncn-foreigners.github.io/nonprobsvy/
Other
29 stars 4 forks source link

`nonprob` and `se=FALSE` #16

Closed BERENZ closed 12 months ago

BERENZ commented 12 months ago

If se=FALSE is provided in the nonprob function the resulting output and confidence_interval should be the same data.frames as if se=FALSE but it should contain NAs.

Current output:

> nonprob_example[c("output", "confidence_interval")]
$output
         mean
Y_11 1.860623
Y_12 6.945413

$confidence_interval
NULL

Desired output:

> nonprob_example[c("output", "confidence_interval")]
$output
         mean SE
Y_11 1.860623 NA
Y_12 6.945413 NA

$confidence_interval
     lower_bound upper_bound
Y_11          NA          NA
Y_12          NA          NA
LukaszChrostowski commented 12 months ago

DONE