Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.