Case I: One Gamma ( I can do this! )
shape<-shape*10
scale<-scale/10
p_value_average_of_10_draws<-1-pgamma(q=average_of_10_draws, shape=shape, scale=scale, lower.tail = TRUE, log.p = FALSE)
Case II: Two Gammas (I can't do this!)
shape_A<-shape_A*10
scale_A<-scale_A/10
shape_B<-shape_B*10
scale_B<-scale_B/10
pgamma_A_and_B <-
pgamma(q=average_of_10_draws, shape=shape_A, scale=scale_A, lower.tail = TRUE, log.p = FALSE)*weight_A
+
pgamma(q=average_of_10_draws, shape=shape_B, scale=scale_B, lower.tail = TRUE, log.p = FALSE)*(1-weight_A)
p_value_average_of_10_draws<-1-pgamma_A_and_B
But this is just wrong!
Because it assumes that all ten draws will be taken from just one of A or B!