I'm attempting to do a power analysis on occurrence data (0.0 -> 1.0; i.e. the number a sites a species was present out of the total number of sites sampled for a single season), where I want to see what power I have to detect a change of 20% (two-sided test) from the most recent season's worth of data to the next (a future sample). For example, "...Dry season 2023 has a proportion of 0.6, what power do I have to detect a 20% change (up or down) from 0.6 for next year?" The data comes from the same 47 sites each season (paired data) and I'm using the package 'pwrss'. My questions is:
If I'm hoping to do a two-sided test, what would I put for p0?
Since I think this is a one-sample test, according to the documentation, "p0" = constant to be compared (a proportion), but is that 0.2 (20%) or 0.6 + or - 20%; (=0.72, 0.48)?
What does this syntax mean?
library(pwrss)
pwrss.z.prop(p = 0.6, p0 = 0.48,
alpha = 0.05, power = NULL,
n = 47,
alternative = "not equal",
arcsin.trans = TRUE)