Closed sho-87 closed 6 years ago
If you need a workaround, summary(pc)
ought to still work.
The code assumes that the "along" variable is an integer, and falls over when it's not. It's kind of a mystery that no one found this earlier! Thanks for the bug report.
summary(pc)
seems to give some information, but I was looking at this paper and looking at the example output there print(pc)
appears to have an additional piece of information that is missing from summary(pc)
which is the number of rows of data
Im a bit confused about what power curves are intended to show (or maybe Im misusing it). What I want to know is what sample size is required to achieve 80% power. Sample size in my case is given by id
(each id
is a person). How does largest value of a
relate to sample size in this case?
The idea is to have the x-axis for the power curve in sensible units. For example, if you have multiple observations per person, it's more useful to know how many people rather than how many observations in total.
In your case you might want to use along="id"
as an argument to powerCurve
. The default is the first fixed effect (i.e. a
) but as you've noted that probably doesn't make sense for what you're trying to do.
The printing bug is fixed in the github version, but it shouldn't be as issue if id
is a factor.
perfect, the github version prints correctly now, thanks!
condition
andid
are both factorsWhen I run the code above and try to
print(pc)
I get the following error:plot(pc)
works fine, but printing doesnt seem to work. Any idea about whats causing this?