Last updated: 2022-11-02
Checks: 6 1
Knit directory: lglasso_data_analysis/
This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
The R Markdown file has unstaged changes. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish
to commit the R Markdown file and build the HTML.
Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20220927)
was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version b084e20. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish
or wflow_git_commit
). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Ignored files:
Ignored: .Rhistory
Ignored: .Rproj.user/
Ignored: analysis/.Rhistory
Ignored: analysis/networkcommon_he.png
Ignored: data/heterc1/
Untracked files:
Untracked: analysis/figure4.Rmd
Untracked: code/11012022.R
Untracked: data/real/
Unstaged changes:
Modified: analysis/Validate the estimated network.Rmd
Modified: analysis/figure3.Rmd
Modified: analysis/index.Rmd
Modified: analysis/network_real_data.Rmd
Modified: code/real_estimation.R
Modified: code/real_network_identification.R
Modified: code/real_permutation.R
Modified: code/real_tree_network_correlation_bootstrap.R
Deleted: data/ddata.csv
Deleted: data/estnetwork1.rd
Deleted: data/network1.rd
Deleted: data/taxa.csv
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were made to the R Markdown (analysis/figure3.Rmd
) and HTML (docs/figure3.html
) files. If you’ve configured a remote Git repository (see ?wflow_git_remote
), click on the hyperlinks in the table below to view the files as they were in that past version.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | 534bd70 | Jie Zhou | 2022-10-21 | minor revisions |
html | 534bd70 | Jie Zhou | 2022-10-21 | minor revisions |
html | 32545ac | Jie Zhou | 2022-10-21 | updated code for all the figures and tables |
Rmd | 520f495 | Jie Zhou | 2022-10-21 | updated code for all the figures and tables |
html | 520f495 | Jie Zhou | 2022-10-21 | updated code for all the figures and tables |
zirate=(0.3,0.6)
uu1=0.3
uu2=0.6
Nsim=50
rho=vector("list",5)
rho[[1]]=seq(0.01,0.2,length=20)
rho[[2]]=seq(0.01,0.2,length=20)
rho[[3]]=seq(0.01,0.2,length=20)
rho[[4]]=seq(0.001,0.1,length=10)
rho[[5]]=seq(0.001,0.1,length=10)
set.seed(uu2*30+uu1*10+1)
simures=power_compare1(m=20,n=20,p=80,coe=c(2.3,0,0),l=Nsim,rho=rho,prob=0.01,heter=F,community2=F,zirate=c(uu1, uu2))
load("./data/real/network1.Rd")
load("./data/real/estnetwork1.Rd")
load("./data/homocensored/uu1=0.1_uu2=0.6.Rd")
results01=simures
load("./data/homocensored/uu1=0.1_uu2=0.8.Rd")
results02=simures
load("./data/homocensored/uu1=0.3_uu2=0.6.Rd")
results03=simures
load("./data/homocensored/uu1=0.3_uu2=0.8.Rd")
results04=simures
par(mfrow=c(2,2),mar=c(4,4,2,2),oma=c(0,0,2,0))
FPR=results01[[1]][[1]][,2]
TPR=results01[[1]][[1]][,1]
plot(FPR,TPR,ylim = c(0.2,1),xlim=c(0,1),xlab = "FPR",ylab = "TPR",type="l")
lines(results01[[1]][[2]][,2],results01[[1]][[2]][,1],type="l",lty=2)
lines(results01[[1]][[3]][,2],results01[[1]][[3]][,1],type="l",lty=3)
legend(0,0.4,legend=c("c(0.1,0.6)"))
FPR=results02[[1]][[1]][,2]
TPR=results02[[1]][[1]][,1]
plot(FPR,TPR,ylim = c(0.2,1),xlim=c(0,1),xlab = "FPR",ylab = "TPR",type="l")
lines(results02[[1]][[2]][,2],results02[[1]][[2]][,1],type="l",lty=2)
lines(results02[[1]][[3]][,2],results02[[1]][[3]][,1],type="l",lty=3)
legend(0,0.4,legend=c("c(0.1,0.8)"))
FPR=results03[[1]][[1]][,2]
TPR=results03[[1]][[1]][,1]
plot(FPR,TPR,ylim = c(0.2,1),xlim=c(0,1),xlab = "FPR",ylab = "TPR",type="l")
lines(results03[[1]][[2]][,2],results03[[1]][[2]][,1],type="l",lty=2)
lines(results03[[1]][[3]][,2],results03[[1]][[3]][,1],type="l",lty=3)
legend(0,0.4,legend=c("c(0.3,0.6)"))
FPR=results04[[1]][[1]][,2]
TPR=results04[[1]][[1]][,1]
plot(FPR,TPR,ylim = c(0.2,1),xlim=c(0,1),xlab = "FPR",ylab = "TPR",type="l")
lines(results04[[1]][[2]][,2],results04[[1]][[2]][,1],type="l",lty=2)
lines(results04[[1]][[3]][,2],results04[[1]][[3]][,1],type="l",lty=3)
legend(0,0.4,legend=c("(0.3,0.8)"))
title("Comparison of LGLASSO, GLASSO and NH when data are censored", outer=TRUE, cex=1.5)
sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Matrix_1.3-4 GGMselect_0.1-12.5 mvtnorm_1.1-3 BDgraph_2.67
[5] lglasso_0.1.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.9 highr_0.9 pillar_1.8.0 compiler_4.1.2
[5] bslib_0.4.0 later_1.3.0 jquerylib_0.1.4 git2r_0.30.1
[9] workflowr_1.7.0 tools_4.1.2 digest_0.6.29 lattice_0.20-45
[13] jsonlite_1.8.0 evaluate_0.15 lifecycle_1.0.1 tibble_3.1.7
[17] pkgconfig_2.0.3 rlang_1.0.4 cli_3.3.0 rstudioapi_0.13
[21] yaml_2.3.5 xfun_0.31 fastmap_1.1.0 stringr_1.4.0
[25] knitr_1.39 gtools_3.9.3 fs_1.5.2 vctrs_0.4.1
[29] sass_0.4.2 grid_4.1.2 rprojroot_2.0.3 glue_1.6.2
[33] R6_2.5.1 fansi_1.0.3 rmarkdown_2.14 glasso_1.11
[37] magrittr_2.0.3 whisker_0.4 lars_1.3 promises_1.2.0.1
[41] ellipsis_0.3.2 htmltools_0.5.2 httpuv_1.6.5 utf8_1.2.2
[45] stringi_1.7.6 cachem_1.0.6