Skip to content
Snippets Groups Projects
Commit 00f6396c authored by Maria Voigt's avatar Maria Voigt
Browse files

adding an output and saving image

parent 06935a5e
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,8 @@ if(is_verbose){print(paste("m_terms_path", m_terms_path))} ...@@ -103,6 +103,8 @@ if(is_verbose){print(paste("m_terms_path", m_terms_path))}
m_terms <- readRDS(m_terms_path) m_terms <- readRDS(m_terms_path)
save.image(file.path(outdir, "image_temp.RData"))
ests=apply(abundMod_results [, grepl(x=colnames(abundMod_results ), pattern="coeff")], 2, function(x){ ests=apply(abundMod_results [, grepl(x=colnames(abundMod_results ), pattern="coeff")], 2, function(x){
x[is.na(x)]=0 x[is.na(x)]=0
...@@ -115,6 +117,7 @@ SEs=apply(abundMod_results [, grepl(x=colnames(abundMod_results ), pattern="SE") ...@@ -115,6 +117,7 @@ SEs=apply(abundMod_results [, grepl(x=colnames(abundMod_results ), pattern="SE")
SEs=SEs[-length(SEs)] SEs=SEs[-length(SEs)]
names(ests)=gsub(x=names(ests), pattern="coeff_", replacement="", fixed=T) names(ests)=gsub(x=names(ests), pattern="coeff_", replacement="", fixed=T)
names(SEs)=gsub(x=names(SEs), pattern="SE_", replacement="", fixed=T) names(SEs)=gsub(x=names(SEs), pattern="SE_", replacement="", fixed=T)
if(is_verbose){"sum of names of est that is not in SEs"}
sum(names(ests)!=names(SEs)) sum(names(ests)!=names(SEs))
theta=sum(abundMod_results $theta*abundMod_results$w_aic) theta=sum(abundMod_results $theta*abundMod_results$w_aic)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment