# How do I make power computation for testing differnce between two log normal means with R? [closed]

I want to do power computation for testing differnce between two log normal means with R. Can you write using R code? best wishes...

-

## closed as not a real question by chl♦Aug 9 '12 at 23:16

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

The answer is "yes." If you need more than that, please amplify your question. –  whuber May 23 '12 at 20:33

A simple method for any power calculation is to use simulations. Simulate data that represents what you are trying to test (difference, sample size, etc.) and test for the difference and save the p-value, repeate a bunch of times. The proportion of times that your saved p-values are less than your $\alpha$ is the estimated power.