I'm trying to find a (hopefully citable) method of estimating a minimal sample size to discover a conditional indirect effect at power .80.
I was hoping anyone could help me out with this.
First of all I'd like to compute the observed power of observing an effect in the data I have.
I was trying to play with simsem library for this but failed with it's syntax.
Than, based on the model paramters I'd like to estimate the sample size to discover an effect of a given magnitude in future study, where I'll slightly change my experimental conditions and assume conservatively smaller effect.
Is there any easy to use way, to take a lavaan fitted object and run sample size simulations from it?