Skip to content

fix pv freq

Hi Rodolfo,

As discussed with François, we encountered a problem with Rrepest when computing frequencies for plausible values (PV). This issue arises when a group has zero frequencies for certain categories of the variable in some plausible values but not in all.

Here is an example of the code where the issue occurs (based on PISA school data): Rrepest::Rrepest(f_Std_Stq_BRA, svy ="PBTS", est = est("freq","PV@READ_lev"), by = c("SchoolId") , n.pvs = 10)

For some schools, I have zero students in the highest reading level, but only for some plausible values—not all. In such cases, all frequencies are set to NA.

@Francois.KESLAIR generated this patch that fixes the problem.

Best,

Vanessa

Merge request reports

Loading