You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unclear on how to use type="draw" in the generate function. At a minimum, it would be helpful to clarify the draw method and show an example how to use this in the documentation for generate.
From reading the docs, it seems like I should be able to use the draw method to sample data according to a point estimate null hypothesis. If I express that the null point estimate is mu=40, I expect that the draw method will randomly sample some normally distributed data with mean 40 and some variance. However this example gives an error:
> gss %>%
+ specify(response = hours) %>%
+ hypothesize(null = "point", mu = 40) %>%
+ generate(reps = 1000, type = "draw")
Error in sample.int(length(x), size, replace, prob) :
NA in probability vector
In addition: Warning message:
You have given `type = "draw"`, but `type` is expected to be `"bootstrap"`. This workflow is untested and the results may not mean what you think they mean.
I see there are some examples where the draw method applies to proportions in vignette("observed_stat_examples"). If it only works with proportions, can you please clarify that in the generate docs and add an example there?
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
This comment is part of your JOSS Review.
I'm unclear on how to use type="draw" in the
generate
function. At a minimum, it would be helpful to clarify the draw method and show an example how to use this in the documentation forgenerate
.From reading the docs, it seems like I should be able to use the draw method to sample data according to a point estimate null hypothesis. If I express that the null point estimate is mu=40, I expect that the draw method will randomly sample some normally distributed data with mean 40 and some variance. However this example gives an error:
I see there are some examples where the draw method applies to proportions in
vignette("observed_stat_examples")
. If it only works with proportions, can you please clarify that in thegenerate
docs and add an example there?The text was updated successfully, but these errors were encountered: