I would like to estimate the sample size required to statistically distinguish the linear relationship between two variables, x and y, between two groups, A and B, and specifically the slopes of the two linear relationships (but also the intercept if possible). How many samples from A and B are needed to achieve some specific power?
I know the expected slopes, beta1 and beta2, and I know the uncertainty in the slope estimate (via the standard error of the slope estimate, or alternatively via the standard deviation in x and y).
I have been unable to find guidance on how to perform this calculation. Any help would be very much appreciated.