Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootPower error report #5

Open
apollobovey opened this issue May 8, 2017 · 5 comments
Open

bootPower error report #5

apollobovey opened this issue May 8, 2017 · 5 comments

Comments

@apollobovey
Copy link

Hi,
First, i want to thank you and i am very interested in this method for comparing group categories.
I am using QIIME for beta diversity analysis, and i am not very good at R..
QIIME also has a "compare_categories.py" which can do the PERMANOVA and other test, and i have done it before. So, it is necessary to do this power analysis again?

moreover

After i got the unweighted and weighted metrix files from QIIME, i used the readDMdir command to load all 10 metrix tab-txt files, and it seams successful. then i used bootPower command, but R report that:

Error in sum(sapply(dm_within, FUN = function(x) { : 'type'(list) wrong parameter

can you help me on this? does this mean wrong data format of input?

@brendankelly
Copy link
Owner

brendankelly commented May 8, 2017 via email

@apollobovey
Copy link
Author

apollobovey commented May 9, 2017

BK,
thanks for your quick response! It really a good method。
Can you send me a right command line example file which you are using in your micropower study? and if you can provide some input file example, csv or tab-txt format both OK.

My E-mail:
apollobovey@163.com

I believe their are many researcher like me,they want to use your R package but not familiar with R command and bothered by error reports, So study your command line example and the input file format will end many problems.
Thank you!

Bo Zeng
Sichuan Agricultural University, China

@brendankelly
Copy link
Owner

brendankelly commented May 10, 2017 via email

@ashoks773
Copy link

Hello BK,
Can you please send me the commands including the example files to be used for power analysis using micropower in R. My email adress is:sharm646@umn.edu
Thank you,
Ashok

@NeginValizadegan
Copy link

Would be great if you can list the examples here. I also would like to use my own files. I was able to get some of the codes work. I got omega squared but want to get power estimate and I could not get that to work.

Regarding the dm_list, do we get that by merging the distance files acquired from calcUJstudy and calcWJstudy? I did that and I get error for calculating power:

bootPower(dm_list, boot_number = 100, subject_group_vector = c(3, 4, 5), alpha = 0.05)

Error in sum(sapply(dm_within, FUN = function(x) { :
invalid 'type' (list) of argument

In general, I spent all of today trying to figure out how to get micropower to work but couldn't. The tutorials are not very clear. Even I was not able to run the example here because it is not clear which files we need to download from the link provided:

https://gist.github.com/brendankelly/6673e8596d3cde3fac7d493d7747aa80#file-micropower_simulation_example-r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants