Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with int_pp() #143

Open
szylkrecik opened this issue Mar 24, 2021 · 0 comments
Open

Problem with int_pp() #143

szylkrecik opened this issue Mar 24, 2021 · 0 comments

Comments

@szylkrecik
Copy link

szylkrecik commented Mar 24, 2021

There is a problem with the int_pp function (PP integerisation) due to the limitation of summary() by maxsum argument, whose default is 100 for factors.
Try int_pp(x=rep(1.3333,100000)) to reproduce the error.

My patch is:

 # Aggregate the result into a weight vector
   xsumm <- summary(as.factor(xs), maxsum = length(levels(as.factor(xs)))+1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant