Take the 2-minute tour ×
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It's 100% free, no registration required.

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
2  
The answer is "yes." If you need more than that, please amplify your question. –  whuber May 23 '12 at 20:33
add comment

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.

1 Answer

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
add comment

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