ast
stringlengths
16
28.2M
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_queue_properties}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){queue}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){queue}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){rt_url}<LSEP>[argument 0; litteral](str){queue}<LSEP>[](symbol){queue}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[](symbol){rt_GET}<LSEP>[](symbol){url}<LSEP>[](symbol){...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_detect}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}<LEND>[argument 1; litteral](str){No queue named}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){No queue named }<LSEP>[](symbol){queue}<LSEP>[argument 2; litteral](str){ exists.}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 4; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 5; call](){}<LSEP>[](symbol){parse_rt_properties}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){cor.folder}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){use}<LSEP>[](symbol){method}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x must be an object of class '...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fold}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){jnum}<LEND>[call](){}<LSEP>[](symbol){logical}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){jnum}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){is.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){notnum}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){jnum}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){notnum}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){There are omitted variables (n...}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){notnum}<LSEP>[argument 1; litteral](str){ }<LEND>[argument 2; litteral](str){}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){fold.num}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fold}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fold.num}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold.num}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[](symbol){jnum}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold.num}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){fold.num}<LSEP>[](symbol){cor}<LSEP>[](symbol){use}<LSEP>[](symbol){method}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.read.vcf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){vcffile}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){x}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){vcfR}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){To use this function you need ...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){vcf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){vcfR}<LSEP>[](symbol){read.vcfR}<LEND>[](symbol){vcffile}<LSEP>[](symbol){verbose}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){vcfR}<LSEP>[](symbol){vcfR2genlight}<LEND>[](symbol){vcf}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){ploidy}<LSEP>[](symbol){x}<LEND>[litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.compliance.check}<LSEP>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.recalc.metrics}<LSEP>[](symbol){x}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){genlight object does not have ...}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){new_RRRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){x}<LEND>[statement 1; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){spec}<LSEP>[argument 1; litteral](str){history}<LSEP>[argument 2; litteral](str){mu}<LSEP>[argument 3; litteral](str){A}<LSEP>[argument 4; litteral](str){B}<LSEP>[argument 5; litteral](str){D}<LSEP>[argument 6; litteral](str){Sigma}<LSEP>[argument 7; litteral](str){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 2; call](){}<LSEP>[](symbol){structure}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){RRRR}<LSEP>[argument 1; litteral](str){RRR}<LEND>[assign](){<-}<LSEP>[](symbol){print.RRRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Robust Reduced-Rank Regression\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Majorisation-Minimisation\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Specifications:\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){c}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){spec}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nCoefficients:\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LEND>[](symbol){digits}<LEND>[assign](){<-}<LSEP>[](symbol){plot.RRRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){aes_x}<LSEP>[](symbol){xlog10}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){plot_data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){history}<LEND>[](symbol){runtime}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){history}<LEND>[](symbol){obj}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq_along}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){history}<LEND>[](symbol){obj}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){xlog10}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){plot_data}<LSEP>[](symbol){runtime}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](real){0.001000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){plot_data}<LSEP>[](symbol){...}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){geom_line}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){aes_string}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){aes_x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){obj}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ylab}<LEND>[argument 0; litteral](str){Objective value}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){xlog10}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){output}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){coord_trans}<LEND>[argument 0; litteral](str){log10}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){output}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plot.fmdsd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){nscore}<LSEP>[](symbol){main}<LSEP>[](symbol){sub.title}<LSEP>[](symbol){color}<LSEP>[](symbol){fontsize.points}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nscore}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Since dad-4, nscore must be a ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){and}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){are plotted.}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nscore}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){inertia}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){inertia}<LEND>[](symbol){inertia}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){coor}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nscore}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){nscore}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){nscore}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){coor}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The components of nscore must ...}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){i1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){coor}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes_q}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.name}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.name}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i2}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){group}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){color}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){namecol}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){color}<LEND>[statement 1; call](){}<LSEP>[](symbol){assign}<LSEP>[](symbol){namecol}<LSEP>[](symbol){color}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes_q}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.name}<LSEP>[](symbol){namecol}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.200000}<LSEP>[](symbol){fontsize.points}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[](symbol){main}<LSEP>[](symbol){sub.title}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i1}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){inertia}<LSEP>[](symbol){i1}<LEND>[argument 3; litteral](str){%)}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i2}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){inertia}<LSEP>[](symbol){i2}<LEND>[argument 3; litteral](str){%)}<LEND>[statement 14; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){graph}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.load}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; assign](){=}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){0.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){readRDS}<LSEP>[](symbol){file}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Loaded Presence/Absence (Sil...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Loaded a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Loaded an object of Class:}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){other}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){predict.ada}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){newdata}<LSEP>[](symbol){type}<LSEP>[](symbol){n.iter}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){object}<LSEP>[argument 1; litteral](str){ada}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error: Object is not of class...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){type}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){type}<LSEP>[litteral](str){vector}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){probs}<LEND>[true branch; assign](){=}<LSEP>[](symbol){type}<LSEP>[litteral](str){prob}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){vector}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){prob}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){both}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){F}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){type=}<LSEP>[](symbol){type}<LSEP>[argument 2; litteral](str){ is undefined: default is 've...}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){type}<LSEP>[litteral](str){vector}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){newdata}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error: Arguement newdata is mi...}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){iter}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){iter}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){n.iter}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){n.iter}<LSEP>[](symbol){iter}<LEND>[true branch; assign](){=}<LSEP>[](symbol){iter}<LSEP>[](symbol){n.iter}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){lev}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){actual}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){const}<LSEP>[litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){model}<LEND>[](symbol){lossObj}<LEND>[](symbol){predict.type}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){iter}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){f}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){model}<LEND>[](symbol){trees}<LEND>[](symbol){i}<LEND>[](symbol){newdata}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){model}<LEND>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){iter}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){tmp}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){sum}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){tmp}<LEND>[statement 14; assign](){=}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){fit}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){a1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fit}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){a1}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){fit}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lev}<LSEP>[](symbol){ind}<LEND>[](symbol){lev}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){vector}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fit}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){cal}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){const}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){const}<LEND>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){const}<LSEP>[](symbol){x}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){probs}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){tmp}<LSEP>[](symbol){cal}<LSEP>[](symbol){const}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){probs}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){probs}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){sum}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){prob}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){probs}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){F}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tmp}<LEND>[statement 24; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){fit}<LSEP>[](symbol){probs}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ddhellinger}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){x1}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x1}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){x2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x1 must be a data frame or a v...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x2 must be a data frame or a v...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x1}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x2}<LEND>[](symbol){k}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ncol(x1) != ncol(x2)}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x2}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){x1 and x2 do not have the same...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x1}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x1}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){lev}<LEND>[call](){}<LSEP>[](symbol){union}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){lev}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){lev}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x1}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){p2}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x2}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x2}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){ddhellingerpar}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){utils.outflank}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){FstDataFrame}<LSEP>[](symbol){LeftTrimFraction}<LSEP>[](symbol){RightTrimFraction}<LSEP>[](symbol){Hmin}<LSEP>[](symbol){NumberOfSamples}<LSEP>[](symbol){qthreshold}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){Fstdata}<LEND>[call](){}<LSEP>[](symbol){outputDFStarterNoCorr}<LSEP>[](symbol){FstDataFrame}<LSEP>[](symbol){Hmin}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){workingDataFrame}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Fstdata}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Fstdata}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){storedDataFrameNA}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Fstdata}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Fstdata}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){sortedDataFrame}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){workingDataFrame}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){NLociTotal}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sortedDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){SmallestKeeper}<LEND>[call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){NLociTotal}<LSEP>[](symbol){LeftTrimFraction}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){LargestKeeper}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){NLociTotal}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){RightTrimFraction}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){LowTrimPoint}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sortedDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){SmallestKeeper}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){HighTrimPoint}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sortedDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){LargestKeeper}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){LowTrimPoint}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){ERROR: The smallest FST in the...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){HighTrimPoint}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){ERROR: The largest FST in the ...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){putativeNeutralListTemp}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 12; assign](){=}<LSEP>[](symbol){oldOutlierFlag}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[](symbol){NLociTotal}<LEND>[statement 13; assign](){=}<LSEP>[](symbol){keepGoing}<LSEP>[litteral](logical){TRUE}<LEND>[statement 14; assign](){=}<LSEP>[](symbol){count}<LSEP>[litteral](real){0.000000}<LEND>[statement 15; control flow](){while}<LSEP>[](symbol){keepGoing}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){19.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){keepGoing}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){Exceeded iteration maximum.}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){FstbarNoCorrTemp}<LEND>[call](){}<LSEP>[](symbol){fstBarCalculatorNoCorr}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){putativeNeutralListTemp}<LSEP>[](symbol){}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){dfInferredTemp}<LEND>[call](){}<LSEP>[](symbol){EffectiveNumberSamplesMLE}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){putativeNeutralListTemp}<LEND>[](symbol){FstbarNoCorrTemp}<LSEP>[](symbol){NumberOfSamples}<LSEP>[](symbol){LowTrimPoint}<LSEP>[](symbol){HighTrimPoint}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){workingDataFrame}<LEND>[call](){}<LSEP>[](symbol){pOutlierFinderChiSqNoCorr}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FstbarNoCorrTemp}<LSEP>[](symbol){dfInferredTemp}<LSEP>[](symbol){qthreshold}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){OutlierFlag}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){LowTrimPoint}<LEND>[true branch; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){OutlierFlag}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[argument 1; litteral](real){0.000000}<LEND>[litteral](logical){TRUE}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){putativeNeutralListTemp}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){OutlierFlag}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){putativeNeutralListTemp}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){No loci in neutral list...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){FAIL}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){oldOutlierFlag}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){OutlierFlag}<LEND>[true branch; assign](){=}<LSEP>[](symbol){keepGoing}<LSEP>[litteral](logical){FALSE}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){OutlierFlag}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){LowTrimPoint}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){All loci with Fst below the lo...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){OutlierFlag}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){HighTrimPoint}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){All loci with Fst above the up...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){oldOutlierFlag}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){OutlierFlag}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){19.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){Loop iteration limit exceeded.}<LEND>[statement 17; assign](){=}<LSEP>[](symbol){numberLowFstOutliers}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){OutlierFlag}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){LowTrimPoint}<LEND>[statement 18; assign](){=}<LSEP>[](symbol){numberHighFstOutliers}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){OutlierFlag}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){HighTrimPoint}<LEND>[statement 19; assign](){=}<LSEP>[](symbol){FSTbar}<LEND>[call](){}<LSEP>[](symbol){fstBarCalculator}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){putativeNeutralListTemp}<LSEP>[](symbol){}<LEND>[statement 20; assign](){=}<LSEP>[](symbol){resultsDataFrame}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){workingDataFrame}<LSEP>[](symbol){storedDataFrameNA}<LEND>[statement 21; assign](){=}<LSEP>[](symbol){resultsDataFrame}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){resultsDataFrame}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){resultsDataFrame}<LSEP>[](symbol){indexOrder}<LEND>[](symbol){}<LEND>[statement 22; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){FSTbar}<LSEP>[](symbol){FstbarNoCorrTemp}<LSEP>[](symbol){dfInferredTemp}<LSEP>[](symbol){numberLowFstOutliers}<LSEP>[](symbol){numberHighFstOutliers}<LSEP>[](symbol){resultsDataFrame}<LEND>[assign](){=}<LSEP>[](symbol){outputDFStarterNoCorr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){FstDataFrame}<LSEP>[](symbol){Hmin}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){len}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){FstDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){indexOrder}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){len}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){GoodH}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){FstDataFrame}<LSEP>[](symbol){He}<LEND>[](symbol){Hmin}<LEND>[argument 1; litteral](str){lowH}<LSEP>[argument 2; litteral](str){goodH}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){OutlierFlag}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){FstDataFrame}<LSEP>[](symbol){FSTNoCorr}<LEND>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){qvalues}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){len}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){pvalues}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){len}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){pvaluesRightTail}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){len}<LEND>[statement 7; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){FstDataFrame}<LSEP>[](symbol){indexOrder}<LSEP>[](symbol){GoodH}<LSEP>[](symbol){qvalues}<LSEP>[](symbol){pvalues}<LSEP>[](symbol){pvaluesRightTail}<LSEP>[](symbol){OutlierFlag}<LEND>[assign](){=}<LSEP>[](symbol){pOutlierFinderChiSqNoCorr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){DataList}<LSEP>[](symbol){Fstbar}<LSEP>[](symbol){dfInferred}<LSEP>[](symbol){qthreshold}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){DataListGood}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DataList}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){DataList}<LSEP>[](symbol){FSTNoCorr}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){DataListNonPosFst}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DataList}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){DataList}<LSEP>[](symbol){FSTNoCorr}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){DataListNA}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DataList}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){DataList}<LSEP>[](symbol){FSTNoCorr}<LEND>[](symbol){}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){pList}<LEND>[call](){}<LSEP>[](symbol){pTwoSidedFromChiSq}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){DataListGood}<LSEP>[](symbol){FSTNoCorr}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){dfInferred}<LEND>[](symbol){Fstbar}<LEND>[](symbol){dfInferred}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){pListRightTail}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){DataListGood}<LSEP>[](symbol){FSTNoCorr}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){dfInferred}<LEND>[](symbol){Fstbar}<LEND>[](symbol){dfInferred}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){qtemp}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){qvalue}<LSEP>[](symbol){qvalue}<LEND>[](symbol){pListRightTail}<LSEP>[](symbol){qthreshold}<LSEP>[argument 2; litteral](str){bootstrap}<LEND>[statement 6; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){DataListGood}<LSEP>[](symbol){pvalues}<LEND>[](symbol){pList}<LEND>[statement 7; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){DataListGood}<LSEP>[](symbol){pvaluesRightTail}<LEND>[](symbol){pListRightTail}<LEND>[statement 8; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){DataListGood}<LSEP>[](symbol){qvalues}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qtemp}<LSEP>[](symbol){qvalues}<LEND>[statement 9; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){DataListGood}<LSEP>[](symbol){OutlierFlag}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qtemp}<LSEP>[](symbol){significant}<LEND>[statement 10; call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){DataListGood}<LSEP>[](symbol){DataListNonPosFst}<LSEP>[](symbol){DataListNA}<LEND>[assign](){=}<LSEP>[](symbol){pTwoSidedFromChiSq}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){pOneSided}<LEND>[call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){x}<LSEP>[](symbol){df}<LEND>[statement 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){pOneSided}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pOneSided}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pOneSided}<LSEP>[argument 1; litteral](real){2.000000}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.fmdsd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){mean.print}<LSEP>[](symbol){var.print}<LSEP>[](symbol){cor.print}<LSEP>[](symbol){skewness.print}<LSEP>[](symbol){kurtosis.print}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){group variable: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){variables: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variables}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){inertia\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){inertia}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){...}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){scores\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[](symbol){...}<LEND>[statement 8; control flow](){if}<LSEP>[](symbol){mean.print}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.group}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n.var}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Means}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[](symbol){n.group}<LSEP>[](symbol){n.var}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){.}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Means}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[](symbol){Means}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){Means}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){st.dev}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[](symbol){diag}<LEND>[](symbol){sqrt}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Means}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){Means}<LEND>[argument 1; call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){st.dev}<LSEP>[](symbol){n.group}<LSEP>[](symbol){n.var}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){sd}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){means, standard deviations and...}<LEND>[statement 9; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){Means}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){var.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){variances/covariances by group\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){cor.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){correlations by group\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){correlations}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 11; control flow](){if}<LSEP>[](symbol){skewness.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){skewness coefficients by group\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){skewness}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 12; control flow](){if}<LSEP>[](symbol){kurtosis.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){kurtosis coefficients by group\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){kurtosis}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.foldert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xprint}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){tt}<LEND>[range; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){tt}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){tt}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){isna}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){tt}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){is.na}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){isna}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){whichna}<LEND>[call](){}<LSEP>[](symbol){which}<LSEP>[](symbol){isna}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){whichna}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){isna}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){all}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){whichna}<LEND>[call](){}<LSEP>[](symbol){numeric}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){whichna}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xprint}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){tt}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xprint}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){tt}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){whichna}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xprint}<LSEP>[argument 1; litteral](str){times}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){times}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xprint}<LSEP>[argument 1; litteral](str){same.rows}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){same.rows}<LEND>[statement 4; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){xprint}<LSEP>[](symbol){...}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.fdiscd.predict}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){dist.print}<LSEP>[](symbol){prox.print}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){misclassed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alloc}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){confusion.mat}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rsums}<LEND>[call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){alloc}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){csums}<LEND>[call](){}<LSEP>[](symbol){colSums}<LSEP>[](symbol){alloc}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){wellclass}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){alloc}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){namesalloc}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){alloc}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){alloc}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){alloc}<LSEP>[](symbol){rsums}<LEND>[argument 2; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){wellclass}<LSEP>[](symbol){rsums}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){alloc}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){alloc}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){csums}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){csums}<LEND>[argument 2; litteral](logical){NA}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){alloc}<LEND>[](symbol){namesalloc}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){misallocation ratio (computed ...}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){misclassed}<LEND>[argument 1; litteral](str){\n\n}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 11; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){alloc}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){...}<LEND>[statement 12; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){prediction}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){dist.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){distances between groups and c...}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){distances}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){prox.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){groups-classes proximity index\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){proximities}<LEND>[](symbol){...}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.join}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x1}<LEND>[argument 1; litteral](str){genlight}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x2}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type1}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing SNP data in genli...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type1}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type2}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing SNP data in genli...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type2}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){data.type1}<LSEP>[](symbol){data.type2}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Cannot join two g...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x2}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Two genlight obje...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x2}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: the two genlight ...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: the two genligh...}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){latlon}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){latlon}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){latlon}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: the two genligh...}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Concatenating two genlight o...}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x1}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ First genlight object has}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x1}<LEND>[argument 2; litteral](str){loci\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Second genlight object has}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){loci\n}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Input genlight obje...}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Input genlight obje...}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){latlon}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlon}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x1}<LSEP>[](symbol){other}<LEND>[](symbol){latlon}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Input genlight obje...}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x1}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Combined genlight object has}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){loci\n}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[litteral](logical){FALSE}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.recalc.metrics}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Locus metrics recalculated\n}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: new genlight object...}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 26; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){readHeader}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){o}<LEND>[call](){}<LSEP>[](symbol){scan}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](str){\x03}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){filename}<LEND>[](symbol){file}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){header}<LEND>[](symbol){o}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){nchar}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){o}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){DDHHMI}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){8.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){MOYY}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](real){14.000000}<LSEP>[argument 2; litteral](real){17.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){date}<LEND>[call](){}<LSEP>[](symbol){strptime}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){DDHHMI}<LSEP>[argument 1; litteral](str){00-}<LSEP>[](symbol){MOYY}<LEND>[argument 1; litteral](str){%d%H%M%S-%m%y}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){product}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){location}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](real){9.000000}<LSEP>[argument 2; litteral](real){13.000000}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){radius_format}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](real){29.000000}<LSEP>[argument 2; litteral](real){30.000000}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){radolan_version}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](real){35.000000}<LSEP>[argument 2; litteral](real){41.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){PREC}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](real){45.000000}<LSEP>[argument 2; litteral](real){48.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){INT}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](real){52.000000}<LSEP>[argument 2; litteral](real){55.000000}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){precision}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){1}<LSEP>[](symbol){PREC}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){interval_minutes}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){INT}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){DIM}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](str){GP}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){DIM}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){9.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){DIM1}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](str){x}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){DIM1}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){DIM1}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Dimension (}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){,}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){) not correctly identified fro...}<LSEP>[](symbol){DIM}<LSEP>[argument 6; litteral](str){)!}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){dim}<LEND>[](symbol){DIM1}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){RADS}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){o}<LSEP>[argument 1; litteral](str){<}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){RADS}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){RADS}<LSEP>[argument 1; litteral](str){>}<LEND>[argument 1; litteral](str){[}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){radars}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){RADS}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){out}<LSEP>[](symbol){radarn}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){RADS}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 25; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}<LEND>[control flow](){if}<LSEP>[condition; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){dir}<LSEP>[argument 0; litteral](str){tests}<LSEP>[](symbol){T}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){gz$}<LSEP>[](symbol){f}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){testthat$}<LSEP>[](symbol){f}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){testthat.R$}<LSEP>[](symbol){f}<LEND>[](symbol){f}<LEND>[statement 5; call](){}<LSEP>[](symbol){readHeader}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){f}<LSEP>[](symbol){readHeader}<LEND>[](symbol){h}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](str){[}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](str){\n}<LEND>[statement 10; litteral](str){\n12345678901234567\nRW0109501...}<LSEP>[statement 11; litteral](str){\nPD: product\nDDHHMI: day hou...}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){summary.folderh}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){summ.foldh}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){object}<LSEP>[](symbol){summary}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){summ.foldh}<LSEP>[argument 1; litteral](str){keys}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){object}<LSEP>[argument 1; litteral](str){keys}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){summ.foldh}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.refetfurl}<LSEP>[litteral](str){https://api.twelvedata.com/etf}<LEND>[assign](){<-}<LSEP>[](symbol){ref_etf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sym}<LSEP>[](symbol){as}<LSEP>[](symbol){apikey}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){apikey}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){apikey}<LEND>[call](){}<LSEP>[](symbol){.get_apikey}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){as}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){as}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){.refetfurl}<LSEP>[argument 1; litteral](str){?}<LSEP>[argument 2; litteral](str){&apikey=}<LSEP>[](symbol){apikey}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sym}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&symbol=}<LSEP>[](symbol){sym}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){accessed}<LEND>[call](){}<LSEP>[](symbol){format}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[argument 1; litteral](str){UTC}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RcppSimdJson}<LSEP>[](symbol){fload}<LEND>[](symbol){qry}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){as}<LSEP>[argument 1; litteral](str){raw}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){sym}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){res}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[](symbol){sym}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){res}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){status}<LEND>[argument 1; litteral](str){ok}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){message}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){dat}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){dat}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){dat}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The API returned NULL. Try to ...}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){dat}<LSEP>[argument 1; litteral](str){accessed}<LEND>[](symbol){accessed}<LEND>[](symbol){dat}
[](){expression}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){targetDiagram}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){class}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){auto.key}<LSEP>[](symbol){default.scales}<LSEP>[](symbol){scales}<LSEP>[](symbol){type}<LSEP>[](symbol){cuts}<LSEP>[](symbol){par.settings}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){prepareData}<LSEP>[](symbol){data}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){circle}<LEND>[call](){}<LSEP>[](symbol){makeCircles}<LSEP>[](symbol){data}<LSEP>[](symbol){type}<LSEP>[](symbol){cuts}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){radius}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){circle}<LSEP>[](symbol){r}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ff}<LEND>[call](){}<LSEP>[](symbol){as.formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){nmbe ~ nrmsec * sign(difSD)}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){class}<LSEP>[argument 1; litteral](str){}<LEND>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){|}<LSEP>[](symbol){class}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){scales}<LEND>[call](){}<LSEP>[](symbol){modifyList}<LSEP>[](symbol){default.scales}<LSEP>[](symbol){scales}<LEND>[statement 5; call](){}<LSEP>[](symbol){xyplot}<LSEP>[](symbol){ff}<LSEP>[](symbol){data}<LSEP>[](symbol){circle}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[argument 5; litteral](str){iso}<LSEP>[](symbol){scales}<LEND>[argument 7; call](){}<LSEP>[](symbol){extendrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){circle}<LSEP>[](symbol){x}<LEND>[argument 8; call](){}<LSEP>[](symbol){extendrange}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){circle}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){0.100000}<LEND>[](symbol){auto.key}<LSEP>[](symbol){par.settings}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LSEP>[](symbol){circle}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){panel.abline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.600000}<LSEP>[argument 3; litteral](str){gray}<LEND>[statement 1; call](){}<LSEP>[](symbol){panel.xyplot}<LSEP>[](symbol){...}<LEND>[statement 2; call](){}<LSEP>[](symbol){panel.xyplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){circle}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){circle}<LSEP>[](symbol){y}<LEND>[argument 2; litteral](real){0.600000}<LSEP>[argument 3; litteral](str){l}<LSEP>[argument 4; litteral](str){darkgrey}<LEND>[statement 3; call](){}<LSEP>[](symbol){panel.text}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){radius}<LEND>[argument 2; call](){}<LSEP>[](symbol){signif}<LSEP>[](symbol){radius}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](real){0.050000}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){scales}<LSEP>[](symbol){cex}<LEND>[](symbol){...}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){distl2d}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){method}<LSEP>[](symbol){check}<LSEP>[](symbol){varw1}<LSEP>[](symbol){varw2}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){x1}<LSEP>[](symbol){x1}<LSEP>[](symbol){method}<LSEP>[](symbol){check}<LSEP>[](symbol){varw1}<LSEP>[](symbol){varw1}<LEND>[argument 1; call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){x2}<LSEP>[](symbol){x2}<LSEP>[](symbol){method}<LSEP>[](symbol){check}<LSEP>[](symbol){varw2}<LSEP>[](symbol){varw2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){method}<LSEP>[](symbol){check}<LSEP>[](symbol){varw1}<LSEP>[](symbol){varw2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.write.csv}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){cbind.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x1}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){filler1}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){*}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){filler1}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){x3}<LEND>[call](){}<LSEP>[](symbol){cbind.data.frame}<LSEP>[](symbol){x2}<LSEP>[](symbol){x1}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Writing records to}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 14; call](){}<LSEP>[](symbol){write.table}<LSEP>[](symbol){x3}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){,}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 16; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){matddjensenpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){freq}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){freq}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){freq}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){freq}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){freq}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){ddjensenpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){freq}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){freq}<LSEP>[](symbol){j}<LEND>[statement 3; call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){distances}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){setGeneric}<LSEP>[argument 0; litteral](str){replace}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){values}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){replace}<LEND>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){values}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){replace}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ANY}<LSEP>[argument 1; litteral](str){function}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){values}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.atomic}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){replace}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){ind}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[](symbol){values}<LEND>[false branch; call](){}<LSEP>[](symbol){replace}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){vapply}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LEND>[argument 2; call](){}<LSEP>[](symbol){logical}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){...}<LEND>[](symbol){values}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){replace}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ANY}<LSEP>[argument 1; litteral](str){formula}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){values}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){replace}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.function}<LSEP>[](symbol){ind}<LEND>[](symbol){values}<LSEP>[](symbol){...}<LEND>[call](){}<LSEP>[](symbol){setMethod}<LSEP>[argument 0; litteral](str){replace}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ANY}<LSEP>[argument 1; litteral](str){character}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){values}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){^\\^}<LSEP>[](symbol){ind}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){grep}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){ind}<LEND>[statement 1; call](){}<LSEP>[](symbol){replace}<LSEP>[](symbol){x}<LSEP>[](symbol){ind}<LSEP>[](symbol){values}<LSEP>[](symbol){...}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){lda}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){class}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ordered}<LEND>[call](){}<LSEP>[](symbol){lda_organize}<LSEP>[](symbol){x}<LSEP>[](symbol){class}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x_organize}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ordered}<LSEP>[argument 1; litteral](str){features_ordered}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y_organize}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ordered}<LSEP>[argument 1; litteral](str){classes_ordered}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){full_rank}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x_organize}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y_organize}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rank}<LSEP>[argument 1; litteral](str){full}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reduce_rank}<LSEP>[](symbol){full_rank}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){rank}<LSEP>[](symbol){full_rank}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reduce_rank}<LSEP>[](symbol){rank}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){rank out of bounds}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){cva_object}<LEND>[call](){}<LSEP>[](symbol){cva}<LSEP>[](symbol){x_organize}<LSEP>[](symbol){y_organize}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cva_object}<LSEP>[](symbol){G}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){LD}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){reduce_rank}<LEND>[argument 2; litteral](str){}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cva_object}<LSEP>[](symbol){H}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){G}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){class_names}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){class}<LEND>[argument 1; call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){select}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){class}<LEND>[argument 1; call](){}<LSEP>[](symbol){distinct}<LEND>[argument 1; call](){}<LSEP>[](symbol){arrange}<LSEP>[](symbol){class}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){colSums}<LSEP>[](symbol){y_organize}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){num_classes}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y_organize}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){mean_y}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[](symbol){num_classes}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){prior}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){mean_y}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){mean_y}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){prior}<LEND>[](symbol){class_names}<LEND>[statement 16; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){G}<LSEP>[](symbol){H}<LEND>[assign](){<-}<LSEP>[](symbol){lda_scores}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){class}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class_label}<LEND>[call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_data_frame}<LSEP>[](symbol){class}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){class_label}<LEND>[litteral](str){class}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){lda_object}<LEND>[call](){}<LSEP>[](symbol){lda}<LSEP>[](symbol){x}<LSEP>[](symbol){class_label}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ordered}<LEND>[call](){}<LSEP>[](symbol){lda_organize}<LSEP>[](symbol){x}<LSEP>[](symbol){class_label}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){x_organize}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ordered}<LSEP>[argument 1; litteral](str){features_ordered}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){y_organize}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ordered}<LSEP>[argument 1; litteral](str){classes_ordered}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){lda_object}<LSEP>[argument 1; litteral](str){G}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x_organize}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){LD}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){xi}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){lda_object}<LSEP>[argument 1; litteral](str){H}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y_organize}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){xi}<LEND>[statement 10; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){xi}<LSEP>[](symbol){class_label}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){distinct}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){omega}<LSEP>[](symbol){class_label}<LEND>[assign](){<-}<LSEP>[](symbol){lda_pairwise_plot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){class}<LSEP>[](symbol){lda_x}<LSEP>[](symbol){lda_y}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LSEP>[](symbol){interactive}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scores_x}<LEND>[assign](){<-}<LSEP>[](symbol){scores_y}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){scores_object}<LEND>[call](){}<LSEP>[](symbol){lda_scores}<LSEP>[](symbol){x}<LSEP>[](symbol){class}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){scores}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){scores_object}<LSEP>[argument 1; litteral](str){scores}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){scores_x_axis}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){scores}<LSEP>[](symbol){}<LSEP>[](symbol){lda_x}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){scores_y_axis}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){scores}<LSEP>[](symbol){}<LSEP>[](symbol){lda_y}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){scores_class}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){scores}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){scores}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){scores_df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){scores_x_axis}<LSEP>[](symbol){scores_y_axis}<LSEP>[](symbol){scores_class}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){scores_df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){scores_x}<LSEP>[argument 1; litteral](str){scores_y}<LSEP>[argument 2; litteral](str){class}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){means}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){scores_object}<LSEP>[argument 1; litteral](str){class_means}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){means_x_axis}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){means}<LSEP>[](symbol){}<LSEP>[](symbol){lda_x}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){means_y_axis}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){means}<LSEP>[](symbol){}<LSEP>[](symbol){lda_y}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){means_class}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){means}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){means}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){means_df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){means_x_axis}<LSEP>[](symbol){means_y_axis}<LSEP>[](symbol){means_class}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){means_df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){means_x}<LSEP>[argument 1; litteral](str){means_y}<LSEP>[argument 2; litteral](str){class}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){static_plot}<LEND>[call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[](symbol){scores_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){scores_x}<LSEP>[](symbol){scores_y}<LSEP>[](symbol){class}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){LD Pairwise Plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){LD}<LSEP>[](symbol){lda_x}<LSEP>[argument 2; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){LD}<LSEP>[](symbol){lda_y}<LSEP>[argument 2; litteral](str){}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){interactive}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){ggplotly}<LEND>[](symbol){static_plot}<LEND>[false branch; block](){}<LSEP>[](symbol){static_plot}<LEND>[assign](){<-}<LSEP>[](symbol){lda_3D_plot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){class}<LSEP>[](symbol){lda_x}<LSEP>[](symbol){lda_y}<LSEP>[](symbol){lda_z}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LSEP>[](symbol){point_size}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as_data_frame}<LSEP>[](symbol){class}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){scores}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){lda_scores}<LSEP>[](symbol){x}<LSEP>[](symbol){class}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](str){scores}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){scores}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){too few linear discriminant fu...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){scores_x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){scores}<LSEP>[](symbol){}<LSEP>[](symbol){lda_x}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){scores_y}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){scores}<LSEP>[](symbol){}<LSEP>[](symbol){lda_y}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){scores_z}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){scores}<LSEP>[](symbol){}<LSEP>[](symbol){lda_z}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){scores_tbl}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){scores_x}<LSEP>[](symbol){scores_y}<LSEP>[](symbol){scores_z}<LSEP>[](symbol){class}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){scores_tbl}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){x_coord}<LSEP>[argument 1; litteral](str){y_coord}<LSEP>[argument 2; litteral](str){z_coord}<LSEP>[argument 3; litteral](str){class}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ptsize}<LSEP>[](symbol){point_size}<LEND>[statement 9; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){plot_ly}<LEND>[](symbol){scores_tbl}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x_coord}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){y_coord}<LEND>[argument 3; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){z_coord}<LEND>[argument 4; litteral](str){scatter3d}<LSEP>[argument 5; litteral](str){markers}<LEND>[argument 6; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){class}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ptsize}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.dstatis}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){mean.print}<LSEP>[](symbol){var.print}<LSEP>[](symbol){cor.print}<LSEP>[](symbol){skewness.print}<LSEP>[](symbol){kurtosis.print}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){group variable: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){variables: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variables}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){inertia\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){inertia}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){...}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){contributions\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){contributions}<LEND>[](symbol){...}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){qualities\n}<LEND>[statement 10; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){qualities}<LEND>[](symbol){...}<LEND>[statement 11; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 12; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){scores\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[](symbol){...}<LEND>[statement 14; control flow](){if}<LSEP>[](symbol){mean.print}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.group}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n.var}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Means}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[](symbol){n.group}<LSEP>[](symbol){n.var}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variables}<LEND>[argument 2; litteral](str){.}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Means}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[](symbol){Means}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){Means}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){contributions}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){n.var}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){st.dev}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[](symbol){diag}<LEND>[](symbol){sqrt}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){st.dev}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[](symbol){sqrt}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Means}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){Means}<LEND>[argument 1; call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){st.dev}<LSEP>[](symbol){n.group}<LSEP>[](symbol){n.var}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){sd}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variables}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Means}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){Means}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){norm}<LEND>[](symbol){norm}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){means, standard deviations and...}<LEND>[statement 10; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){Means}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 15; control flow](){if}<LSEP>[](symbol){var.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){variances/covariances by group\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 16; control flow](){if}<LSEP>[](symbol){cor.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){correlations by group\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){correlations}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 17; control flow](){if}<LSEP>[](symbol){skewness.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){skewness coefficients by group\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){skewness}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 18; control flow](){if}<LSEP>[](symbol){kurtosis.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){kurtosis coefficients by group\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){kurtosis}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 19; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}
[](){expression}<LSEP>[litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.overshoot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Detected Presence/Absence (S...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){TrimmedSequence}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Data must include...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){SnpPosition}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Data must include...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Identifying loci for which t...}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){trimmed}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){TrimmedSequence}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){snpos}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){SnpPosition}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){snpos}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){snpos}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){xx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){snpos}<LEND>[argument 1; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){trimmed}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci with SNP falling...}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){xx}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){xx}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){xx}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleting loci with SNPs fall...}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){snpos}<LEND>[argument 1; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){trimmed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){xx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){index}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){xx}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){index}<LSEP>[](symbol){}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){xx}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){xx}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 22; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){xx}
[](){expression}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){ata}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pool}<LSEP>[](symbol){n_forms}<LSEP>[](symbol){test_len}<LSEP>[](symbol){max_use}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pool}<LEND>[call](){}<LSEP>[](symbol){ata_check_item_pool}<LSEP>[](symbol){pool}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){opts}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){D}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){D}<LEND>[litteral](real){1.702000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){form_map}<LEND>[call](){}<LSEP>[](symbol){ata_form_map}<LSEP>[](symbol){n_forms}<LSEP>[](symbol){opts}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){n_forms}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){form_map}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){groups}<LEND>[call](){}<LSEP>[](symbol){ata_item_set_groups}<LSEP>[](symbol){pool}<LSEP>[](symbol){opts}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){n_items}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){groups}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){n_lpvar}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n_items}<LSEP>[](symbol){n_forms}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n_lpvar}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_forms}<LEND>[](symbol){n_items}<LEND>[argument 2; litteral](str){v}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n_items}<LEND>[](symbol){n_forms}<LEND>[argument 4; litteral](str){}<LEND>[argument 1; litteral](str){y1}<LSEP>[argument 2; litteral](str){y2}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){types}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n_lpvar}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){C}<LSEP>[argument 2; litteral](str){C}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){bounds}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){max}<LSEP>[litteral](logical){TRUE}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){negative}<LSEP>[litteral](logical){FALSE}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n_lpvar}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){obj}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){dir}<LEND>[assign](){<-}<LSEP>[](symbol){rhs}<LSEP>[litteral](NULL){NULL}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){n_items}<LSEP>[](symbol){n_forms}<LSEP>[](symbol){n_lpvar}<LSEP>[](symbol){pool}<LSEP>[](symbol){groups}<LSEP>[](symbol){form_map}<LSEP>[](symbol){obj}<LSEP>[](symbol){mat}<LSEP>[](symbol){dir}<LSEP>[](symbol){rhs}<LSEP>[](symbol){types}<LSEP>[](symbol){bounds}<LSEP>[](symbol){max}<LSEP>[](symbol){negative}<LSEP>[](symbol){opts}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[litteral](str){ata}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test_len}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){test_len}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid test_len. Expect 1 or ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){test_len}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){test_len}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){test_len}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){ata_constraint}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_len}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test_len}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){common_items}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){common_items}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){common_items}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){common_items}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){ata_constraint}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){common_items}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){common_items}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n_forms}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){overlap_items}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){overlap_items}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){overlap_items}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){overlap_items}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){ata_constraint}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){groups}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){overlap_items}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){opts}<LSEP>[](symbol){overlap_items}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){form_map}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 5; litteral](logical){TRUE}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){max_use}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){ata_item_use}<LSEP>[](symbol){x}<LSEP>[](symbol){max_use}<LEND>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){ata_relative_objective}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){coef}<LSEP>[](symbol){mode}<LSEP>[](symbol){tol}<LSEP>[](symbol){negative}<LSEP>[](symbol){forms}<LSEP>[](symbol){collapse}<LSEP>[](symbol){internal_index}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ata}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Not an 'ata' object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){forms}<LEND>[call](){}<LSEP>[](symbol){ata_get_form_index}<LSEP>[](symbol){x}<LSEP>[](symbol){forms}<LSEP>[](symbol){collapse}<LSEP>[](symbol){internal_index}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){ata_get_obj_coef}<LSEP>[](symbol){x}<LSEP>[](symbol){coef}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){negative}<LEND>[](symbol){negative}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){max}<LEND>[call](){}<LSEP>[](symbol){switch}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){mode}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){max}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){tol}<LEND>[true branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tol}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tol}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tol}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){tol}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[](symbol){tol}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[](symbol){tol}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){tol}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[litteral](real){0.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){forms}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){dir}<LEND>[assign](){<-}<LSEP>[](symbol){rhs}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){forms}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){forms}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){forms}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){outer}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[argument 2; litteral](str){+}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){ind}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coef}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coef}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){max}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){>=}<LSEP>[argument 1; litteral](str){<=}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rhs}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 10; call](){}<LSEP>[](symbol){ata_append}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LSEP>[](symbol){dir}<LSEP>[](symbol){rhs}<LEND>[assign](){<-}<LSEP>[](symbol){ata_absolute_objective}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){coef}<LSEP>[](symbol){target}<LSEP>[](symbol){equal_tol}<LSEP>[](symbol){tol_up}<LSEP>[](symbol){tol_down}<LSEP>[](symbol){forms}<LSEP>[](symbol){collapse}<LSEP>[](symbol){internal_index}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ata}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Not an 'ata' object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){forms}<LEND>[call](){}<LSEP>[](symbol){ata_get_form_index}<LSEP>[](symbol){x}<LSEP>[](symbol){forms}<LSEP>[](symbol){collapse}<LSEP>[](symbol){internal_index}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){ata_get_obj_coef}<LSEP>[](symbol){x}<LSEP>[](symbol){coef}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){target}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){target}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid target length.}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){max}<LEND>[litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){forms}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){dir}<LEND>[assign](){<-}<LSEP>[](symbol){rhs}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){forms}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){forms}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){forms}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){outer}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[argument 2; litteral](str){+}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coef}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coef}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){0.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){>=}<LSEP>[argument 1; litteral](str){<=}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rhs}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){row}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){target}<LSEP>[](symbol){j}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){equal_tol}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](str){=}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rhs}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){rhs}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){tol_down}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tol_down}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid tol_down input. Expect...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tol_down}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tol_down}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){tol_up}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tol_up}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid tol_up input. Expect 2...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tol_up}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tol_up}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 13; call](){}<LSEP>[](symbol){ata_append}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LSEP>[](symbol){dir}<LSEP>[](symbol){rhs}<LEND>[assign](){<-}<LSEP>[](symbol){ata_constraint}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){coef}<LSEP>[](symbol){min}<LSEP>[](symbol){max}<LSEP>[](symbol){level}<LSEP>[](symbol){forms}<LSEP>[](symbol){collapse}<LSEP>[](symbol){internal_index}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ata}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Not an 'ata' object}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){max}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){max}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){min}<LSEP>[](symbol){max}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){min is greater than max.}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){forms}<LEND>[call](){}<LSEP>[](symbol){ata_get_form_index}<LSEP>[](symbol){x}<LSEP>[](symbol){forms}<LSEP>[](symbol){collapse}<LSEP>[](symbol){internal_index}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coef}<LSEP>[](symbol){coef}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){aggregate}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[](symbol){sum}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){aggregate}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[](symbol){sum}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){Map}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){g}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){numeric}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){coef}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){g}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){level}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){level}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){coef}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){coef}<LEND>[](symbol){level}<LEND>[statement 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){aggregate}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){g}<LEND>[](symbol){sum}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pool}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coef}<LEND>[call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){coef}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid coefficients}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){max}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){min}<LSEP>[](symbol){max}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){forms}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){forms}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){dir}<LEND>[assign](){<-}<LSEP>[](symbol){rhs}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){n}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){forms}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){forms}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){outer}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[argument 2; litteral](str){+}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){max}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){i}<LSEP>[](symbol){ind}<LEND>[](symbol){coef}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LSEP>[](symbol){i}<LEND>[litteral](str){>=}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rhs}<LSEP>[](symbol){i}<LEND>[](symbol){min}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){max}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){i}<LSEP>[](symbol){ind}<LEND>[](symbol){coef}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LSEP>[](symbol){i}<LEND>[litteral](str){<=}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rhs}<LSEP>[](symbol){i}<LEND>[](symbol){max}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){min}<LSEP>[](symbol){max}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){i}<LSEP>[](symbol){ind}<LEND>[](symbol){coef}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LSEP>[](symbol){i}<LEND>[litteral](str){=}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rhs}<LSEP>[](symbol){i}<LEND>[](symbol){min}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){ind}<LEND>[](symbol){coef}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){ind}<LEND>[](symbol){coef}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){>=}<LSEP>[argument 1; litteral](str){<=}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rhs}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){min}<LSEP>[](symbol){max}<LEND>[statement 9; call](){}<LSEP>[](symbol){ata_append}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LSEP>[](symbol){dir}<LSEP>[](symbol){rhs}<LEND>[assign](){<-}<LSEP>[](symbol){ata_item_use}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){min}<LSEP>[](symbol){max}<LSEP>[](symbol){items}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ata}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){not an 'ata' object}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){max}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){min and max are both NA}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){items}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){items}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){items}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid items input}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nitems}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){items}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){max}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nitems}<LSEP>[](symbol){n}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){items}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){items}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_forms}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[](symbol){ind}<LEND>[litteral](real){1.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){max}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){>=}<LSEP>[](symbol){nitems}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rhs}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){min}<LSEP>[](symbol){nitems}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){min}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){max}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){<=}<LSEP>[](symbol){nitems}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rhs}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){max}<LSEP>[](symbol){nitems}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){>=}<LSEP>[argument 1; litteral](str){<=}<LEND>[](symbol){nitems}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rhs}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){min}<LSEP>[](symbol){max}<LEND>[](symbol){nitems}<LEND>[statement 9; call](){}<LSEP>[](symbol){ata_append}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LSEP>[](symbol){dir}<LSEP>[](symbol){rhs}<LEND>[assign](){<-}<LSEP>[](symbol){ata_item_enemy}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){items}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ata}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){not an 'ata' object}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){items}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid item index}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){form_map}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_lpvar}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){form_map}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){form_map}<LEND>[](symbol){i}<LSEP>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){items}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){i}<LSEP>[](symbol){ind}<LEND>[litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){<=}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_forms}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rhs}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_forms}<LEND>[statement 6; call](){}<LSEP>[](symbol){ata_append}<LSEP>[](symbol){x}<LSEP>[](symbol){mat}<LSEP>[](symbol){dir}<LSEP>[](symbol){rhs}<LEND>[assign](){<-}<LSEP>[](symbol){ata_item_fix}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){items}<LSEP>[](symbol){min}<LSEP>[](symbol){max}<LSEP>[](symbol){forms}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ata}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Not an 'ata' object}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){items}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid items input.}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){forms}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fix values in one form at each...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){items}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){min}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){min}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){min}<LSEP>[](symbol){n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){max}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){max}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){max}<LSEP>[](symbol){n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){min}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){max}<LEND>[](symbol){n}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid min or max length.}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){items}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){forms}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n_items}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){lb}<LEND>[](symbol){min}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bounds}<LEND>[](symbol){ub}<LEND>[](symbol){max}<LEND>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){ata_solve}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){solver}<LSEP>[](symbol){return_format}<LSEP>[](symbol){silent}<LSEP>[](symbol){time_limit}<LSEP>[](symbol){message}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ata}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Not an 'ata' object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rs}<LEND>[call](){}<LSEP>[](symbol){switch}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){solver}<LSEP>[](symbol){solver}<LEND>[argument 1; call](){}<LSEP>[](symbol){ata_lpsolve}<LSEP>[](symbol){x}<LSEP>[](symbol){time_limit}<LSEP>[](symbol){message}<LSEP>[](symbol){...}<LEND>[argument 2; call](){}<LSEP>[](symbol){ata_glpk}<LSEP>[](symbol){x}<LSEP>[](symbol){time_limit}<LSEP>[](symbol){message}<LSEP>[](symbol){...}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){code}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){code}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){status}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){status}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){optimum}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){optimum}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){obj_vars}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){obj_vars}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){start_time}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){start_time}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){solve_time}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){solve_time}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){result}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){result}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){items}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){silent}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){No solution for the LP model.\n}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){silent}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){status}<LEND>[argument 1; litteral](str){, optimum: }<LEND>[argument 2; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){optimum}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 3; litteral](str){ (}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){obj_vars}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](str){, }<LEND>[argument 5; litteral](str){)\n}<LSEP>[argument 6; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rs}<LSEP>[](symbol){result}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){items}<LEND>[call](){}<LSEP>[](symbol){ata_extract_items}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){return_format}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){return_format}<LSEP>[](symbol){return_format}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){return_format}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){model}<LSEP>[argument 1; litteral](str){simple}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){items}<LEND>[call](){}<LSEP>[](symbol){ata_results_to_model}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){items}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){return_format}<LSEP>[argument 1; litteral](str){simple}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){items}<LEND>[call](){}<LSEP>[](symbol){ata_results_to_dataframe}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){items}<LEND>[](symbol){x}
[](){expression}<LSEP>[litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){sakoeChibaWindow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){iw}<LSEP>[](symbol){jw}<LSEP>[](symbol){window.size}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){jw}<LSEP>[](symbol){iw}<LEND>[](symbol){window.size}<LEND>[assign](){<-}<LSEP>[](symbol){slantedBandWindow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){iw}<LSEP>[](symbol){jw}<LSEP>[](symbol){query.size}<LSEP>[](symbol){reference.size}<LSEP>[](symbol){window.size}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){diagj}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){iw}<LSEP>[](symbol){reference.size}<LEND>[](symbol){query.size}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){jw}<LSEP>[](symbol){diagj}<LEND>[](symbol){window.size}<LEND>[assign](){<-}<LSEP>[](symbol){itakuraWindow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){iw}<LSEP>[](symbol){jw}<LSEP>[](symbol){query.size}<LSEP>[](symbol){reference.size}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LSEP>[](symbol){query.size}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){m}<LSEP>[](symbol){reference.size}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ok}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){jw}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){iw}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){iw}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){jw}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){iw}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m}<LSEP>[](symbol){jw}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){jw}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){m}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[](symbol){iw}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){ok}<LEND>[assign](){<-}<LSEP>[](symbol){dtwWindow.plot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fun}<LSEP>[](symbol){query.size}<LSEP>[](symbol){reference.size}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LSEP>[](symbol){query.size}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){m}<LSEP>[](symbol){reference.size}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mm}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LSEP>[](symbol){m}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mm}<LEND>[argument 1; call](){}<LSEP>[](symbol){fun}<LEND>[argument 0; call](){}<LSEP>[](symbol){row}<LSEP>[](symbol){mm}<LEND>[argument 1; call](){}<LSEP>[](symbol){col}<LSEP>[](symbol){mm}<LEND>[](symbol){n}<LSEP>[](symbol){m}<LSEP>[](symbol){...}<LEND>[litteral](real){1.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){image}<LSEP>[](symbol){mm}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){m}<LEND>[argument 3; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){Query: samples 1..%d}<LSEP>[](symbol){n}<LEND>[argument 4; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){Reference: samples 1..%d}<LSEP>[](symbol){m}<LEND>[assign](){<-}<LSEP>[](symbol){noWindow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){iw}<LSEP>[](symbol){jw}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](logical){TRUE}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.quoteurl}<LSEP>[litteral](str){https://api.twelvedata.com/quote}<LEND>[assign](){<-}<LSEP>[](symbol){get_quote}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sym}<LSEP>[](symbol){interval}<LSEP>[](symbol){as}<LSEP>[](symbol){exchange}<LSEP>[](symbol){country}<LSEP>[](symbol){volume_time_period}<LSEP>[](symbol){type}<LSEP>[](symbol){dp}<LSEP>[](symbol){timezone}<LSEP>[](symbol){apikey}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){apikey}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){apikey}<LEND>[call](){}<LSEP>[](symbol){.get_apikey}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){interval}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){interval}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){as}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){as}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){type}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){.quoteurl}<LSEP>[argument 1; litteral](str){?}<LSEP>[argument 2; litteral](str){symbol=}<LSEP>[](symbol){sym}<LSEP>[argument 4; litteral](str){&interval=}<LSEP>[](symbol){interval}<LSEP>[argument 6; litteral](str){&apikey=}<LSEP>[](symbol){apikey}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){exchange}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&exchange=}<LSEP>[](symbol){exchange}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){country}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&country=}<LSEP>[](symbol){country}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){volume_time_period}<LSEP>[argument 1; litteral](real){9.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&volume_time_period=}<LSEP>[](symbol){volume_time_period}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){type}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&type=}<LSEP>[](symbol){type}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){dp}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&dp=}<LSEP>[](symbol){dp}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){timezone}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&timezone=}<LSEP>[](symbol){timezone}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){accessed}<LEND>[call](){}<LSEP>[](symbol){format}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RcppSimdJson}<LSEP>[](symbol){fload}<LEND>[](symbol){qry}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){as}<LSEP>[argument 1; litteral](str){raw}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){sym}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reslist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){res}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reslist}<LSEP>[](symbol){res}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){reslist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){elem}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){elem}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){datetime}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){datetime}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){field}<LEND>[range; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){open}<LSEP>[argument 1; litteral](str){high}<LSEP>[argument 2; litteral](str){low}<LSEP>[argument 3; litteral](str){close}<LSEP>[argument 4; litteral](str){volume}<LSEP>[argument 5; litteral](str){previous_close}<LSEP>[argument 6; litteral](str){change}<LSEP>[argument 7; litteral](str){percent_change}<LSEP>[argument 8; litteral](str){average_volume}<LSEP>[argument 9; litteral](str){fifty_two_week.low}<LSEP>[argument 10; litteral](str){fifty_two_week.high}<LSEP>[argument 11; litteral](str){fifty_two_week.low_change}<LSEP>[argument 12; litteral](str){fifty_two_week.high_change}<LSEP>[argument 13; litteral](str){fifty_two_week.low_change_percent}<LSEP>[argument 14; litteral](str){fifty_two_week.high_change_per...}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){res}<LSEP>[](symbol){field}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){res}<LSEP>[](symbol){field}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){res}<LSEP>[argument 1; litteral](str){accessed}<LEND>[](symbol){accessed}<LEND>[](symbol){res}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ret}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ret}<LEND>[](symbol){sym}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LSEP>[](symbol){ret}<LEND>[](symbol){ret}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){magrittr}<LSEP>[argument 1; litteral](str){%>%}<LEND>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){MASS}<LSEP>[](symbol){ginv}<LEND>[assign](){<-}<LSEP>[](symbol){sqrt_matrix}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){matr}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eigens}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){matr}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){vecs}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){eigens}<LSEP>[argument 1; litteral](str){vectors}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){vals}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){eigens}<LSEP>[argument 1; litteral](str){values}<LEND>[statement 3; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){vecs}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){vals}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){vecs}<LEND>[assign](){<-}<LSEP>[](symbol){organize}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){vars}<LSEP>[](symbol){type}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matr}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){vars}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){cov}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){matr}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){cor}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){matr}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){type not recognized}<LEND>[assign](){<-}<LSEP>[](symbol){cov_matrix}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){type}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x_org}<LEND>[call](){}<LSEP>[](symbol){organize}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y_org}<LEND>[call](){}<LSEP>[](symbol){organize}<LSEP>[](symbol){y}<LSEP>[](symbol){type}<LEND>[statement 3; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[](symbol){n}<LEND>[assign](){<-}<LSEP>[](symbol){binary_matrix}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){class}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){as_data_frame}<LEND>[](symbol){class}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){num_class}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){class}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate_if}<LEND>[](symbol){class}<LSEP>[](symbol){is.factor}<LSEP>[](symbol){as.character}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){model.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){class}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){num_class}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){class}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){mat}<LEND>[](symbol){mat}<LEND>[assign](){<-}<LSEP>[](symbol){square}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){expand_feature_space}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){feature_space}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){feature_space}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){as_data_frame}<LEND>[](symbol){feature_space}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){feature_squares}<LEND>[call](){}<LSEP>[](symbol){%>%}<LSEP>[](symbol){feature_space}<LEND>[argument 1; call](){}<LSEP>[](symbol){mutate_each}<LEND>[argument 0; call](){}<LSEP>[](symbol){funs}<LSEP>[](symbol){square}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){feature_squares}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){feature_space}<LEND>[argument 1; litteral](str){_squared}<LSEP>[argument 2; litteral](str){}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){feature_space}<LSEP>[](symbol){feature_squares}<LEND>[assign](){<-}<LSEP>[](symbol){lda_organize}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){features}<LSEP>[](symbol){classes}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){classes}<LEND>[call](){}<LSEP>[](symbol){as_data_frame}<LSEP>[](symbol){classes}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){classes}<LEND>[litteral](str){class}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){classes}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){too few classes for multiclass...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){combine_df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){features}<LSEP>[](symbol){classes}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){arrange_df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){arrange}<LEND>[](symbol){combine_df}<LSEP>[](symbol){class}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){features_ordered}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){combine_df}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){class}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){classes_ordered}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select}<LEND>[](symbol){combine_df}<LSEP>[](symbol){class}<LEND>[statement 7; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){scale}<LSEP>[](symbol){features_ordered}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){binary_matrix}<LSEP>[](symbol){classes_ordered}<LEND>[argument 2; litteral](logical){FALSE}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mutar}<LSEP>[](symbol){[.DataFrame}<LEND>[assign](){<-}<LSEP>[](symbol){filtar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){mutar}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[assign](){<-}<LSEP>[](symbol){sumar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LSEP>[](symbol){by}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){mutar}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LSEP>[](symbol){by}<LEND>[assign](){<-}<LSEP>[](symbol){withReference}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){expr}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){old}<LEND>[call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){old}<LEND>[](symbol){expr}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){predict.rrat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){newdata}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){new_rq_y}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){newdata}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){taus}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){new_rq_y}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){new_rq_y}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){quantreg}<LSEP>[](symbol){predict.rq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){rq_model}<LEND>[](symbol){j}<LEND>[](symbol){newdata}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){new_rq_y_mean}<LEND>[call](){}<LSEP>[](symbol){rowMeans}<LSEP>[](symbol){new_rq_y}<LEND>[statement 3; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){new_rq_y_mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){bias_correction}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){dr.fit.psir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){nslices}<LSEP>[](symbol){pool}<LSEP>[](symbol){slice.function}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){psir}<LSEP>[](symbol){object}<LSEP>[](symbol){nslices}<LSEP>[](symbol){pool}<LSEP>[](symbol){slice.function}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[](symbol){numdir}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){method}<LEND>[litteral](str){psir}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){psir}<LSEP>[argument 1; litteral](str){sir}<LSEP>[argument 2; litteral](str){dr}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){psir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){nslices}<LSEP>[](symbol){pool}<LSEP>[](symbol){slice.function}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){dr.x}<LSEP>[](symbol){object}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){X}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){X}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){group.names}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nG}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group.names}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){numeric}<LSEP>[](symbol){n}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nG}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.names}<LSEP>[](symbol){j}<LEND>[](symbol){j}<LEND>[statement 9; assign](){<-}<LSEP>[variable; litteral](str){%^%}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){A}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){A}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){A}<LSEP>[](symbol){n}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eg}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){A}<LEND>[statement 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eg}<LSEP>[](symbol){vectors}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eg}<LSEP>[](symbol){values}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eg}<LSEP>[](symbol){vectors}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){Sigma.pool}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){Sigma}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){p}<LSEP>[](symbol){nG}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){wt.cov}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){w}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xbarw}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xc}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){xbarw}<LEND>[statement 2; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){xc}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xc}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){x}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){slice}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nslices}<LEND>[](symbol){nG}<LEND>[](symbol){nslices}<LEND>[false branch; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){nslices}<LSEP>[](symbol){nG}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){info}<LSEP>[litteral](NULL){NULL}<LEND>[statement 15; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nG}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.names}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){info}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){slice.function}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){sel}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){slice}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){wt.cov}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){sel}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){sel}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Sigma.pool}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Sigma.pool}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){sel}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[](symbol){n}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){slice.info}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LSEP>[](symbol){info}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){psir1}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){group.sel}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.names}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Z}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){group.sel}<LSEP>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){group.sel}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Scale}<LEND>[control flow](){if}<LSEP>[](symbol){pool}<LSEP>[](symbol){Sigma.pool}<LEND>[false branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Z}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){Z}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%^%}<LSEP>[](symbol){Scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){zmeans}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){info}<LSEP>[](symbol){k}<LEND>[](symbol){nslices}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){info}<LSEP>[](symbol){k}<LEND>[](symbol){nslices}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){slice.sel}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){info}<LSEP>[](symbol){k}<LEND>[](symbol){slice.indicator}<LEND>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){slice.sel}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){p}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){slice.sel}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){mean}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){zmeans}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){slice.sel}<LEND>[](symbol){n}<LEND>[](symbol){mu}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){stat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gamma}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%^%}<LSEP>[](symbol){Scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){gamma}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){info}<LSEP>[](symbol){k}<LEND>[](symbol){nslices}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){r}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){st}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){H}<LEND>[](symbol){zmeans}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){svd}<LSEP>[](symbol){zmeans}<LEND>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){st}<LSEP>[](symbol){wts}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){zmeans}<LSEP>[](symbol){stat}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){zmeans}<LSEP>[litteral](NULL){NULL}<LEND>[statement 19; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nG}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){zmeans}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){zmeans}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){psir1}<LSEP>[](symbol){k}<LEND>[](symbol){zmeans}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){svd}<LSEP>[](symbol){zmeans}<LSEP>[](symbol){p}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%^%}<LSEP>[](symbol){Sigma.pool}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){u}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.x}<LSEP>[](symbol){object}<LEND>[argument 1; litteral](str){dimnames}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){evectors}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){d}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){slice}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[](symbol){nG}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){st}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[assign](){<-}<LSEP>[](symbol){pv}<LSEP>[litteral](real){0.000000}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[](symbol){nG}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[](symbol){i}<LEND>[](symbol){nG}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pv}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){st}<LSEP>[](symbol){df}<LSEP>[](symbol){pv}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rr}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){D vs >= }<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[argument 3; litteral](str){D}<LSEP>[argument 4; litteral](str){}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){rr}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stat}<LSEP>[argument 1; litteral](str){df}<LSEP>[argument 2; litteral](str){p.value}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){z}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){coordinate.test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){H}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){H}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){st}<LSEP>[litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){wts}<LSEP>[litteral](real){0.000000}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nG}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tp}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){psir1}<LSEP>[](symbol){k}<LEND>[](symbol){stat}<LEND>[](symbol){H}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){st}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tp}<LSEP>[](symbol){st}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){wts}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tp}<LSEP>[](symbol){wts}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){wts}<LSEP>[](symbol){r}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){testr}<LEND>[call](){}<LSEP>[](symbol){dr.pvalue}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){wts}<LSEP>[argument 1; litteral](real){0.000010}<LEND>[](symbol){st}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){chi2approx}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testr}<LSEP>[](symbol){df.adj}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){pv}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testr}<LSEP>[](symbol){pval.adj}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){st}<LSEP>[](symbol){pv}<LEND>[statement 25; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evectors}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){slice.info}<LSEP>[](symbol){test}<LSEP>[](symbol){coordinate.test}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.psir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){test}<LEND>[](symbol){numdir}<LEND>[assign](){<-}<LSEP>[](symbol){dr.coordinate.test.psir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){hypothesis}<LEND>[argument 1; litteral](str){formula}<LEND>[true branch; call](){}<LSEP>[](symbol){coord.hyp.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LEND>[false branch; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){hypothesis}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coordinate.test}<LEND>[](symbol){gamma}<LEND>[assign](){<-}<LSEP>[](symbol){summary.psir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){summary.dr}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){method}<LEND>[litteral](str){psir}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gps}<LEND>[assign](){<-}<LSEP>[](symbol){sizes}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){g}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gps}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){gps}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){a1}<LSEP>[](symbol){g}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sizes}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sizes}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){a1}<LSEP>[](symbol){g}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){nslices}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){gps}<LSEP>[argument 1; litteral](str){ }<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){sizes}<LEND>[](symbol){sizes}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){summary.psir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){call}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nd}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){numdir}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){evalues}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){evectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){method}<LEND>[litteral](str){psir}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gps}<LEND>[assign](){<-}<LSEP>[](symbol){sizes}<LSEP>[litteral](NULL){NULL}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){g}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gps}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){gps}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){a1}<LSEP>[](symbol){g}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sizes}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){sizes}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){a1}<LSEP>[](symbol){g}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){nslices}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){gps}<LSEP>[argument 1; litteral](str){ }<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){sizes}<LEND>[](symbol){sizes}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){weights}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){sw}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){weights}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){y}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){cases}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){ols.fit}<LEND>[call](){}<LSEP>[](symbol){qr.fitted}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){qr}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sw}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){y}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){angles}<LEND>[call](){}<LSEP>[](symbol){cosangle}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.direction}<LSEP>[](symbol){object}<LEND>[](symbol){ols.fit}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){angles}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){angles}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){angles}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nd}<LEND>[false branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){angles}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nd}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){angles}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){angles}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){y.name}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){angle.names}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){angles}<LEND>[true branch; litteral](str){R^2(OLS|dr)}<LEND>[false branch; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){R^2(}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){angles}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){|dr)}<LSEP>[argument 3; litteral](str){}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){evalues}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){evalues}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nd}<LEND>[](symbol){angles}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){evalues}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Eigenvalues}<LSEP>[](symbol){angle.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){NCOL}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){evalues}<LEND>[argument 2; litteral](str){}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){dr.test}<LSEP>[](symbol){object}<LSEP>[](symbol){nd}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){ans}<LEND>[litteral](str){summary.dr}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){drop1.psir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){scope}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){drop1.dr}<LSEP>[](symbol){object}<LSEP>[](symbol){scope}<LSEP>[](symbol){...}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.play.history}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){history}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){history}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){hist2}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){history}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){hist2}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[](symbol){history}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){history}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){hist2}<LSEP>[](symbol){history}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){hist2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){glhist}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){hist2}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){narg}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){glhist}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ll}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ll}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){narg}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){glhist}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){narg}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ll}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){glhist}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){narg}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){glhist}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){gl.read.dart}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ll}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){x}<LEND>[false branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ll}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){gout}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n############################...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){###########Running ###########...}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){glhist}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){gout}<LEND>[call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){glhist}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){ll}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n############################...}<LEND>[statement 9; call](){}<LSEP>[](symbol){flush.console}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){hist2}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){gl.read.dart}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gout}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[](symbol){hist2}<LEND>[false branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gout}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[](symbol){hist2}<LEND>[](symbol){gout}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.refearliesttimestampurl}<LSEP>[litteral](str){https://api.twelvedata.com/ear...}<LEND>[assign](){<-}<LSEP>[](symbol){ref_earliest_timestamp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sym}<LSEP>[](symbol){interval}<LSEP>[](symbol){as}<LSEP>[](symbol){exchange}<LSEP>[](symbol){timezone}<LSEP>[](symbol){apikey}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){apikey}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){apikey}<LEND>[call](){}<LSEP>[](symbol){.get_apikey}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){as}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){as}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){interval}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){interval}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){.refearliesttimestampurl}<LSEP>[argument 1; litteral](str){?}<LSEP>[argument 2; litteral](str){&apikey=}<LSEP>[](symbol){apikey}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&symbol=}<LSEP>[](symbol){sym}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&interval=}<LSEP>[](symbol){interval}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){exchange}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&exchange=}<LSEP>[](symbol){exchange}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){timezone}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&timezone=}<LSEP>[](symbol){timezone}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){accessed}<LEND>[call](){}<LSEP>[](symbol){format}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[argument 1; litteral](str){UTC}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RcppSimdJson}<LSEP>[](symbol){fload}<LEND>[](symbol){qry}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){as}<LSEP>[argument 1; litteral](str){raw}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){status}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){status}<LEND>[argument 1; litteral](str){ok}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){message}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.POSIXct}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){datetime}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){unix_time}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){dat}<LSEP>[argument 1; litteral](str){accessed}<LEND>[](symbol){accessed}<LEND>[](symbol){dat}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){matddchisqsym}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x must be an object of class '...}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){ddchisqsym}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){j}<LEND>[statement 4; call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){distances}
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){dst}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){variant}<LSEP>[](symbol){inverted}<LEND>[body; call](){}<LSEP>[](symbol){dtt}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){dst}<LSEP>[](symbol){variant}<LSEP>[](symbol){inverted}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.baseurl}<LSEP>[litteral](str){https://api.twelvedata.com/tim...}<LEND>[assign](){<-}<LSEP>[](symbol){time_series}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sym}<LSEP>[](symbol){interval}<LSEP>[](symbol){as}<LSEP>[](symbol){exchange}<LSEP>[](symbol){country}<LSEP>[](symbol){type}<LSEP>[](symbol){outputsize}<LSEP>[](symbol){dp}<LSEP>[](symbol){order}<LSEP>[](symbol){timezone}<LSEP>[](symbol){start_date}<LSEP>[](symbol){end_date}<LSEP>[](symbol){previous_close}<LSEP>[](symbol){apikey}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){apikey}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){apikey}<LEND>[call](){}<LSEP>[](symbol){.get_apikey}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){interval}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){interval}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){as}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){as}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){type}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){order}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){order}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){start_date}<LSEP>[argument 1; litteral](str){Date}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){start_date}<LEND>[call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){start_date}<LSEP>[argument 1; litteral](str){%Y-%m-%d}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){end_date}<LSEP>[argument 1; litteral](str){Date}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){end_date}<LEND>[call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){end_date}<LSEP>[argument 1; litteral](str){%Y-%m-%d}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){start_date}<LSEP>[argument 1; litteral](str){POSIXt}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){start_date}<LEND>[call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){start_date}<LSEP>[argument 1; litteral](str){%Y-%m-%d %H:%M:%S}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){end_date}<LSEP>[argument 1; litteral](str){POSIXt}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){end_date}<LEND>[call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){end_date}<LSEP>[argument 1; litteral](str){%Y-%m-%d %H:%M:%S}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){.baseurl}<LSEP>[argument 1; litteral](str){?}<LSEP>[argument 2; litteral](str){symbol=}<LSEP>[](symbol){sym}<LSEP>[argument 4; litteral](str){&interval=}<LSEP>[](symbol){interval}<LSEP>[argument 6; litteral](str){&apikey=}<LSEP>[](symbol){apikey}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){exchange}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&exchange=}<LSEP>[](symbol){exchange}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){country}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&country=}<LSEP>[](symbol){country}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){type}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&type=}<LSEP>[](symbol){type}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){outputsize}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&outputsize=}<LSEP>[](symbol){outputsize}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){dp}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&dp=}<LSEP>[](symbol){dp}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){order}<LSEP>[argument 1; litteral](str){ASC}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&order=}<LSEP>[](symbol){order}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){timezone}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&timezone=}<LSEP>[](symbol){timezone}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){start_date}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&start_date=}<LEND>[argument 2; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\s}<LSEP>[argument 1; litteral](str){%20}<LSEP>[](symbol){start_date}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){end_date}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&end_date=}<LEND>[argument 2; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\s}<LSEP>[argument 1; litteral](str){%20}<LSEP>[](symbol){end_date}<LEND>[statement 19; control flow](){if}<LSEP>[](symbol){previous_close}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&previous_close=true}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){accessed}<LEND>[call](){}<LSEP>[](symbol){format}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RcppSimdJson}<LSEP>[](symbol){fload}<LEND>[](symbol){qry}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){as}<LSEP>[argument 1; litteral](str){raw}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){res}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){meta}<LSEP>[argument 1; litteral](str){values}<LSEP>[argument 2; litteral](str){status}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reslist}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){res}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reslist}<LSEP>[](symbol){res}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){syms}<LEND>[call](){}<LSEP>[](symbol){unname}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){reslist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){elem}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){elem}<LSEP>[argument 1; litteral](str){meta}<LEND>[argument 1; litteral](str){symbol}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){reslist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){res}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){length}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){meta}<LSEP>[argument 1; litteral](str){values}<LSEP>[argument 2; litteral](str){status}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unexpected result structure.}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){status}<LEND>[argument 1; litteral](str){ok}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){message}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){values}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){.*(min|h)$}<LSEP>[](symbol){interval}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){exchange_timezone}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){meta}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){meta}<LEND>[](symbol){exchange_timezone}<LEND>[false branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.Date}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){dat}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){as}<LSEP>[argument 1; litteral](str){xts}<LEND>[argument 1; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){xts}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){xts}<LSEP>[](symbol){xts}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){meta}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){dat}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){meta}<LEND>[](symbol){n}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){dat}<LSEP>[argument 1; litteral](str){accessed}<LEND>[](symbol){accessed}<LEND>[](symbol){dat}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ret}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ret}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ret}<LEND>[](symbol){syms}<LEND>[](symbol){ret}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.read.silicodart}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){filename}<LSEP>[](symbol){ind.metafile}<LSEP>[](symbol){nas}<LSEP>[](symbol){topskip}<LSEP>[](symbol){lastmetric}<LSEP>[](symbol){probar}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){probar}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){probar}<LSEP>[litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Reading data from file:}<LSEP>[](symbol){filename}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ This may take some time, ple...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){topskip}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Topskip not provided. Guessing...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tdummy}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[](symbol){filename}<LSEP>[](symbol){nas}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](real){20.000000}<LSEP>[argument 4; litteral](logical){FALSE}<LSEP>[argument 5; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nskip}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tdummy}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](str){*}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nskip}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){topskip}<LSEP>[](symbol){nskip}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Set topskip to }<LSEP>[](symbol){nskip}<LSEP>[argument 2; litteral](str){. Proceeding ...\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Could not determine topskip (t...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){snpraw}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[](symbol){filename}<LSEP>[](symbol){nas}<LSEP>[](symbol){topskip}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){lastmetric}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lmet}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){lastmetric}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){snpraw}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lmet}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Could not determine number of ...}<LSEP>[](symbol){lastmetric}<LSEP>[argument 2; litteral](str){!\n}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lmet}<LSEP>[](symbol){lastmetric}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){ind.names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){snpraw}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){lmet}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){snpraw}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){ind.names}<LEND>[call](){}<LSEP>[](symbol){trimws}<LSEP>[](symbol){ind.names}<LSEP>[argument 1; litteral](str){both}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){ind.names}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){The following labels for indiv...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){duplicated}<LSEP>[](symbol){ind.names}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Individual names are ...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ind.names}<LEND>[call](){}<LSEP>[](symbol){make.unique}<LSEP>[](symbol){ind.names}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){datas}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){snpraw}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){lmet}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){snpraw}<LEND>[statement 14; assign](){=}<LSEP>[](symbol){nrows}<LSEP>[litteral](real){1.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){stdmetricscols}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){lmet}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Added the following locus metr...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){snpraw}<LEND>[](symbol){stdmetricscols}<LEND>[argument 1; litteral](str){ }<LEND>[argument 1; litteral](str){.\n}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){covmetrics}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){snpraw}<LSEP>[](symbol){}<LSEP>[](symbol){stdmetricscols}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){nind}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){datas}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){nsnp}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){covmetrics}<LEND>[](symbol){nrows}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Recognised:}<LSEP>[](symbol){nind}<LSEP>[argument 2; litteral](str){individuals and}<LSEP>[](symbol){nsnp}<LSEP>[argument 4; litteral](str){Sequence Tags using}<LSEP>[](symbol){filename}<LSEP>[argument 6; litteral](str){\n}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){datas}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){datas}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Tag P/A data must...}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nStarting conversion to a gen...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Please note conversion of bi...}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Once finished, we recommend ...}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){covmetrics}<LSEP>[](symbol){CloneID}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){covmetrics}<LSEP>[](symbol){CloneID}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){index}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Locus names [CloneIDs...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Rendering locus names...}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){index}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){loc}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){index}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){covmetrics}<LSEP>[](symbol){CloneID}<LEND>[](symbol){loc}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){covmetrics}<LSEP>[](symbol){CloneID}<LEND>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){covmetrics}<LSEP>[](symbol){CloneID}<LEND>[](symbol){i2}<LEND>[argument 1; litteral](str){_}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){i2}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){glout}<LEND>[call](){}<LSEP>[](symbol){new}<LSEP>[argument 0; litteral](str){genlight}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){datas}<LEND>[argument 2; litteral](real){1.000000}<LSEP>[](symbol){ind.names}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){covmetrics}<LSEP>[](symbol){CloneID}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){covmetrics}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){ind.metafile}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Adding individual metadata:}<LSEP>[](symbol){ind.metafile}<LSEP>[argument 2; litteral](str){.\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.cov}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[](symbol){ind.metafile}<LSEP>[](symbol){T}<LSEP>[](symbol){T}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){id.col}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){id.col}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: There is no id co...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[call](){}<LSEP>[](symbol){trimws}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[argument 1; litteral](str){both}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Individual names ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){datas}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Ids for individual me...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){datas}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){ord}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ord}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ord}<LEND>[](symbol){nind}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Ids for individual metadata (a...}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ord}<LSEP>[](symbol){nind}<LEND>[argument 2; litteral](str){matching ids out of}<LEND>[argument 3; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){ind.cov}<LEND>[argument 4; litteral](str){ids provided in the ind.metada...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ord2}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){id.col}<LEND>[argument 1; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){glout}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){glout}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){glout}<LSEP>[](symbol){ord2}<LSEP>[](symbol){}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ids are not match...}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){pop.col}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){pop.col}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Please note: there is no pop c...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){glout}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Created pop column with NAs\n}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){glout}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){pop.col}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Added pop factor.\n}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){lat.col}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){lat}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){lon.col}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){lon}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){lat.col}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Please note: there is no lat c...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){lon.col}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Please note: there is no lon c...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){lat.col}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){lon.col}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){lat.col}<LSEP>[](symbol){lon.col}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){id.col}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Added latlon data.\n}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){other.col}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){other.col}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){other.col}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){id.col}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Added }<LSEP>[](symbol){other.col}<LSEP>[argument 2; litteral](str){ to the other$ind.metrics slot.\n}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){recalc.flags}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){AvgPIC}<LSEP>[argument 1; litteral](str){OneRatioRef}<LSEP>[argument 2; litteral](str){OneRatioSnp}<LSEP>[argument 3; litteral](str){PICRef}<LSEP>[argument 4; litteral](str){PICSnp}<LSEP>[argument 5; litteral](str){CallRate}<LSEP>[argument 6; litteral](str){maf}<LSEP>[argument 7; litteral](str){FreqHets}<LSEP>[argument 8; litteral](str){FreqHomRef}<LSEP>[argument 9; litteral](str){FreqHomSnp}<LSEP>[argument 10; litteral](str){monomorphs}<LSEP>[argument 11; litteral](str){OneRatio}<LSEP>[argument 12; litteral](str){PIC}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){recalc.flags}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){recalc.flags}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){glout}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[litteral](real){2.000000}<LEND>[statement 33; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Genlight object with ploidy=1 ...}<LEND>[statement 34; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){glout}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.pa2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gl1}<LSEP>[](symbol){gl2}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl1}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl1}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){gl1}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl1}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Cannot calculate minor allele ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl1}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){gl2}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){gl2}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl2}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Private alleles c...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl2}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset}<LSEP>[](symbol){gl2}<LSEP>[argument 2; litteral](str){\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){gl2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){pops}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){gl1}<LSEP>[](symbol){gl2}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gl1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){pops}<LEND>[call](){}<LSEP>[](symbol){seppop}<LSEP>[](symbol){gl1}<LEND>[false branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Only one population provided. ...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){pc}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){combn}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pops}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){palist}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){pall}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pops}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pops}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 4; litteral](logical){NA}<LSEP>[argument 5; litteral](logical){NA}<LSEP>[argument 6; litteral](logical){NA}<LSEP>[argument 7; litteral](logical){NA}<LSEP>[argument 8; litteral](logical){NA}<LSEP>[argument 9; litteral](logical){NA}<LSEP>[argument 10; litteral](logical){NA}<LEND>[statement 12; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){pc}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){i1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){palist}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){palist}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pops}<LEND>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pops}<LEND>[](symbol){i2}<LEND>[argument 2; litteral](str){-}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pops}<LSEP>[](symbol){i1}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){p2}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pops}<LSEP>[](symbol){i2}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){p1alf}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){p1}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){p2alf}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){p2}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){5.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){p2}<LEND>[statement 9; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){7.000000}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p1alf}<LSEP>[](symbol){p2alf}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){dummy}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pops}<LSEP>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p1alf}<LSEP>[](symbol){p2alf}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){palist}<LSEP>[](symbol){i}<LEND>[](symbol){fixed}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dummy}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dummy}<LEND>[statement 12; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){8.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p2alf}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){p1alf}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p2alf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){p1alf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){dummy}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pops}<LSEP>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p2alf}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){p1alf}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p2alf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){p1alf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){palist}<LSEP>[](symbol){i}<LEND>[](symbol){priv1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dummy}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dummy}<LEND>[statement 15; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){9.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p1alf}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){p2alf}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p1alf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){p2alf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){dummy}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pops}<LSEP>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p1alf}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){p2alf}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p1alf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){p2alf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){palist}<LSEP>[](symbol){i}<LEND>[](symbol){priv2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dummy}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dummy}<LEND>[statement 18; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){10.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){9.000000}<LEND>[statement 19; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pall}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){11.000000}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p1alf}<LSEP>[](symbol){p2alf}<LEND>[](symbol){T}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){pall}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Table of private alleles and...}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 16; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pall}<LSEP>[](symbol){palist}
[](){expression}<LSEP>[assign](){=}<LSEP>[](symbol){EffectiveNumberSamplesMLE}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){FstVect}<LSEP>[](symbol){Fstbar}<LSEP>[](symbol){NumberOfSamples}<LSEP>[](symbol){SmallestFstInTrimmedList}<LSEP>[](symbol){LargestFstInTrimmedList}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){sortedFst}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){FstVect}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){FstVect}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){LowTrimPoint}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){Fstbar}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[](symbol){SmallestFstInTrimmedList}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){trimmedFstVect}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){FstVect}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){FstVect}<LSEP>[](symbol){LowTrimPoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){FstVect}<LSEP>[](symbol){LargestFstInTrimmedList}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){trimmedFstArray}<LEND>[call](){}<LSEP>[](symbol){as.array}<LSEP>[](symbol){trimmedFstVect}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){localNLLAllData}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dfInferred}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){localNLLOneLocus}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Fst}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){negLLdfFstTrim}<LSEP>[](symbol){Fst}<LSEP>[](symbol){dfInferred}<LSEP>[](symbol){Fstbar}<LSEP>[](symbol){LowTrimPoint}<LSEP>[](symbol){LargestFstInTrimmedList}<LEND>[statement 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){localNLLOneLocus}<LSEP>[](symbol){trimmedFstVect}<LEND>[statement 5; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){optim}<LEND>[](symbol){NumberOfSamples}<LSEP>[](symbol){localNLLAllData}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](str){L-BFGS-B}<LEND>[](symbol){par}<LEND>[assign](){=}<LSEP>[](symbol){IncompleteGammaFunction}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){a}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){pgamma}<LEND>[](symbol){z}<LSEP>[](symbol){a}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){gamma}<LSEP>[](symbol){a}<LEND>[assign](){=}<LSEP>[](symbol){negLLdfFstTrim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Fst}<LSEP>[](symbol){dfInferred}<LSEP>[](symbol){Fstbar}<LSEP>[](symbol){LowTrimPoint}<LSEP>[](symbol){HighTrimPoint}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){df}<LSEP>[](symbol){dfInferred}<LEND>[statement 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Fstbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){df}<LSEP>[](symbol){Fst}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){df}<LSEP>[](symbol){Fstbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){df}<LSEP>[](symbol){Fstbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){df}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){Fstbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){Fst}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){df}<LSEP>[](symbol){Fstbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){Fstbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Fstbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){IncompleteGammaFunction}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){df}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){df}<LSEP>[](symbol){HighTrimPoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Fstbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){IncompleteGammaFunction}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){df}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){df}<LSEP>[](symbol){LowTrimPoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Fstbar}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){l2d}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){method}<LSEP>[](symbol){check}<LSEP>[](symbol){varw1}<LSEP>[](symbol){varw2}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){gaussiand}<LSEP>[argument 1; litteral](str){kern}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){method must be either 'gaussia...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){x1}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){x2}<LEND>[](symbol){p}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x1 and x2 must be two vectors,...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){gaussiand}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){choix}<LSEP>[litteral](str){g.}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){kern}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){varw1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){varw2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){choix}<LSEP>[litteral](str){kw}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){choix}<LSEP>[litteral](str){k.}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){choix}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](str){u}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){x1}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){drop}<LSEP>[](symbol){x1}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){x2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){drop}<LSEP>[](symbol){x2}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){choix}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](str){p}<LEND>[statement 6; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){choix}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){var1}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){var2}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x2}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one variance is zero}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){m2}<LEND>[call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x2}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){l2dpar}<LSEP>[](symbol){m1}<LSEP>[](symbol){var1}<LSEP>[](symbol){m2}<LSEP>[](symbol){var2}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){var1}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){var2}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x2}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One of the sample variances is...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){x1}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){m2}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){x2}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){l2dpar}<LSEP>[](symbol){m1}<LSEP>[](symbol){var1}<LSEP>[](symbol){m2}<LSEP>[](symbol){var2}<LEND>[argument 3; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){varw1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){varw2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One of the bandwidths is zero}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x1}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){n2}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p}<LSEP>[litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){expo}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n2}<LSEP>[](symbol){n1}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){varsom}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){varw1}<LSEP>[](symbol){varw2}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){varinv}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){varsom}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){x1}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){x2}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i1}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n1}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i2}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){expo}<LSEP>[](symbol){i1}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){i2}<LEND>[](symbol){varinv}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){i2}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n1}<LSEP>[](symbol){n2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){varsom}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){expo}<LEND>[argument 4; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){varw1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){varw2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One of the bandwidth matrices ...}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x1}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){n2}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){expo}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n2}<LSEP>[](symbol){n1}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){varsom}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){varw1}<LSEP>[](symbol){varw2}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){varinv}<LEND>[call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){varsom}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x1}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x2}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i1}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n1}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i2}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){expo}<LSEP>[](symbol){i1}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){i1}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){i2}<LSEP>[](symbol){}<LEND>[](symbol){varinv}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){i1}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){i2}<LSEP>[](symbol){}<LEND>[statement 10; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n1}<LSEP>[](symbol){n2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){varsom}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){expo}<LEND>[argument 5; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){var1}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){var2}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x2}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one variance is zero}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){n2}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x2}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){expo}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n2}<LSEP>[](symbol){n1}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){w1}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n1}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){w2}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n2}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){w1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){w2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){var2}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){x1}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){x2}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){i1}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n1}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i2}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){expo}<LSEP>[](symbol){i1}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){i2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){vars}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){expo}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[](symbol){vars}<LEND>[](symbol){n1}<LEND>[](symbol){n2}<LEND>[argument 6; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){var1}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){var2}<LEND>[call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x2}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){check}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){var2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One of the sample variances is...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){n1}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x1}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){n2}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x2}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){expo}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n2}<LSEP>[](symbol){n1}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){w1}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){n1}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){w2}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){n2}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){w1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){var1}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){w2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){var2}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){varinv}<LEND>[call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){vars}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x1}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x2}<LEND>[statement 13; control flow](){for}<LSEP>[](symbol){i1}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n1}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i2}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){expo}<LSEP>[](symbol){i1}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){i1}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){i2}<LSEP>[](symbol){}<LEND>[](symbol){varinv}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){i1}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){i2}<LSEP>[](symbol){}<LEND>[statement 14; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n1}<LSEP>[](symbol){n2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LSEP>[](symbol){vars}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){expo}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){magrittr}<LSEP>[argument 1; litteral](str){%>%}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2snapp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Detected Presence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Extacting SNP data and creat...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){m}<LEND>[litteral](str){?}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){m}<LEND>[litteral](NULL){NULL}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){m}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){df}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){indlabels}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){poplabels}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Writing results to nexus file}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 17; call](){}<LSEP>[](symbol){sink}<LSEP>[](symbol){outfilespec}<LEND>[statement 18; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){#nexus\n}<LEND>[statement 19; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){BEGIN DATA;\n}<LEND>[statement 20; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){ dimensions ntax = }<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){ nchar = }<LEND>[argument 3; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 4; litteral](str){ ;\n}<LEND>[statement 21; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ format datatype=integerda...}<LEND>[statement 22; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){matrix\n}<LEND>[statement 23; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){poplabels}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){_}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){indlabels}<LSEP>[](symbol){i}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ }<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[argument 1; litteral](str){}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 24; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){;\n}<LEND>[statement 25; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){end;\n\n}<LEND>[statement 26; call](){}<LSEP>[](symbol){sink}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Records written to}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){:}<LEND>[argument 3; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 29; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.rdepth}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){lower}<LSEP>[](symbol){upper}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){n0}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rdepth}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){AvgReadDepth}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rdepth}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){rdepth}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Removing loci with rdepth <=}<LSEP>[](symbol){lower}<LSEP>[argument 2; litteral](str){and >=}<LSEP>[](symbol){upper}<LSEP>[argument 4; litteral](str){\n}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; litteral](str){AvgReadDepth}<LEND>[](symbol){lower}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; litteral](str){AvgReadDepth}<LEND>[](symbol){upper}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; litteral](str){rdepth}<LEND>[](symbol){lower}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; litteral](str){rdepth}<LEND>[](symbol){upper}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){index}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){index}<LSEP>[](symbol){}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n Summary of filtered dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Initial no. of loci =}<LSEP>[](symbol){n0}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci deleted =}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n0}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of loci retained:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of populations: }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x2}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 17; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){new_ORRRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){x}<LEND>[statement 1; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){method}<LSEP>[argument 1; litteral](str){SAAmethod}<LSEP>[argument 2; litteral](str){spec}<LSEP>[argument 3; litteral](str){history}<LSEP>[argument 4; litteral](str){mu}<LSEP>[argument 5; litteral](str){A}<LSEP>[argument 6; litteral](str){B}<LSEP>[argument 7; litteral](str){D}<LSEP>[argument 8; litteral](str){Sigma}<LSEP>[argument 9; litteral](str){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[statement 2; call](){}<LSEP>[](symbol){structure}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ORRRR}<LSEP>[argument 1; litteral](str){RRRR}<LSEP>[argument 2; litteral](str){RRR}<LEND>[assign](){<-}<LSEP>[](symbol){print.ORRRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Online Robust Reduced-Rank Reg...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n------\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){switch}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Stochastic Majorisation-Minimi...}<LEND>[argument 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Sample Average Approximation}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; litteral](str){SAA}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nSub solver: }<LEND>[statement 1; call](){}<LSEP>[](symbol){switch}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){SAAmethod}<LEND>[argument 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){stats::optim}<LEND>[argument 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Majorisation Minimisation}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n------------\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Specifications:\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){c}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){spec}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nCoefficients:\n}<LEND>[statement 8; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LEND>[](symbol){digits}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.recalc.metrics}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){mono.rm}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){data.type}<LSEP>[argument 1; litteral](str){SNP}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.avgpic}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.callrate}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.maf}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){data.type}<LSEP>[argument 1; litteral](str){SilicoDArT}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.avgpic}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.callrate}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Locus metrics recalculated\n}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Monomorphic loci deleted\n}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 14; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.sexlinked}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){sex}<LSEP>[](symbol){filter}<LSEP>[](symbol){read.depth}<LSEP>[](symbol){t.het}<LSEP>[](symbol){t.hom}<LSEP>[](symbol){t.pres}<LSEP>[](symbol){plot}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; assign](){=}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; assign](){=}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){(}<LSEP>[argument 0; litteral](str){Processing Presence/Absence (S...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset [pl...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The number of rows in the loc....}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){filter}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Filter option needs to be set ...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: genlight object con...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){sex}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){sex}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[](symbol){sex}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){sex}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){No definition for the sex of i...}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The number of individuals and ...}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){sex}<LEND>[call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){sex}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){UP}<LEND>[call](){}<LSEP>[](symbol){toupper}<LSEP>[](symbol){sex}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){UP}<LEND>[call](){}<LSEP>[](symbol){substring}<LSEP>[](symbol){UP}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){UP}<LSEP>[argument 1; litteral](str){F}<LEND>[litteral](str){F}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){UP}<LSEP>[argument 1; litteral](str){M}<LEND>[litteral](str){M}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){sex}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){F}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){M}<LEND>[](symbol){sex}<LSEP>[argument 2; litteral](str){U}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sex}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){sex}<LEND>[litteral](str){U}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){data.type}<LSEP>[argument 1; litteral](str){SNP}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matf}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){F}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matf}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matf}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dummy}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matf}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dummy}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dummy}<LSEP>[litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[](symbol){dummy}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dff}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){f}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){dff}<LEND>[call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dff}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){F0}<LSEP>[argument 1; litteral](str){F1}<LSEP>[argument 2; litteral](str){F2}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){matm}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){M}<LEND>[](symbol){}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matm}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matm}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dummy}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matm}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dummy}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dummy}<LSEP>[litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[](symbol){dummy}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){dfm}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){m}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){dfm}<LEND>[call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dfm}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){M0}<LSEP>[argument 1; litteral](str){M1}<LSEP>[argument 2; litteral](str){M2}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){dff}<LSEP>[](symbol){dfm}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){read.depth}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){rdepth}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){sumf}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F2}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){summ}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M0}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M2}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){indexxy}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){sumf}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.hom}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){sumf}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.hom}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){summ}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.het}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){xy}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){indexxy}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){indexxy}<LSEP>[](symbol){}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){indexzw}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M0}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){summ}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.hom}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){summ}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.hom}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){sumf}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.het}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){zw}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){indexzw}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){indexzw}<LSEP>[](symbol){}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Number of females:}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){F}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Number of males:}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){M}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Sexratio females:(males+females):}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){F}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){F}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){M}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){zw}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No sex linked markers consis...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n Sex linked loci consistent...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Threshold proportion for h...}<LSEP>[](symbol){t.hom}<LSEP>[argument 2; litteral](str){;\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ for heterozygotes in the h...}<LSEP>[](symbol){t.het}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ 0 = homozygous reference; ...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){zw}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: The most reliable puta...}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){xy}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No sex linked markers consis...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n Sex linked loci consistent...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Threshold proportion for h...}<LSEP>[](symbol){t.hom}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ for heterozygotes in the h...}<LSEP>[](symbol){t.het}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ 0 = homozygous reference; ...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){xy}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: The most reliable puta...}<LEND>[statement 23; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){fhet}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dff}<LSEP>[](symbol){F1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dff}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dff}<LSEP>[](symbol){F1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dff}<LSEP>[](symbol){F2}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){mhet}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dfm}<LSEP>[](symbol){M1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dfm}<LSEP>[](symbol){M0}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dfm}<LSEP>[](symbol){M1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dfm}<LSEP>[](symbol){M2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gg}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){fhet}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){mhet}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_rect}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){t.het}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.het}<LEND>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](str){darkgrey}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.030000}<LSEP>[argument 2; litteral](str){XX/XY}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_rect}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.het}<LEND>[argument 2; litteral](real){0.000000}<LSEP>[](symbol){t.het}<LSEP>[argument 4; litteral](str){darkgrey}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.020000}<LEND>[argument 2; litteral](str){ZZ/ZW}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){indexxy}<LSEP>[](symbol){indexzw}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.300000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){Female Heterozygosity}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){Male Heterozygosity}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){gg}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){data.type}<LSEP>[argument 1; litteral](str){SilicoDArT}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matf}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){F}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matf}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matf}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dummy}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matf}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dummy}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dummy}<LSEP>[litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[](symbol){dummy}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dff}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){f}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){dff}<LEND>[call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dff}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){F0}<LSEP>[argument 1; litteral](str){F1}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){matm}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sex}<LSEP>[argument 1; litteral](str){M}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matm}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matm}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dummy}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matm}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){T}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){dummy}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dummy}<LSEP>[litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[](symbol){dummy}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){dfm}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){m}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){dfm}<LEND>[call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dfm}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){M0}<LSEP>[argument 1; litteral](str){M1}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){dff}<LSEP>[](symbol){dfm}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){read.depth}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){AvgReadDepth}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){sumf}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F1}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){summ}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M0}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M1}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){indexzw}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){sumf}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.pres}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M0}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){summ}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.pres}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){zw}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){indexzw}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){indexzw}<LSEP>[](symbol){}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){indexxy}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){M1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){summ}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.pres}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){sumf}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.pres}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){xy}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){indexxy}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LSEP>[](symbol){indexxy}<LSEP>[](symbol){}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){zw}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No sex linked markers consis...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n Sex linked loci consistent...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Threshold proportion for h...}<LSEP>[](symbol){t.hom}<LSEP>[argument 2; litteral](str){;\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ for heterozygotes in the h...}<LSEP>[](symbol){t.het}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ 0 = homozygous reference; ...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){zw}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: The most reliable puta...}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){xy}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No sex linked markers consis...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n Sex linked loci consistent...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Threshold proportion for h...}<LSEP>[](symbol){t.hom}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ for heterozygotes in the h...}<LSEP>[](symbol){t.het}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ 0 = homozygous reference; ...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){xy}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Note: The most reliable puta...}<LEND>[statement 22; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){fhet}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dff}<LSEP>[](symbol){F1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dff}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dff}<LSEP>[](symbol){F1}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){mhet}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dfm}<LSEP>[](symbol){M1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dfm}<LSEP>[](symbol){M0}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dfm}<LSEP>[](symbol){M1}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gg}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){fhet}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){mhet}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_rect}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){t.pres}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.pres}<LEND>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](str){darkgrey}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.030000}<LSEP>[argument 2; litteral](str){XX/XY}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_rect}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t.pres}<LEND>[argument 2; litteral](real){0.000000}<LSEP>[](symbol){t.pres}<LSEP>[argument 4; litteral](str){darkgrey}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.020000}<LEND>[argument 2; litteral](str){ZZ/ZW}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){indexxy}<LSEP>[](symbol){indexzw}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.300000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){% present in females}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){% present in males}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlim}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){gg}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){index}<LSEP>[litteral](NULL){NULL}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){xy}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){xy}<LSEP>[](symbol){locnr}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){xy}<LSEP>[](symbol){read.depth}<LEND>[](symbol){read.depth}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){zw}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){index2}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){zw}<LSEP>[](symbol){locnr}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){zw}<LSEP>[](symbol){read.depth}<LEND>[](symbol){read.depth}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){index}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){index}<LSEP>[](symbol){index2}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){index}<LSEP>[](symbol){index2}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){index}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){filter}<LSEP>[argument 1; litteral](str){drop}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){index}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){index}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){index}<LSEP>[](symbol){}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){index}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){filter}<LSEP>[argument 1; litteral](str){keep}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){No sex-linked loci identified ...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){No sex-linked loci identified ...}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 30; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){pca}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rank}<LSEP>[argument 1; litteral](str){full}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reduce_rank}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){reduce_rank}<LSEP>[](symbol){rank}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){means}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){s_xx}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){eigens}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){s_xx}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){eigens}<LSEP>[argument 1; litteral](str){vectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){reduce_rank}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){reduce_rank}<LEND>[argument 2; litteral](str){}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){vals}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){eigens}<LSEP>[argument 1; litteral](str){values}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){total_var}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){vals}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){gof}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){vals}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gof}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vals}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){vals}<LEND>[](symbol){total_var}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gof}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){gof}<LEND>[litteral](real){0.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){gof}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gof}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){reduce_rank}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){gof}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){A}<LEND>[statement 13; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){means}<LEND>[argument 1; call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){A}<LEND>[argument 2; call](){}<LSEP>[](symbol){as_data_frame}<LSEP>[](symbol){A}<LEND>[](symbol){gof}<LEND>[assign](){<-}<LSEP>[](symbol){pca_scores}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pca}<LEND>[call](){}<LSEP>[](symbol){pca}<LSEP>[](symbol){x}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){scores}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pca}<LSEP>[argument 1; litteral](str){PC}<LEND>[argument 1; call](){}<LSEP>[](symbol){organize}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){as_data_frame}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){scores}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){scores}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){}<LEND>[](symbol){scores}<LEND>[assign](){<-}<LSEP>[](symbol){pca_rank_trace}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){k}<LSEP>[](symbol){plot}<LSEP>[](symbol){interactive}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eigenvecs}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){pca}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){full}<LSEP>[](symbol){k}<LEND>[](symbol){A}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){eigens}<LEND>[call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){full_rank}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eigens}<LSEP>[](symbol){vectors}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){delta_C}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){t}<LSEP>[](symbol){full_rank}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){delta_residuals}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eigens}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){full_rank}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eigens}<LSEP>[](symbol){values}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pca_rank_trace_x}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){pca_rank_trace_y}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){full_rank}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pca_rank_trace_x}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){delta_C}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pca_rank_trace_y}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){delta_residuals}<LSEP>[](symbol){i}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pca_rank_trace_y}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pca_rank_trace_y}<LEND>[litteral](real){0.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){trace}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pca_rank_trace_x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pca_rank_trace_x}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pca_rank_trace_y}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){plot}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[](symbol){trace}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tuner}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){static_plot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){trace}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){aes}<LEND>[](symbol){delta_C}<LSEP>[](symbol){delta_residuals}<LSEP>[](symbol){rank}<LEND>[argument 1; call](){}<LSEP>[](symbol){lims}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LSEP>[argument 0; litteral](str){red}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](str){white}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){dC}<LSEP>[argument 1; litteral](str){dE}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PCA Rank Trace Plot, k = }<LSEP>[](symbol){tuner}<LSEP>[argument 2; litteral](str){}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){interactive}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){ggplotly}<LEND>[](symbol){static_plot}<LEND>[false branch; block](){}<LSEP>[](symbol){static_plot}<LEND>[assign](){<-}<LSEP>[](symbol){pca_pairwise}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){pca_x}<LSEP>[](symbol){pca_y}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scores}<LEND>[call](){}<LSEP>[](symbol){pca_scores}<LSEP>[](symbol){x}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){score_1}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LSEP>[](symbol){pca_x}<LSEP>[argument 2; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){score_2}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LSEP>[](symbol){pca_y}<LSEP>[argument 2; litteral](str){}<LEND>[statement 3; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){scores}<LEND>[argument 1; call](){}<LSEP>[](symbol){ends_with}<LSEP>[](symbol){score_1}<LEND>[argument 2; call](){}<LSEP>[](symbol){ends_with}<LSEP>[](symbol){score_2}<LEND>[assign](){<-}<LSEP>[](symbol){pca_pairwise_plot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){pc_x}<LSEP>[](symbol){pc_y}<LSEP>[](symbol){class_labels}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LSEP>[](symbol){interactive}<LSEP>[](symbol){point_size}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pairs}<LEND>[call](){}<LSEP>[](symbol){pca_pairwise}<LSEP>[](symbol){x}<LSEP>[](symbol){pc_x}<LSEP>[](symbol){pc_y}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){class_labels}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pairs_tbl}<LSEP>[](symbol){pairs}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pairs_tbl}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){pc_x}<LSEP>[argument 1; litteral](str){pc_y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){static_plot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){pairs_tbl}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pc_x}<LSEP>[](symbol){pc_y}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LSEP>[](symbol){pc_x}<LSEP>[argument 2; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LSEP>[](symbol){pc_y}<LSEP>[argument 2; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){PC Pairwise}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_blank}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){as_data_frame}<LEND>[](symbol){class_labels}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pairs_tbl}<LEND>[call](){}<LSEP>[](symbol){bind_cols}<LSEP>[](symbol){pairs}<LSEP>[](symbol){class}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){pairs_tbl}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){pc_x}<LSEP>[argument 1; litteral](str){pc_y}<LSEP>[argument 2; litteral](str){class}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ptsize}<LSEP>[](symbol){point_size}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){static_plot}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggplot2}<LSEP>[](symbol){ggplot}<LEND>[](symbol){pairs_tbl}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pc_x}<LSEP>[](symbol){pc_y}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){class}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ptsize}<LSEP>[argument 1; litteral](real){1.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LSEP>[](symbol){pc_x}<LSEP>[argument 2; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LSEP>[](symbol){pc_y}<LSEP>[argument 2; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){PC Pairwise}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_blank}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){interactive}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){interactive_plot}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){ggplotly}<LEND>[](symbol){static_plot}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){distinct}<LSEP>[](symbol){class_labels}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){interactive_plot}<LSEP>[argument 1; litteral](str){x}<LEND>[argument 1; litteral](str){data}<LEND>[](symbol){i}<LEND>[argument 1; litteral](str){marker}<LEND>[argument 1; litteral](str){size}<LEND>[](symbol){ptsize}<LEND>[](symbol){interactive_plot}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){static_plot}<LEND>[assign](){<-}<LSEP>[](symbol){pca_threewise}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){pca_x}<LSEP>[](symbol){pca_y}<LSEP>[](symbol){pca_z}<LSEP>[](symbol){rank}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){scores}<LEND>[call](){}<LSEP>[](symbol){pca_scores}<LSEP>[](symbol){x}<LSEP>[](symbol){rank}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){score_1}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LSEP>[](symbol){pca_x}<LSEP>[argument 2; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){score_2}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LSEP>[](symbol){pca_y}<LSEP>[argument 2; litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){score_3}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PC}<LSEP>[](symbol){pca_z}<LSEP>[argument 2; litteral](str){}<LEND>[statement 4; call](){}<LSEP>[](symbol){select}<LSEP>[](symbol){scores}<LEND>[argument 1; call](){}<LSEP>[](symbol){ends_with}<LSEP>[](symbol){score_1}<LEND>[argument 2; call](){}<LSEP>[](symbol){ends_with}<LSEP>[](symbol){score_2}<LEND>[argument 3; call](){}<LSEP>[](symbol){ends_with}<LSEP>[](symbol){score_3}<LEND>[assign](){<-}<LSEP>[](symbol){pca_3D_plot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){class_labels}<LSEP>[](symbol){pca_x}<LSEP>[](symbol){pca_y}<LSEP>[](symbol){pca_z}<LSEP>[](symbol){rank}<LSEP>[](symbol){point_size}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){class_labels}<LSEP>[argument 1; litteral](str){none}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){class = none}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){as_data_frame}<LEND>[](symbol){class_labels}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){threes}<LEND>[call](){}<LSEP>[](symbol){pca_threewise}<LSEP>[](symbol){x}<LSEP>[](symbol){pca_x}<LSEP>[](symbol){pca_y}<LSEP>[](symbol){pca_z}<LSEP>[](symbol){rank}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){threes_tbl}<LEND>[call](){}<LSEP>[](symbol){bind_cols}<LSEP>[](symbol){threes}<LSEP>[](symbol){class}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){threes_tbl}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){x_coord}<LSEP>[argument 1; litteral](str){y_coord}<LSEP>[argument 2; litteral](str){z_coord}<LSEP>[argument 3; litteral](str){class}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ptsize}<LSEP>[](symbol){point_size}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){plot_ly}<LEND>[](symbol){threes_tbl}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x_coord}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){y_coord}<LEND>[argument 3; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){z_coord}<LEND>[argument 4; litteral](str){scatter3d}<LSEP>[argument 5; litteral](str){markers}<LEND>[argument 6; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){class}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ptsize}<LEND>[assign](){<-}<LSEP>[](symbol){pca_allpairs_plot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LSEP>[](symbol){class_labels}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pc}<LEND>[call](){}<LSEP>[](symbol){pca_scores}<LSEP>[](symbol){x}<LSEP>[](symbol){rank}<LSEP>[](symbol){k}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){class_labels}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){GGally}<LSEP>[](symbol){ggpairs}<LEND>[](symbol){pc}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){blank}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[](symbol){as_data_frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){class_labels}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){bind_cols}<LEND>[](symbol){pc}<LSEP>[](symbol){class}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){df}<LEND>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){class}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){GGally}<LSEP>[](symbol){ggpairs}<LEND>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){blank}<LEND>[argument 2; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){class}
[](){expression}<LSEP>[litteral](str){_PACKAGE}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){readRadarFile}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){binfile}<LSEP>[](symbol){na}<LSEP>[](symbol){clutter}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){finalOut}<LEND>[call](){}<LSEP>[](symbol){try}<LEND>[argument 0; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){binfile}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The following file does not ex...}<LSEP>[](symbol){binfile}<LSEP>[argument 2; litteral](str){'.}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){openfile}<LEND>[call](){}<LSEP>[](symbol){file}<LSEP>[](symbol){binfile}<LSEP>[argument 1; litteral](str){rb}<LEND>[statement 2; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){close}<LSEP>[](symbol){openfile}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){readHeader}<LSEP>[](symbol){binfile}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){h_bin}<LEND>[call](){}<LSEP>[](symbol){rawToChar}<LEND>[argument 0; call](){}<LSEP>[](symbol){readBin}<LSEP>[](symbol){openfile}<LEND>[argument 1; call](){}<LSEP>[](symbol){raw}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){nchar}<LEND>[argument 3; litteral](str){little}<LEND>[statement 5; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){header}<LEND>[argument 1; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){\x03}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){h_bin}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){DIM}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){dim}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){LEN}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){readBin}<LSEP>[](symbol){openfile}<LEND>[argument 1; call](){}<LSEP>[](symbol){raw}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){LEN}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 3; litteral](str){little}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){product}<LEND>[argument 1; litteral](str){RX}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){LEN}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dat.val}<LEND>[call](){}<LSEP>[](symbol){bin2num}<LSEP>[](symbol){dat}<LSEP>[](symbol){LEN}<LSEP>[](symbol){na}<LSEP>[](symbol){clutter}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dat.val}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){dat.val}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){32.500000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){LEN}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dat.val}<LEND>[call](){}<LSEP>[](symbol){bin2num}<LSEP>[](symbol){dat}<LSEP>[](symbol){LEN}<LSEP>[](symbol){na}<LSEP>[](symbol){clutter}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){dat.val}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){dat.val}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){precision}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){product}<LEND>[argument 1; litteral](str){RW}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){product}<LEND>[argument 1; litteral](str){SF}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){product}<LEND>[argument 1; litteral](str){RQ}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){h}<LSEP>[](symbol){product}<LEND>[argument 1; litteral](str){YW}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dat.mat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){dat.val}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dat.mat}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){dat.mat}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){rev}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){dat.mat}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dat.mat}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){dat.val}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){dat.mat}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){DIM}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){dat.mat}<LSEP>[](symbol){h}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){finalOut}<LSEP>[argument 1; litteral](str){try-error}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[](symbol){finalOut}<LSEP>[argument 1; litteral](str){in file: }<LSEP>[](symbol){binfile}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){finalOut}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){install_dat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){link}<LSEP>[](symbol){dir}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){clone_dat}<LSEP>[](symbol){link}<LSEP>[](symbol){dir}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){devtools}<LSEP>[](symbol){install}<LEND>[](symbol){dir}<LEND>[statement 2; call](){}<LSEP>[](symbol){unlink}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Successfully installed package...}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_logout}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){rt_url}<LSEP>[argument 0; litteral](str){logout}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[](symbol){rt_POST}<LSEP>[](symbol){url}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){message}<LEND>[argument 1; litteral](str){Credentials required}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Can't log out: You aren't logg...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 4; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){You are now logged out.}<LEND>[statement 5; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){response}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){dataDWD}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){url}<LSEP>[](symbol){base}<LSEP>[](symbol){joinbf}<LSEP>[](symbol){dir}<LSEP>[](symbol){force}<LSEP>[](symbol){overwrite}<LSEP>[](symbol){read}<LSEP>[](symbol){dbin}<LSEP>[](symbol){dfargs}<LSEP>[](symbol){sleep}<LSEP>[](symbol){progbar}<LSEP>[](symbol){browse}<LSEP>[](symbol){ntrunc}<LSEP>[](symbol){file}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){file}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The argument 'file' has been r...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.atomic}<LSEP>[](symbol){url}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){url must be a vector, not a }<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){url}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){url}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){url must be char, not }<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){url}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){base}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){/$}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){base}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){^/}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){url}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){joinbf}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){base}<LSEP>[argument 1; litteral](str){/}<LSEP>[](symbol){url}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){progbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){url}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){progbar}<LSEP>[litteral](logical){FALSE}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){url}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){Removing }<LEND>[argument 2; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){url}<LSEP>[argument 1; litteral](str){}<LEND>[argument 3; litteral](str){ empty element(s) from url vec...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){url}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){url}<LSEP>[argument 1; litteral](str){}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){url}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The vector of urls to be downl...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){progbar}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){progbar}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){sleep}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sleep}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){quiet}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){quiet}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){read}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){read}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){browse}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){browse}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[](symbol){browse}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){folders}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){dirname}<LSEP>[](symbol){url}<LEND>[statement 1; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){folders}<LSEP>[](symbol){browseURL}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){folders}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){owd}<LEND>[call](){}<LSEP>[](symbol){dirDWD}<LSEP>[](symbol){dir}<LSEP>[](symbol){quiet}<LEND>[statement 17; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){owd}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){outfile}<LEND>[call](){}<LSEP>[](symbol){gsub}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){base}<LSEP>[argument 1; litteral](str){/}<LEND>[argument 1; litteral](str){}<LSEP>[](symbol){url}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){outfile}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){/}<LSEP>[argument 1; litteral](str){_}<LSEP>[](symbol){outfile}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){force}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){force cannot be NULL. Must be ...}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){force}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){force}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){outfile}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){fT}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){force}<LSEP>[](symbol){isTRUE}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){fF}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){force}<LSEP>[](symbol){isFALSE}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){fT}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){force}<LSEP>[](symbol){fT}<LEND>[litteral](real){0.000000}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){fF}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){force}<LSEP>[](symbol){fF}<LEND>[litteral](real){inf}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){force}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){force}<LEND>[litteral](real){24.000000}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){force}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){difftime}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.mtime}<LSEP>[](symbol){outfile}<LEND>[argument 2; litteral](str){h}<LEND>[](symbol){force}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){dontdownload}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){outfile}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){force}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){dontdownload}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){dontdownload}<LEND>[argument 2; litteral](str){ file}<LEND>[argument 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){dontdownload}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; litteral](str){s}<LEND>[argument 4; litteral](str){ already existing and not down...}<LEND>[argument 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){truncMessage}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){outfile}<LSEP>[](symbol){dontdownload}<LEND>[](symbol){ntrunc}<LSEP>[argument 2; litteral](str){}<LEND>[argument 6; litteral](str){\nNow downloading }<LEND>[argument 7; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){dontdownload}<LEND>[argument 8; litteral](str){ files...}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){outfile}<LEND>[call](){}<LSEP>[](symbol){newFilename}<LSEP>[](symbol){outfile}<LSEP>[](symbol){quiet}<LSEP>[](symbol){dontdownload}<LSEP>[](symbol){overwrite}<LSEP>[](symbol){ntrunc}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[statement 31; control flow](){if}<LSEP>[](symbol){progbar}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){lapply}<LEND>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pbapply}<LSEP>[](symbol){pblapply}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){dl_results}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){url}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dontdownload}<LSEP>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dfdefaults}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){url}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){outfile}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){dbin}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dfdefaults}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){dfdefaults}<LSEP>[argument 1; litteral](str){wb}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){e}<LEND>[call](){}<LSEP>[](symbol){try}<LEND>[argument 0; call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){download.file}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){owa}<LEND>[](symbol){dfdefaults}<LSEP>[](symbol){dfargs}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){sleep}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){Sys.sleep}<LEND>[argument 0; call](){}<LSEP>[](symbol){runif}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){sleep}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){e}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){iserror}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){dl_results}<LSEP>[](symbol){inherits}<LSEP>[argument 2; litteral](str){try-error}<LEND>[statement 34; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){iserror}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ne}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){iserror}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){msg}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){ne}<LSEP>[argument 1; litteral](str){ Download}<LEND>[argument 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){ne}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; litteral](str){s have}<LSEP>[false branch; litteral](str){ has}<LEND>[argument 3; litteral](str){ failed (out of }<LEND>[argument 4; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){iserror}<LEND>[argument 5; litteral](str){).}<LEND>[argument 6; control flow](){if}<LSEP>[](symbol){read}<LSEP>[true branch; litteral](str){ Setting read=FALSE.}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){read}<LSEP>[litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){msg}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){msg}<LSEP>[argument 1; litteral](str){ download.file error}<LEND>[argument 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){ne}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; litteral](str){s}<LEND>[argument 3; litteral](str){:\n}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){msg2}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dl_results}<LSEP>[](symbol){iserror}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){e}<LSEP>[argument 1; litteral](str){condition}<LEND>[](symbol){message}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){msg2}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){truncMessage}<LEND>[](symbol){msg2}<LSEP>[argument 1; litteral](real){15.000000}<LSEP>[argument 2; litteral](str){}<LSEP>[argument 3; litteral](str){}<LSEP>[argument 4; litteral](str){}<LSEP>[argument 5; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){url}<LSEP>[](symbol){iserror}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](str){ftp:}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){msg2}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){msg2}<LSEP>[argument 1; litteral](str){\n- dataDWD needs urls startin...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){cannot open URL}<LSEP>[](symbol){msg2}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Kann URL .* nicht}<LSEP>[](symbol){msg2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){msg2}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){msg2}<LSEP>[argument 1; litteral](str){\n- If files have been renamed...}<LSEP>[argument 2; litteral](str){see https://bookdown.org/brr...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){msg}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){msg}<LSEP>[](symbol){msg2}<LEND>[statement 9; call](){}<LSEP>[](symbol){warning}<LSEP>[](symbol){msg}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){output}<LSEP>[](symbol){outfile}<LEND>[statement 36; control flow](){if}<LSEP>[](symbol){read}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){readDWD}<LSEP>[](symbol){outfile}<LSEP>[](symbol){progbar}<LSEP>[](symbol){...}<LEND>[statement 37; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){output}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.priceurl}<LSEP>[litteral](str){https://api.twelvedata.com/price}<LEND>[assign](){<-}<LSEP>[](symbol){get_price}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sym}<LSEP>[](symbol){as}<LSEP>[](symbol){exchange}<LSEP>[](symbol){country}<LSEP>[](symbol){type}<LSEP>[](symbol){dp}<LSEP>[](symbol){apikey}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){apikey}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){apikey}<LEND>[call](){}<LSEP>[](symbol){.get_apikey}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){as}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){as}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){type}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){.priceurl}<LSEP>[argument 1; litteral](str){?}<LSEP>[argument 2; litteral](str){symbol=}<LSEP>[](symbol){sym}<LSEP>[argument 4; litteral](str){&apikey=}<LSEP>[](symbol){apikey}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){exchange}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&exchange=}<LSEP>[](symbol){exchange}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){country}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&country=}<LSEP>[](symbol){country}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){type}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&type=}<LSEP>[](symbol){type}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){dp}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){qry}<LSEP>[argument 1; litteral](str){&dp=}<LSEP>[](symbol){dp}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){accessed}<LEND>[call](){}<LSEP>[](symbol){format}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RcppSimdJson}<LSEP>[](symbol){fload}<LEND>[](symbol){qry}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){as}<LSEP>[argument 1; litteral](str){raw}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){res}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){res}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[](symbol){sym}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){res}<LSEP>[argument 1; litteral](str){accessed}<LEND>[](symbol){accessed}<LEND>[](symbol){res}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){folder}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){...}<LSEP>[](symbol){cols.select}<LSEP>[](symbol){rows.select}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){x1}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x1 must be a data frame or a l...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x2}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){If x1 is not a data frame, x2 ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){You cannot build a 'folder' wi...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){You cannot build a 'folder' wi...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){If x1 is a data frame, x2 must...}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class.arg}<LSEP>[litteral](str){l}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x2}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class.arg}<LSEP>[litteral](str){d2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dots}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){dots}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){dots}<LSEP>[](symbol){is.data.frame}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){class.arg}<LSEP>[litteral](str){d3}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Argument(s)}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dots}<LEND>[argument 1; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){dots}<LSEP>[](symbol){is.data.frame}<LEND>[argument 2; litteral](str){is/are no data frame(s).\n}<LEND>[argument 3; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dots}<LEND>[argument 4; litteral](str){arguments will not be used.}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){rows.select}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){union}<LSEP>[argument 1; litteral](str){intersect}<LSEP>[argument 2; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){rows.select}<LSEP>[litteral](str){}<LEND>[statement 7; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){class.arg}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fold}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x1}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ndata}<LSEP>[litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){namesfold}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){x2}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[](symbol){namesfold}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fold}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x1}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){dots}<LSEP>[](symbol){is.data.frame}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All arguments in '...' must be...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){fold}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){fold}<LEND>[argument 1; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){dots}<LSEP>[](symbol){as.data.frame}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ndata}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fold}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){namesfold}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){x2}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){namesfold}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){namesfold}<LEND>[argument 1; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){...}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[](symbol){namesfold}<LEND>[argument 3; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){x1}<LSEP>[](symbol){is.data.frame}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All elements of x1 must be dat...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fold}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){x1}<LSEP>[](symbol){as.data.frame}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ndata}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fold}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){The list x1 has no names. The ...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ndata}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cols.select}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){union}<LSEP>[argument 1; litteral](str){intersect}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ndata}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){intersect}<LSEP>[](symbol){cols.select}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cols.select}<LSEP>[litteral](str){union}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){cols.select}<LSEP>[argument 1; litteral](str){intersect}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cnames.l}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){fold}<LSEP>[](symbol){names}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cnames}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cnames.l}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){ndata}<LEND>[body; assign](){<-}<LSEP>[](symbol){cnames}<LEND>[call](){}<LSEP>[](symbol){intersect}<LSEP>[](symbol){cnames}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){cnames.l}<LSEP>[](symbol){n}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ndata}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[](symbol){cnames}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){cols.select}<LSEP>[argument 1; litteral](str){union}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cnames}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){fold}<LSEP>[](symbol){names}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){adjcnames}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cnames}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){adjcnames}<LEND>[](symbol){cnames}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ndata}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){foldn}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){merge}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[](symbol){adjcnames}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){foldn}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){foldn}<LSEP>[argument 1; litteral](str){.rownames}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){foldn}<LSEP>[](symbol){cnames}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){foldn}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){adjcnames}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[](symbol){cnames}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){foldn}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rows.select}<LSEP>[argument 1; litteral](str){intersect}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rnames.l}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){fold}<LSEP>[](symbol){rownames}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rnames}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rnames.l}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){ndata}<LEND>[body; assign](){<-}<LSEP>[](symbol){rnames}<LEND>[call](){}<LSEP>[](symbol){intersect}<LSEP>[](symbol){rnames}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rnames.l}<LSEP>[](symbol){n}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){rnames}<LEND>[call](){}<LSEP>[](symbol){sort}<LSEP>[](symbol){rnames}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ndata}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[](symbol){rnames}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){same.rows}<LSEP>[litteral](logical){TRUE}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rows.select}<LSEP>[argument 1; litteral](str){union}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rnames}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){fold}<LSEP>[](symbol){rownames}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ndata}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){foldn}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){adjrnames}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rnames}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){rnames}<LEND>[argument 1; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){foldn}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){adjrnames}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){adjrows}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){adjrnames}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){foldn}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){adjrnames}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){foldn}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){foldn}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){foldn}<LSEP>[](symbol){adjrows}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){foldn}<LSEP>[](symbol){rnames}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){same.rows}<LSEP>[litteral](logical){TRUE}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){rows.select}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ndata}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fold}<LSEP>[](symbol){n}<LEND>[argument 2; litteral](str){.}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){same.rows}<LSEP>[litteral](logical){FALSE}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){fold}<LEND>[litteral](str){folder}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){fold}<LSEP>[argument 1; litteral](str){same.rows}<LEND>[](symbol){same.rows}<LEND>[statement 16; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fold}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){prepareData}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){nrmse}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){nrmsec}<LEND>[call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){nrmse}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){nmbe}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){difSD}<LEND>[call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){sdm}<LSEP>[](symbol){sdo}<LEND>[](symbol){data}<LEND>[assign](){<-}<LSEP>[](symbol){makeCircles}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){type}<LSEP>[](symbol){cuts}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){radius}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){type}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){quantile}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data}<LSEP>[](symbol){nrmse}<LEND>[](symbol){cuts}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[](symbol){cuts}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){circle}<LEND>[call](){}<LSEP>[](symbol){expand.grid}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[argument 2; litteral](real){100.000000}<LEND>[](symbol){radius}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){circle}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){circle}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LSEP>[](symbol){theta}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){circle}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){circle}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){cos}<LSEP>[](symbol){theta}<LEND>[](symbol){circle}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plot.RD}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){gran}<LSEP>[](symbol){bins}<LSEP>[](symbol){which}<LSEP>[](symbol){range}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){frm}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){frm}<LEND>[call](){}<LSEP>[](symbol){eval.parent}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[](symbol){frame}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){frm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[](symbol){frame}<LEND>[litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[](symbol){verbose}<LEND>[litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){eval.parent}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){frame}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){na.action}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){na.action}<LEND>[](symbol){}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){kernel}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){kern}<LEND>[call](){}<LSEP>[](symbol){eval.parent}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[](symbol){kernel}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){kern}<LSEP>[litteral](str){triangular}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){cut}<LEND>[call](){}<LSEP>[](symbol){eval.parent}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[](symbol){cutpoint}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){cut}<LSEP>[litteral](real){0.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){bw}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){bw}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){range}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){range}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cut}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[](symbol){bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cut}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[](symbol){bw}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){min}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){max}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){range}<LEND>[call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){range}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){rdplot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){d}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d.l}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[](symbol){cut}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[](symbol){cut}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lval}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){cut}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){lest}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){llwr}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){lupr}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sub}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lval}<LSEP>[](symbol){i}<LEND>[](symbol){bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lval}<LSEP>[](symbol){i}<LEND>[](symbol){bw}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){kernelwts}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){X}<LEND>[](symbol){sub}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lval}<LSEP>[](symbol){i}<LEND>[](symbol){bw}<LSEP>[](symbol){kern}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ly}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){Y}<LEND>[](symbol){sub}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){lx}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){X}<LEND>[](symbol){sub}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lx}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){ly}<LSEP>[](symbol){lx}<LEND>[](symbol){w}<LEND>[argument 1; litteral](str){confidence}<LEND>[argument 2; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lval}<LSEP>[](symbol){i}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lest}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){llwr}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lupr}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){d.r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[](symbol){cut}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[](symbol){cut}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){rval}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){cut}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){rest}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){rlwr}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){rupr}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%/%}<LSEP>[](symbol){gran}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sub}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rval}<LSEP>[](symbol){i}<LEND>[](symbol){bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rval}<LSEP>[](symbol){i}<LEND>[](symbol){bw}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){kernelwts}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){X}<LEND>[](symbol){sub}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rval}<LSEP>[](symbol){i}<LEND>[](symbol){bw}<LSEP>[](symbol){kern}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ry}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){Y}<LEND>[](symbol){sub}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){rx}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){X}<LEND>[](symbol){sub}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){rx}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){ry}<LSEP>[](symbol){rx}<LEND>[](symbol){w}<LEND>[argument 1; litteral](str){confidence}<LEND>[argument 2; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rval}<LSEP>[](symbol){i}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rest}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rlwr}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rupr}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){Y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ep}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){bins}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nX}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[](symbol){ep}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[](symbol){ep}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){bins}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nY}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nX}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nX}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nX}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nX}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){next}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nY}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nX}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nX}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nX}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nX}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sub}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){nX}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){nX}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){subl}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){lval}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){lval}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){subr}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){rval}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){rval}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 7; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){nX}<LSEP>[](symbol){nY}<LSEP>[argument 2; litteral](str){p}<LSEP>[argument 3; litteral](real){20.000000}<LSEP>[argument 4; litteral](real){0.500000}<LSEP>[argument 5; litteral](str){black}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){llwr}<LSEP>[](symbol){subl}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rlwr}<LSEP>[](symbol){subr}<LEND>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lupr}<LSEP>[](symbol){subl}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rupr}<LSEP>[](symbol){subr}<LEND>[](symbol){T}<LEND>[argument 8; litteral](logical){NA}<LSEP>[argument 9; litteral](logical){NA}<LSEP>[argument 10; litteral](logical){NA}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){subl}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){lval}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){lval}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){subr}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){rval}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){rval}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){Y}<LEND>[argument 2; litteral](str){p}<LSEP>[argument 3; litteral](real){20.000000}<LSEP>[argument 4; litteral](real){0.500000}<LSEP>[argument 5; litteral](str){black}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){llwr}<LSEP>[](symbol){subl}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rlwr}<LSEP>[](symbol){subr}<LEND>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lupr}<LSEP>[](symbol){subl}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rupr}<LSEP>[](symbol){subr}<LEND>[](symbol){T}<LEND>[argument 8; litteral](logical){NA}<LSEP>[argument 9; litteral](logical){NA}<LSEP>[argument 10; litteral](logical){NA}<LEND>[statement 13; call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){lval}<LSEP>[](symbol){lest}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](str){black}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 14; call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){lval}<LSEP>[](symbol){llwr}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](str){black}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 15; call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){lval}<LSEP>[](symbol){lupr}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](str){black}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 16; call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){rval}<LSEP>[](symbol){rest}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](str){black}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 17; call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){rval}<LSEP>[](symbol){rlwr}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](str){black}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 18; call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){rval}<LSEP>[](symbol){rupr}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LSEP>[argument 4; litteral](str){black}<LSEP>[argument 5; litteral](str){l}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LEND>[argument 1; litteral](str){sharp}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){which}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rdplot}<LSEP>[](symbol){d}<LEND>[statement 1; call](){}<LSEP>[](symbol){dev.flush}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LEND>[argument 1; litteral](str){fuzzy}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){which}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){Z}<LEND>[statement 1; call](){}<LSEP>[](symbol){rdplot}<LSEP>[](symbol){d}<LEND>[statement 2; call](){}<LSEP>[](symbol){dev.flush}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){utils.dart2genlight}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dart}<LSEP>[](symbol){ind.metafile}<LSEP>[](symbol){covfilename}<LSEP>[](symbol){probar}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){ind.metafile}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.metafile}<LSEP>[](symbol){covfilename}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nind}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dart}<LSEP>[argument 1; litteral](str){nind}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nsnp}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dart}<LSEP>[argument 1; litteral](str){nsnp}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){sraw}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dart}<LSEP>[argument 1; litteral](str){covmetrics}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){nrows}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dart}<LSEP>[argument 1; litteral](str){nrows}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nrows}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){nrows not provided. Trying to ...}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){gnrows}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dart}<LSEP>[](symbol){gendata}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){gnrows}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){gnrows}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nrows}<LSEP>[](symbol){gnrows}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Should be }<LSEP>[](symbol){nrows}<LSEP>[argument 2; litteral](str){ row(s) format. Please check i...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Cannot be guessed. The dart fo...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){SNP}<LSEP>[argument 1; litteral](str){SnpPosition}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){sraw}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Could not find SNP or SnpPosit...}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting conversion....\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Format is }<LSEP>[](symbol){nrows}<LSEP>[argument 2; litteral](str){ rows.\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Please note conversion of bigg...}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Once finished, we recommend to...}<LEND>[statement 13; control flow](){if}<LSEP>[](symbol){probar}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){pb}<LEND>[call](){}<LSEP>[](symbol){txtProgressBar}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](logical){NA}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){sdata}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dart}<LSEP>[argument 1; litteral](str){gendata}<LEND>[statement 15; assign](){=}<LSEP>[](symbol){esl}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){nrows}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){sdata}<LEND>[](symbol){nrows}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){pos}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sraw}<LSEP>[](symbol){SnpPosition}<LEND>[](symbol){esl}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){alleles}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sraw}<LSEP>[](symbol){SNP}<LEND>[](symbol){esl}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){alleles}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){alleles}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){alleles}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){a2}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){>}<LSEP>[argument 1; litteral](str){/}<LSEP>[](symbol){a1}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){locname}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sraw}<LSEP>[](symbol){uid}<LEND>[](symbol){esl}<LEND>[](symbol){a2}<LSEP>[argument 2; litteral](str){-}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){geninddata}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nsnp}<LSEP>[](symbol){nind}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nrows}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nind}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){isnp}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sdata}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){esl}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sdata}<LSEP>[](symbol){esl}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](str){/}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){g}<LSEP>[](symbol){isnp}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){0/1}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){g}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){1/0}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){g}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){1/1}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){g}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){NA/NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[](symbol){g}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geninddata}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){g}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){probar}<LEND>[true branch; call](){}<LSEP>[](symbol){setTxtProgressBar}<LSEP>[](symbol){pb}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[](symbol){nind}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nind}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){isnp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sdata}<LSEP>[](symbol){esl}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){g}<LSEP>[](symbol){isnp}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[](symbol){g}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){g}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){g}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){g}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geninddata}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){g}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){probar}<LEND>[true branch; call](){}<LSEP>[](symbol){setTxtProgressBar}<LSEP>[](symbol){pb}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[](symbol){nind}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){gout}<LEND>[call](){}<LSEP>[](symbol){new}<LSEP>[argument 0; litteral](str){genlight}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){geninddata}<LEND>[argument 2; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){sdata}<LEND>[](symbol){locname}<LSEP>[](symbol){a2}<LSEP>[](symbol){pos}<LSEP>[](symbol){F}<LEND>[statement 24; control flow](){if}<LSEP>[](symbol){probar}<LEND>[true branch; call](){}<LSEP>[](symbol){close}<LSEP>[](symbol){pb}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sraw}<LSEP>[](symbol){esl}<LSEP>[](symbol){}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.factor}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gout}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){df}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){ind.metafile}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Adding individual metrics:}<LSEP>[](symbol){ind.metafile}<LSEP>[argument 2; litteral](str){.\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.cov}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[](symbol){ind.metafile}<LSEP>[](symbol){T}<LSEP>[](symbol){T}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){id.col}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){id.col}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: There is no id co...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[call](){}<LSEP>[](symbol){trimws}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[argument 1; litteral](str){both}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Individual names are not uniqu...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){sdata}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Ids for individual metadata do...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nam.indmeta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nam.dart}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){sdata}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){nm.indmeta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nam.indmeta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){nam.indmeta}<LSEP>[](symbol){nam.dart}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nm.inddart}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nam.dart}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){nam.dart}<LSEP>[](symbol){nam.indmeta}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nm.indmeta}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ind.metafile ids not matched w...}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){nm.indmeta}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nm.inddart}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){dart file ids not matched were:\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){nm.inddart}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){sdata}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){}<LSEP>[](symbol){id.col}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){ord}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ord}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ord}<LEND>[](symbol){nind}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Ids for individual metadata ...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Found }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ord}<LSEP>[](symbol){nind}<LEND>[argument 2; litteral](str){matching ids out of}<LEND>[argument 3; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){ind.cov}<LEND>[argument 4; litteral](str){ids provided in the ind.metada...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ord2}<LEND>[call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){id.col}<LEND>[argument 1; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gout}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gout}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gout}<LSEP>[](symbol){ord2}<LSEP>[](symbol){}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Individual ids ar...}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){pop.col}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){pop.col}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: There is no pop colum...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gout}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){pop1}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){gout}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gout}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){pop.col}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Added population assignments.\n}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){lat.col}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){lat}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){lon.col}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){lon}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){lat.col}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Individual metrics do...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){lon.col}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Individual metrics do...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){lat.col}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){lon.col}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gout}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){lat.col}<LSEP>[](symbol){lon.col}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gout}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){id.col}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Added latlon data\n}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){other.col}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ind.cov}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){other.col}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gout}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){other.col}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gout}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ind.cov}<LSEP>[](symbol){ord}<LSEP>[](symbol){id.col}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Added }<LSEP>[](symbol){other.col}<LSEP>[argument 2; litteral](str){ to the other$ind.metrics slot.\n}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 29; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){gout}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.hwe}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){alpha}<LSEP>[](symbol){basis}<LSEP>[](symbol){bon}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SilicoDArT}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){data.type}<LSEP>[litteral](str){SNP}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){alpha}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){alpha}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: level of signific...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){alpha}<LSEP>[litteral](real){0.050000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){basis}<LSEP>[argument 1; litteral](str){any}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: basis of assessme...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){basis}<LSEP>[litteral](str){any}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){basis}<LSEP>[argument 1; litteral](str){any}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){poplist}<LEND>[call](){}<LSEP>[](symbol){seppop}<LSEP>[](symbol){x}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){count}<LSEP>[litteral](real){0.000000}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){i}<LSEP>[](symbol){poplist}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){utils.hwe}<LSEP>[](symbol){i}<LSEP>[](symbol){alpha}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Population}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){poplist}<LEND>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){result}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){Population}<LSEP>[](symbol){result}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){utils.hwe}<LSEP>[](symbol){i}<LSEP>[](symbol){alpha}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Population}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){poplist}<LEND>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){r}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){Population}<LSEP>[](symbol){r}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){result}<LSEP>[](symbol){r}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){rprob}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){Prob}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){bon}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){Bonsig}<LEND>[argument 1; litteral](str){*}<LEND>[](symbol){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){result}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){rprob}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){rprob}<LSEP>[](symbol){alpha}<LEND>[](symbol){}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){failed.loci}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){Locus}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Loci examined:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){bon}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleted}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){failed.loci}<LEND>[argument 2; litteral](str){loci with significant departur...}<LSEP>[](symbol){alpha}<LSEP>[argument 4; litteral](str){\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleted}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){failed.loci}<LEND>[argument 2; litteral](str){loci with significant departur...}<LSEP>[](symbol){alpha}<LSEP>[argument 4; litteral](str){applied locus by locus\n}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[](symbol){failed.loci}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){index}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){index}<LSEP>[](symbol){}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Loci retained:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 23; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){SIGNAL.ALL}<LSEP>[litteral](str){AllSig}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.HEAVI.SINE}<LSEP>[litteral](str){HeaviSine}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.BUMPS}<LSEP>[litteral](str){Bumps}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.BLOCKS}<LSEP>[litteral](str){Blocks}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.DOPPLER}<LSEP>[litteral](str){Doppler}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.RAMP}<LSEP>[litteral](str){Ramp}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.CUSP}<LSEP>[litteral](str){Cusp}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.SING}<LSEP>[litteral](str){Sing}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.HI.SINE}<LSEP>[litteral](str){HiSine}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.LO.SINE}<LSEP>[litteral](str){LoSine}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.LIN.CHIRP}<LSEP>[litteral](str){LinChirp}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.TWO.CHIRP}<LSEP>[litteral](str){TwoChirp}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.QUAD.CHIRP}<LSEP>[litteral](str){QuadChirp}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.MISH.MASH}<LSEP>[litteral](str){MishMash}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.WERNER.SORROWS}<LSEP>[litteral](str){Werner Sorrows}<LEND>[assign](){<-}<LSEP>[](symbol){SIGNAL.LEOPOLD}<LSEP>[litteral](str){Leopold}<LEND>[assign](){<-}<LSEP>[](symbol){makesig}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sigName}<LSEP>[](symbol){N}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){.isValidSignal}<LSEP>[](symbol){sigName}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){argument %s specifies unknown ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){sigName}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){N}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){argument %s must be numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){N}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){N}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){argument %s must be of length 1}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){N}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tN}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[](symbol){N}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){nsigs}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; litteral](real){1.000000}<LSEP>[false branch; litteral](real){15.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[argument 0; litteral](logical){NA}<LEND>[](symbol){nsigs}<LSEP>[](symbol){N}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){1.000000}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.HEAVI.SINE}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.heavi.sine}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.BUMPS}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.bumps}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.BLOCKS}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.blocks}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.DOPPLER}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.doppler}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.RAMP}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.ramp}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.CUSP}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.cusp}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.SING}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.sing}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.HI.SINE}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.hi.sine}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.LO.SINE}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.lo.sine}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.LIN.CHIRP}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.lin.chirp}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.TWO.CHIRP}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.two.chirp}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.QUAD.CHIRP}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.quad.chirp}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.MISH.MASH}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.mish.mash}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.WERNER.SORROWS}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.werner.sorrows}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.LEOPOLD}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){sigName}<LSEP>[](symbol){SIGNAL.ALL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){.makesig.leopold}<LSEP>[](symbol){N}<LSEP>[](symbol){tN}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 21; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LSEP>[](symbol){N}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.heavi.sine}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){pi}<LEND>[](symbol){t}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sign}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){0.300000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sign}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.720000}<LSEP>[](symbol){t}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.bumps}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pos}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](real){0.130000}<LSEP>[argument 2; litteral](real){0.150000}<LSEP>[argument 3; litteral](real){0.230000}<LSEP>[argument 4; litteral](real){0.250000}<LSEP>[argument 5; litteral](real){0.400000}<LSEP>[argument 6; litteral](real){0.440000}<LSEP>[argument 7; litteral](real){0.650000}<LSEP>[argument 8; litteral](real){0.760000}<LSEP>[argument 9; litteral](real){0.780000}<LSEP>[argument 10; litteral](real){0.810000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){hgt}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LSEP>[argument 4; litteral](real){5.000000}<LSEP>[argument 5; litteral](real){4.200000}<LSEP>[argument 6; litteral](real){2.100000}<LSEP>[argument 7; litteral](real){4.300000}<LSEP>[argument 8; litteral](real){3.100000}<LSEP>[argument 9; litteral](real){5.100000}<LSEP>[argument 10; litteral](real){4.200000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){wth}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.005000}<LSEP>[argument 1; litteral](real){0.005000}<LSEP>[argument 2; litteral](real){0.006000}<LSEP>[argument 3; litteral](real){0.010000}<LSEP>[argument 4; litteral](real){0.010000}<LSEP>[argument 5; litteral](real){0.030000}<LSEP>[argument 6; litteral](real){0.010000}<LSEP>[argument 7; litteral](real){0.010000}<LSEP>[argument 8; litteral](real){0.005000}<LSEP>[argument 9; litteral](real){0.008000}<LSEP>[argument 10; litteral](real){0.005000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){matlab}<LSEP>[](symbol){zeros}<LEND>[argument 0; call](){}<LSEP>[](symbol){size}<LSEP>[](symbol){t}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){pos}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hgt}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pos}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wth}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){4.000000}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.blocks}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pos}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](real){0.130000}<LSEP>[argument 2; litteral](real){0.150000}<LSEP>[argument 3; litteral](real){0.230000}<LSEP>[argument 4; litteral](real){0.250000}<LSEP>[argument 5; litteral](real){0.400000}<LSEP>[argument 6; litteral](real){0.440000}<LSEP>[argument 7; litteral](real){0.650000}<LSEP>[argument 8; litteral](real){0.760000}<LSEP>[argument 9; litteral](real){0.780000}<LSEP>[argument 10; litteral](real){0.810000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){hgt}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 2; litteral](real){3.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[argument 4; litteral](real){5.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){4.200000}<LEND>[argument 6; litteral](real){2.100000}<LSEP>[argument 7; litteral](real){4.300000}<LEND>[argument 8; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.100000}<LEND>[argument 9; litteral](real){2.100000}<LEND>[argument 10; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){4.200000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){matlab}<LSEP>[](symbol){zeros}<LEND>[argument 0; call](){}<LSEP>[](symbol){size}<LSEP>[](symbol){t}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){pos}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sign}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pos}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hgt}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.doppler}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){pi}<LEND>[argument 1; litteral](real){1.050000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){0.050000}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.ramp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){0.370000}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.cusp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){0.370000}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.sing}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.370000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[](symbol){N}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.hi.sine}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.690200}<LEND>[](symbol){t}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.lo.sine}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.333300}<LEND>[](symbol){t}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.lin.chirp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pi}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.125000}<LEND>[](symbol){t}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.two.chirp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pi}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){pi}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.quad.chirp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){pi}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.mish.mash}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){pi}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.690200}<LEND>[](symbol){t}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pi}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.125000}<LEND>[](symbol){t}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.werner.sorrows}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pos}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[argument 1; litteral](real){0.130000}<LSEP>[argument 2; litteral](real){0.150000}<LSEP>[argument 3; litteral](real){0.230000}<LSEP>[argument 4; litteral](real){0.250000}<LSEP>[argument 5; litteral](real){0.400000}<LSEP>[argument 6; litteral](real){0.440000}<LSEP>[argument 7; litteral](real){0.650000}<LSEP>[argument 8; litteral](real){0.760000}<LSEP>[argument 9; litteral](real){0.780000}<LSEP>[argument 10; litteral](real){0.810000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){hgt}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LSEP>[argument 4; litteral](real){5.000000}<LSEP>[argument 5; litteral](real){4.200000}<LSEP>[argument 6; litteral](real){2.100000}<LSEP>[argument 7; litteral](real){4.300000}<LSEP>[argument 8; litteral](real){3.100000}<LSEP>[argument 9; litteral](real){5.100000}<LSEP>[argument 10; litteral](real){4.200000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){wth}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.005000}<LSEP>[argument 1; litteral](real){0.005000}<LSEP>[argument 2; litteral](real){0.006000}<LSEP>[argument 3; litteral](real){0.010000}<LSEP>[argument 4; litteral](real){0.010000}<LSEP>[argument 5; litteral](real){0.030000}<LSEP>[argument 6; litteral](real){0.010000}<LSEP>[argument 7; litteral](real){0.010000}<LSEP>[argument 8; litteral](real){0.005000}<LSEP>[argument 9; litteral](real){0.008000}<LSEP>[argument 10; litteral](real){0.005000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pi}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){t}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.690200}<LEND>[](symbol){t}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sin}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pi}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[](symbol){pos}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hgt}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pos}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wth}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){4.000000}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.makesig.leopold}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){N}<LSEP>[](symbol){t}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.370000}<LSEP>[](symbol){N}<LEND>[](symbol){N}<LEND>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){.isValidSignal}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sigName}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){signals}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){SIGNAL.ALL}<LSEP>[](symbol){SIGNAL.HEAVI.SINE}<LSEP>[](symbol){SIGNAL.BUMPS}<LSEP>[](symbol){SIGNAL.BLOCKS}<LSEP>[](symbol){SIGNAL.DOPPLER}<LSEP>[](symbol){SIGNAL.RAMP}<LSEP>[](symbol){SIGNAL.CUSP}<LSEP>[](symbol){SIGNAL.SING}<LSEP>[](symbol){SIGNAL.HI.SINE}<LSEP>[](symbol){SIGNAL.LO.SINE}<LSEP>[](symbol){SIGNAL.LIN.CHIRP}<LSEP>[](symbol){SIGNAL.TWO.CHIRP}<LSEP>[](symbol){SIGNAL.QUAD.CHIRP}<LSEP>[](symbol){SIGNAL.MISH.MASH}<LSEP>[](symbol){SIGNAL.WERNER.SORROWS}<LSEP>[](symbol){SIGNAL.LEOPOLD}<LEND>[statement 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmatch}<LSEP>[](symbol){sigName}<LSEP>[](symbol){signals}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){interpret.fpcad}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){nscore}<LSEP>[](symbol){moment}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){moment}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){all}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Since dad-4, moment='all' is n...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){moment}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){moment}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.fpcad}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){arg1 must be an object of clas...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nscore}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Since dad-4, nscore can only b...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nscore}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){coor}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){coor}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){coor}<LEND>[](symbol){group.name}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){matcoor}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coor}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nscore}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){colnoms}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variables}<LEND>[statement 9; assign](){=}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){colnoms}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){matmoments}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group.name}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){colNames}<LEND>[call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 12; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){moment}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){moyL}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){means}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){matmoments}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){matmoments}<LEND>[argument 1; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){moyL}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){colNames}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){colNames}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){mean}<LSEP>[](symbol){colnoms}<LSEP>[argument 2; litteral](str){.}<LEND>[argument 2; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){covL}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[](symbol){diag}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){covL}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){matmoments}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){matmoments}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){covL}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){colNames}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){colNames}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){sd}<LSEP>[](symbol){colnoms}<LSEP>[argument 2; litteral](str){.}<LEND>[argument 3; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){covL}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[](symbol){diag}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){covL}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){matmoments}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){matmoments}<LEND>[argument 1; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){covL}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){matmoments}<LEND>[](symbol){group.name}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){colNames}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){colNames}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){var}<LSEP>[](symbol){colnoms}<LSEP>[argument 2; litteral](str){.}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){covL}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){variances}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){matcov}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){covL}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){nom.col.cov}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){num.col.cov}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){num.col.cov.i}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){i}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){nom.col.cov.i}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){cov}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colnoms}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colnoms}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[argument 2; litteral](str){.}<LEND>[argument 2; litteral](str){.}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){num.col.cov}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){num.col.cov}<LSEP>[](symbol){num.col.cov.i}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){nom.col.cov}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){nom.col.cov}<LSEP>[](symbol){nom.col.cov.i}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){matmoments}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){matmoments}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matcov}<LSEP>[](symbol){}<LSEP>[](symbol){num.col.cov}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){colNames}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){colNames}<LSEP>[](symbol){nom.col.cov}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The covariances cannot be comp...}<LEND>[argument 5; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){matcor}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){correlations}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){num.col.cor}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){nom.col.cor}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){num.col.cor.i}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){i}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){nom.col.cor.i}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){cor}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colnoms}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){colnoms}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[argument 2; litteral](str){.}<LEND>[argument 2; litteral](str){.}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){num.col.cor}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){num.col.cor}<LSEP>[](symbol){num.col.cor.i}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){nom.col.cor}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){nom.col.cor}<LSEP>[](symbol){nom.col.cor.i}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){matcor}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matcor}<LSEP>[](symbol){}<LSEP>[](symbol){num.col.cor}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){colNames}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){colNames}<LSEP>[](symbol){nom.col.cor}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){matmoments}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){matmoments}<LSEP>[](symbol){matcor}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The correlations cannot be com...}<LEND>[argument 6; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){skewnessL}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){skewness}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){matmoments}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){matmoments}<LEND>[argument 1; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){skewnessL}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){colNames}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){colNames}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){skewness}<LSEP>[](symbol){colnoms}<LSEP>[argument 2; litteral](str){.}<LEND>[argument 7; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){kurtosisL}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){kurtosis}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){matmoments}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){matmoments}<LEND>[argument 1; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){kurtosisL}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){colNames}<LEND>[call](){}<LSEP>[](symbol){append}<LSEP>[](symbol){colNames}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){kurtosis}<LSEP>[](symbol){colnoms}<LSEP>[argument 2; litteral](str){.}<LEND>[statement 13; assign](){=}<LSEP>[](symbol){matmoments}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){matmoments}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 14; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){matmoments}<LEND>[](symbol){group.name}<LEND>[statement 15; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){matmoments}<LEND>[](symbol){colNames}<LEND>[statement 16; assign](){=}<LSEP>[](symbol){pearson.mat}<LEND>[call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){matmoments}<LSEP>[](symbol){matcoor}<LEND>[statement 17; assign](){=}<LSEP>[](symbol){spearman.mat}<LEND>[call](){}<LSEP>[](symbol){cor}<LSEP>[](symbol){matmoments}<LSEP>[](symbol){matcoor}<LSEP>[argument 2; litteral](str){spearman}<LEND>[statement 18; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Pearson correlations between s...}<LEND>[statement 19; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){pearson.mat}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 20; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Spearman correlations between ...}<LEND>[statement 21; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){spearman.mat}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){dev.pdf}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){.Device}<LSEP>[argument 1; litteral](str){pdf}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matmoments}<LEND>[argument 1; litteral](real){9.000000}<LEND>[statement 23; control flow](){if}<LSEP>[](symbol){dev.pdf}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matmoments}<LEND>[argument 1; litteral](str){graphs displayed. Consider pro...}<LEND>[statement 24; call](){}<LSEP>[](symbol){plotframes}<LSEP>[](symbol){matcoor}<LSEP>[](symbol){matmoments}<LSEP>[argument 2; litteral](real){10.000000}<LSEP>[](symbol){moment}<LEND>[statement 25; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pearson.mat}<LSEP>[](symbol){spearman.mat}
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){mvdtt}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LSEP>[](symbol){variant}<LSEP>[](symbol){inverted}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Parameter must be a matrix}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){dtt}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LSEP>[](symbol){variant}<LSEP>[](symbol){inverted}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){dtt}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){s}<LEND>[](symbol){type}<LSEP>[](symbol){variant}<LSEP>[](symbol){inverted}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){r}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.stockR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; assign](){=}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; assign](){=}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: genlight object con...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Converting SNP from genlight t...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){snp.matrix}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){return}<LSEP>[](symbol){snp.matrix}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){matwassersteinpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){meanL}<LSEP>[](symbol){varL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){meanL}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){meanL}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){meanL}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){meanL}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){wassersteinpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){meanL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){meanL}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){j}<LEND>[statement 3; call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){distances}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.He}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gl}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alf}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){gl}<LEND>[](symbol){T}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){alf}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){alf}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.packageName}<LSEP>[litteral](str){dr}<LEND>[assign](){<-}<LSEP>[](symbol){dr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){formula}<LSEP>[](symbol){data}<LSEP>[](symbol){subset}<LSEP>[](symbol){group}<LSEP>[](symbol){na.action}<LSEP>[](symbol){weights}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){match.call}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){na.action}<LEND>[](symbol){na.action}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){group}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){eval}<LEND>[argument 0; call](){}<LSEP>[](symbol){parse}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){group}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){data}<LEND>[argument 2; call](){}<LSEP>[](symbol){environment}<LSEP>[](symbol){group}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){...}<LEND>[litteral](NULL){NULL}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.name}<LSEP>[argument 0; litteral](str){model.frame}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){mf}<LEND>[argument 1; call](){}<LSEP>[](symbol){sys.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){sys.parent}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mt}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){terms}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){model.extract}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){response}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LSEP>[](symbol){mt}<LSEP>[](symbol){mf}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){y.name}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){Y}<LEND>[true branch; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){Y}<LEND>[false branch; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){mt}<LSEP>[argument 1; litteral](str){variables}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){int}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){(Intercept)}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){X}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){int}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){int}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){(weights)}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){weights}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){X}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){weights}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Negative weights}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pos.weights}<LEND>[call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){weights}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){weights}<LSEP>[](symbol){pos.weights}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){X}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){weights}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){weights}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){pos.weights}<LSEP>[](symbol){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Y}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){Y}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){pos.weights}<LSEP>[](symbol){}<LEND>[false branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){pos.weights}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){dr.compute}<LSEP>[](symbol){X}<LSEP>[](symbol){Y}<LSEP>[](symbol){weights}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){(group)}<LEND>[](symbol){...}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){call}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){y.name}<LEND>[](symbol){y.name}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){terms}<LEND>[](symbol){mt}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){dr.compute}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){weights}<LSEP>[](symbol){group}<LSEP>[](symbol){method}<LSEP>[](symbol){chi2approx}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The response and predictors ha...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The methods in dr require more...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){classname}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){y}<LEND>[true branch; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){m}<LSEP>[](symbol){method}<LSEP>[argument 2; litteral](str){}<LEND>[](symbol){method}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){group}<LEND>[true branch; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){p}<LSEP>[](symbol){method}<LSEP>[argument 2; litteral](str){}<LEND>[](symbol){method}<LEND>[](symbol){method}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){genclassname}<LSEP>[litteral](str){dr}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sweights}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){weights}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){qrz}<LEND>[call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){a}<LSEP>[](symbol){sweights}<LEND>[body; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){a}<LSEP>[](symbol){sweights}<LEND>[](symbol){sweights}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){weights}<LSEP>[](symbol){method}<LEND>[argument 4; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){y}<LEND>[](symbol){qrz}<LSEP>[](symbol){group}<LSEP>[](symbol){chi2approx}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){classname}<LSEP>[](symbol){genclassname}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){dr.fit}<LSEP>[](symbol){ans}<LSEP>[](symbol){...}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){x}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qrz}<LSEP>[](symbol){pivot}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){qrz}<LSEP>[](symbol){rank}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){dr.x}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){dr.wts}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[assign](){<-}<LSEP>[](symbol){dr.qr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){qr}<LEND>[assign](){<-}<LSEP>[](symbol){dr.Q}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.Q}<LEND>[assign](){<-}<LSEP>[](symbol){dr.Q.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.qr}<LSEP>[](symbol){object}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){qr}<LEND>[](symbol){rank}<LEND>[assign](){<-}<LSEP>[](symbol){dr.R}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.R}<LEND>[assign](){<-}<LSEP>[](symbol){dr.R.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.R}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.qr}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){qr}<LEND>[](symbol){rank}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){qr}<LEND>[](symbol){rank}<LEND>[assign](){<-}<LSEP>[](symbol){dr.z}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[argument 1; call](){}<LSEP>[](symbol){dr.Q}<LSEP>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){dr.y.name}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y.name}<LEND>[assign](){<-}<LSEP>[](symbol){dr.basis}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.basis}<LEND>[assign](){<-}<LSEP>[](symbol){dr.basis.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[assign](){<-}<LSEP>[](symbol){dr.evalues}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.evalues}<LEND>[assign](){<-}<LSEP>[](symbol){dr.evalues.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[assign](){<-}<LSEP>[](symbol){dr.fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.fit}<LEND>[assign](){<-}<LSEP>[](symbol){dr.fit.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){dr.M}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){D}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){M}<LSEP>[](symbol){M}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){M}<LSEP>[](symbol){M}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){M}<LSEP>[](symbol){M}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){M}<LSEP>[](symbol){M}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){M}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){M}<LSEP>[](symbol){M}<LEND>[false branch; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){M}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){M}<LSEP>[](symbol){M}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){or}<LEND>[call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){values}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){evalues}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){values}<LEND>[](symbol){or}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){raw.evectors}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){vectors}<LEND>[](symbol){}<LSEP>[](symbol){or}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){backsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[argument 1; call](){}<LSEP>[](symbol){dr.R}<LSEP>[](symbol){object}<LEND>[](symbol){raw.evectors}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){evectors}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){evectors}<LEND>[](symbol){evectors}<LEND>[false branch; call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){evectors}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){evectors}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){names}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.x}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){qr}<LEND>[](symbol){rank}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){names}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){evectors}<LEND>[argument 2; litteral](str){}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){aa}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evectors}<LSEP>[](symbol){evalues}<LEND>[argument 2; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){numdir}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){evectors}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){M}<LSEP>[](symbol){M}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){raw.evectors}<LEND>[](symbol){M}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){aa}<LEND>[call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){aa}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.M}<LEND>[assign](){<-}<LSEP>[](symbol){dr.y}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.y}<LEND>[assign](){<-}<LSEP>[](symbol){dr.y.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.test}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){dr.coordinate.test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){chi2approx}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.coordinate.test}<LEND>[assign](){<-}<LSEP>[](symbol){dr.coordinate.test.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){chi2approx}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){dr.joint.test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.joint.test}<LEND>[assign](){<-}<LSEP>[](symbol){dr.joint.test.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.ols}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ols}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){ols}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){ols}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.sir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){nslices}<LSEP>[](symbol){slice.function}<LSEP>[](symbol){sel}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sel}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){sel}<LEND>[true branch; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){sel}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[](symbol){sel}<LSEP>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){y}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){y}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){sel}<LSEP>[](symbol){}<LEND>[false branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){sel}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){h}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nslices}<LEND>[](symbol){nslices}<LEND>[false branch; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){slices}<LEND>[call](){}<LSEP>[](symbol){slice.function}<LSEP>[](symbol){y}<LSEP>[](symbol){h}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){zmeans}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[argument 2; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){z}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){slice.weight}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){object}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){wmean}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){wts}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LSEP>[](symbol){wts}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){wts}<LEND>[statement 10; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){zmeans}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){sel}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){wmean}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LSEP>[](symbol){sel}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){slice.weight}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LSEP>[](symbol){sel}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){zmeans}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){zmeans}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](str){*}<LSEP>[](symbol){slice.weight}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){slice.weight}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){M}<LSEP>[](symbol){slices}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.msir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dr.M.sir}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.sir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){e}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){st}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[assign](){<-}<LSEP>[](symbol){pv}<LSEP>[litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nt}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){p}<LSEP>[](symbol){numdir}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[](symbol){nslices}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pv}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){st}<LSEP>[](symbol){df}<LSEP>[](symbol){pv}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){rr}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){D vs >= }<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[argument 3; litteral](str){D}<LSEP>[argument 4; litteral](str){}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){rr}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stat}<LSEP>[argument 1; litteral](str){df}<LSEP>[argument 2; litteral](str){p.value}<LEND>[](symbol){z}<LEND>[assign](){<-}<LSEP>[](symbol){dr.coordinate.test.sir}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){chi2approx}<LSEP>[](symbol){pval}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){hypothesis}<LEND>[argument 1; litteral](str){formula}<LEND>[true branch; call](){}<LSEP>[](symbol){coord.hyp.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LEND>[false branch; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){hypothesis}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ev}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){slices}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){d}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[true branch; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){h}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ev}<LEND>[](symbol){d}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){M}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.R}<LSEP>[](symbol){object}<LEND>[](symbol){gamma}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LSEP>[](symbol){H}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){QH}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){r}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){r}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){st}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ev}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){QH}<LEND>[](symbol){M}<LEND>[](symbol){QH}<LEND>[](symbol){values}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){r}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ev}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){testr}<LEND>[call](){}<LSEP>[](symbol){dr.pvalue}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){wts}<LSEP>[](symbol){r}<LEND>[](symbol){st}<LSEP>[](symbol){chi2approx}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){epsilon}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){n}<LSEP>[](symbol){h}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){zmeans}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){p}<LSEP>[](symbol){h}<LEND>[statement 19; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){h}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){f_k}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){sel}<LEND>[](symbol){n}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){zmeans}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){sel}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){mean}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){epsilon}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){sel}<LSEP>[](symbol){f_k}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){zmeans}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){f_k}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){f_k}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){HZ}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){z}<LSEP>[](symbol){H}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){Phi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){svd}<LSEP>[](symbol){zmeans}<LSEP>[](symbol){h}<LEND>[](symbol){v}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){d}<LSEP>[](symbol){h}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){epsilonHZ}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){d}<LEND>[statement 23; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){epsilonHZ}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){Phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){epsilon}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){HZ}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){epsilonHZ}<LEND>[](symbol){values}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){testg}<LEND>[call](){}<LSEP>[](symbol){dr.pvalue}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){wts}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){st}<LSEP>[](symbol){chi2approx}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){pv}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pval}<LSEP>[argument 1; litteral](str){restricted}<LEND>[true branch; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testg}<LSEP>[](symbol){pval.adj}<LEND>[false branch; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testr}<LSEP>[](symbol){pval.adj}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){st}<LSEP>[](symbol){pv}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){Test}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Statistic}<LSEP>[argument 1; litteral](str){P.value}<LEND>[](symbol){z}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.save}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){nslices}<LSEP>[](symbol){slice.function}<LSEP>[](symbol){sel}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sel}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){sel}<LEND>[true branch; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){sel}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[](symbol){sel}<LSEP>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){y}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){y}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){sel}<LSEP>[](symbol){}<LEND>[false branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){sel}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){object}<LEND>[](symbol){sel}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){h}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nslices}<LEND>[](symbol){nslices}<LEND>[false branch; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){slices}<LEND>[call](){}<LSEP>[](symbol){slice.function}<LSEP>[](symbol){y}<LSEP>[](symbol){h}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){z}<LEND>[argument 2; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){z}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[argument 1; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){z}<LEND>[argument 2; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){z}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){ws}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){wvar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){w}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){w}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[argument 1; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){sweep}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){w}<LEND>[argument 3; litteral](str){*}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){IminusC}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){wvar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){ind}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LSEP>[](symbol){ind}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ws}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LSEP>[](symbol){ind}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ws}<LSEP>[](symbol){j}<LEND>[](symbol){IminusC}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ws}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){IminusC}<LSEP>[](symbol){IminusC}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){ws}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){ws}<LEND>[statement 14; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){M}<LSEP>[](symbol){A}<LSEP>[](symbol){slices}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.save}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[](symbol){nslices}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){st.normal}<LEND>[assign](){<-}<LSEP>[](symbol){df.normal}<LEND>[assign](){<-}<LSEP>[](symbol){st.general}<LEND>[assign](){<-}<LSEP>[](symbol){df.general}<LSEP>[litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pv.normal}<LEND>[assign](){<-}<LSEP>[](symbol){pv.general}<LSEP>[litteral](real){0.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){nt}<LSEP>[](symbol){numdir}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){A}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){M}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){M}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){or}<LEND>[call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){values}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){D}<LSEP>[](symbol){vectors}<LEND>[](symbol){}<LSEP>[](symbol){or}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){evectors}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st.normal}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){h}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st.normal}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st.normal}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LSEP>[](symbol){}<LEND>[](symbol){theta}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df.normal}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pv.normal}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st.normal}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df.normal}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){HZ}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[](symbol){theta}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){ZZ}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ZZ}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){HZ}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){HZ}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){Sigma}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){ZZ}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df.general}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){Sigma}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st.general}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st.normal}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){Sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pv.general}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st.general}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df.general}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){st.normal}<LSEP>[](symbol){df.normal}<LSEP>[](symbol){pv.normal}<LSEP>[](symbol){pv.general}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){rr}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){D vs >= }<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[argument 3; litteral](str){D}<LSEP>[argument 4; litteral](str){}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){rr}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stat}<LSEP>[argument 1; litteral](str){df(Nor)}<LSEP>[argument 2; litteral](str){p.value(Nor)}<LSEP>[argument 3; litteral](str){p.value(Gen)}<LEND>[](symbol){z}<LEND>[assign](){<-}<LSEP>[](symbol){dr.coordinate.test.save}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){chi2approx}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){hypothesis}<LEND>[argument 1; litteral](str){formula}<LEND>[true branch; call](){}<LSEP>[](symbol){coord.hyp.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LEND>[false branch; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){hypothesis}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[](symbol){nslices}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){st}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[assign](){<-}<LSEP>[](symbol){pv}<LSEP>[litteral](real){0.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.R}<LSEP>[](symbol){object}<LEND>[](symbol){gamma}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){r}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){A}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){st}<LSEP>[litteral](real){0.000000}<LEND>[statement 10; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){h}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){st}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){H}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){A}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LSEP>[](symbol){}<LEND>[](symbol){H}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){df.normal}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){pv.normal}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){st}<LSEP>[](symbol){df.normal}<LEND>[statement 13; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){HZ}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[](symbol){H}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ZZ}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ZZ}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){HZ}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){HZ}<LSEP>[](symbol){j}<LSEP>[](symbol){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){ZZ}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){testg}<LEND>[call](){}<LSEP>[](symbol){dr.pvalue}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){wts}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){st}<LSEP>[](symbol){chi2approx}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){st}<LSEP>[](symbol){df.normal}<LSEP>[](symbol){pv.normal}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){testg}<LSEP>[](symbol){pval.adj}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](str){Test}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Statistic}<LSEP>[argument 1; litteral](str){df(Nor)}<LSEP>[argument 2; litteral](str){p.val(Nor)}<LSEP>[argument 3; litteral](str){p.val(Gen)}<LEND>[](symbol){z}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.phdy}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dr.M.phd}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.mphd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multivariate pHd not implemented!}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.phdres}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dr.M.phd}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.mphdres}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multivariate pHd not implemented!}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.mphy}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multivariate pHd not implemented!}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.phd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](str){*}<LEND>[argument 3; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){wts}<LSEP>[](symbol){y}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){wts}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){M}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.mphd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multivariate pHd not implemented!}<LEND>[assign](){<-}<LSEP>[](symbol){dr.y.phdy}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[statement 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){dr.y.phdres}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sw}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[statement 2; call](){}<LSEP>[](symbol){qr.resid}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){qr}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sw}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){y}<LEND>[assign](){<-}<LSEP>[](symbol){dr.y.phd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dr.y.phdres}<LSEP>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.phd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){e}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){resi}<LEND>[call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){varres}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){resi}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){st}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[assign](){<-}<LSEP>[](symbol){pv}<LSEP>[litteral](real){0.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nt}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){p}<LSEP>[](symbol){numdir}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){varres}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pv}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){indep}<LEND>[call](){}<LSEP>[](symbol){dr.indep.test.phdres}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){lc}<LEND>[call](){}<LSEP>[](symbol){dr.test2.phdres}<LSEP>[](symbol){object}<LSEP>[](symbol){st}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){st}<LSEP>[](symbol){df}<LSEP>[](symbol){pv}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){indep}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){st}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lc}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){rr}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){D vs >= }<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[argument 3; litteral](str){D}<LSEP>[argument 4; litteral](str){}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){cc}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stat}<LSEP>[argument 1; litteral](str){df}<LSEP>[argument 2; litteral](str){Normal theory}<LSEP>[argument 3; litteral](str){Indep. test}<LSEP>[argument 4; litteral](str){General theory}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){rr}<LSEP>[](symbol){cc}<LEND>[](symbol){z}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.phdres}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dr.test.phd}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.phdy}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){e}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){resi}<LEND>[call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){varres}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){resi}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){st}<LEND>[assign](){<-}<LSEP>[](symbol){df}<LEND>[assign](){<-}<LSEP>[](symbol){pv}<LSEP>[litteral](real){0.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nt}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){p}<LSEP>[](symbol){numdir}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){varres}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pv}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){st}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){st}<LSEP>[](symbol){df}<LSEP>[](symbol){pv}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){rr}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){D vs >= }<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[argument 3; litteral](str){D}<LSEP>[argument 4; litteral](str){}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){cc}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stat}<LSEP>[argument 1; litteral](str){df}<LSEP>[argument 2; litteral](str){p.value}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){rr}<LSEP>[](symbol){cc}<LEND>[](symbol){z}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.phdq}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pars}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){fullquad.fit}<LSEP>[](symbol){object}<LEND>[](symbol){coef}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pars}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){9.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mymatrix}<LEND>[call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pars}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pars}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pars}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mymatrix}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pars}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mymatrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pars}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pars}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pars}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){i}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mymatrix}<LEND>[assign](){<-}<LSEP>[](symbol){fullquad.fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){x}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 6; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){y}<LSEP>[](symbol){z}<LEND>[](symbol){w}<LEND>[assign](){<-}<LSEP>[](symbol){dr.y.phdq}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){residuals}<LEND>[argument 0; call](){}<LSEP>[](symbol){fullquad.fit}<LSEP>[](symbol){object}<LEND>[argument 1; litteral](str){pearson}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.phdq}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dr.test.phd}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[assign](){<-}<LSEP>[](symbol){dr.M.mphdq}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Multivariate pHd not implemented!}<LEND>[assign](){<-}<LSEP>[](symbol){coord.hyp.basis}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){spec}<LSEP>[](symbol){which}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mod2}<LEND>[call](){}<LSEP>[](symbol){update}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){terms}<LEND>[](symbol){spec}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Base}<LEND>[call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){terms}<LEND>[argument 1; litteral](str){term.labels}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){New}<LEND>[call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){terms}<LSEP>[](symbol){mod2}<LEND>[argument 1; litteral](str){term.labels}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cols}<LEND>[call](){}<LSEP>[](symbol){na.omit}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){New}<LSEP>[](symbol){Base}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cols}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){New}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error---bad value of 'spec'}<LEND>[statement 5; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Base}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){which}<LSEP>[](symbol){cols}<LEND>[assign](){<-}<LSEP>[](symbol){dr.directions}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){which}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.direction}<LEND>[assign](){<-}<LSEP>[](symbol){dr.direction}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){which}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.direction}<LEND>[assign](){<-}<LSEP>[](symbol){dr.direction.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){which}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evectors}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){which}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){which}<LEND>[true branch; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ans}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){which}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){ans}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[](symbol){}<LSEP>[](symbol){which}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){which}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){dimnames}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LSEP>[](symbol){which}<LSEP>[argument 2; litteral](str){}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){plot.dr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){which}<LSEP>[](symbol){mark.by.y}<LSEP>[](symbol){plot.method}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){dr.direction}<LSEP>[](symbol){x}<LSEP>[](symbol){which}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mark.by.y}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot.method}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){x}<LEND>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.y.name}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){d}<LEND>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot.method}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){d}<LEND>[argument 2; call](){}<LSEP>[](symbol){markby}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){x}<LEND>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){markby}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LSEP>[](symbol){use}<LSEP>[](symbol){values}<LSEP>[](symbol){color.fn}<LSEP>[](symbol){na.action}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){z}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lu}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){u}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ans}<LSEP>[litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){vals}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){use}<LSEP>[argument 1; litteral](str){color}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){values}<LEND>[](symbol){lu}<LEND>[](symbol){values}<LEND>[false branch; call](){}<LSEP>[](symbol){color.fn}<LSEP>[](symbol){lu}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){values}<LEND>[](symbol){lu}<LEND>[](symbol){values}<LEND>[false branch; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){lu}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){lu}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){u}<LSEP>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){z}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.action}<LSEP>[argument 1; litteral](str){na.use}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vals}<LSEP>[](symbol){j}<LEND>[false branch; litteral](logical){NA}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){u}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vals}<LSEP>[](symbol){j}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){print.dr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){width}<LSEP>[](symbol){numdir}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fout}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[](symbol){width}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){fout}<LEND>[body; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LSEP>[](symbol){f}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Estimated Basis Vectors for Ce...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){evectors}<LEND>[statement 5; call](){}<LSEP>[](symbol){print.default}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){evectors}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){numdir}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){evectors}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Eigenvalues:\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){print.default}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){evalues}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){numdir}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){evectors}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 9; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){summary.dr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){call}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nd}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){numdir}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){evalues}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){evectors}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){evectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){method}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){nslices}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){slice.info}<LEND>[](symbol){nslices}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){sizes}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){slice.info}<LEND>[](symbol){slice.sizes}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){z}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){sw}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){weights}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){y}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){cases}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){ols.fit}<LEND>[call](){}<LSEP>[](symbol){qr.fitted}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){qr}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sw}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){y}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){angles}<LEND>[call](){}<LSEP>[](symbol){cosangle}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.direction}<LSEP>[](symbol){object}<LEND>[](symbol){ols.fit}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){angles}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){angles}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){angles}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nd}<LEND>[false branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){angles}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nd}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){angles}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){angles}<LEND>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){y.name}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){angle.names}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){angles}<LEND>[true branch; litteral](str){R^2(OLS|dr)}<LEND>[false branch; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){R^2(OLS for }<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){angles}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){|dr)}<LSEP>[argument 3; litteral](str){}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){evalues}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){z}<LSEP>[](symbol){evalues}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nd}<LEND>[](symbol){angles}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){evalues}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Eigenvalues}<LSEP>[](symbol){angle.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){NCOL}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){evalues}<LEND>[argument 2; litteral](str){}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){dr.test}<LSEP>[](symbol){object}<LSEP>[](symbol){nd}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){ans}<LEND>[litteral](str){summary.dr}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){print.summary.dr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nCall:\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[argument 1; litteral](str){\n}<LSEP>[argument 2; litteral](str){\n}<LEND>[argument 1; litteral](str){\n\n}<LSEP>[argument 2; litteral](str){}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Method:\n}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){nslices}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; litteral](str){, n = }<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n}<LEND>[argument 3; litteral](str){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){weights}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){, using weights.\n}<LEND>[false branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){.\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; litteral](str){ with }<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){nslices}<LEND>[argument 3; litteral](str){ slices, n = }<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n}<LEND>[argument 5; litteral](str){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){weights}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){, using weights.\n}<LEND>[false branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){.\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nSlice Sizes:\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){sizes}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nEstimated Basis Vectors for ...}<LEND>[statement 5; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){evectors}<LEND>[](symbol){digits}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){evalues}<LEND>[](symbol){digits}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){omitted}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nModel matrix is not full ran...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){omitted}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){test}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nLarge-sample Marginal Dimens...}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){test}<LEND>[](symbol){digits}<LEND>[statement 10; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){cov.ew.matrix}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){scaled}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mat.normalize}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){a}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){a}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.x}<LSEP>[](symbol){object}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){TEMPwts}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sTEMPwts}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){TEMPwts}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){mat.normalize}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.x}<LSEP>[](symbol){object}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](str){*}<LSEP>[](symbol){sTEMPwts}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evectors}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){y}<LEND>[control flow](){if}<LSEP>[](symbol){scaled}<LEND>[true branch; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){sTEMPwts}<LSEP>[](symbol){y}<LEND>[false branch; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){v}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ew0}<LSEP>[litteral](NULL){NULL}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){i}<LSEP>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ew0}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){ew0}<LEND>[argument 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[true branch; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){wmean}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){w}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){ew0}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){w}<LSEP>[](symbol){wmean}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){wmean}<LSEP>[](symbol){x}<LSEP>[](symbol){w}<LEND>[](symbol){TEMPwts}<LSEP>[](symbol){wmean}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){TEMPwts}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){tmp}<LEND>[](symbol){tmp}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test2.phdres}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){covew}<LEND>[call](){}<LSEP>[](symbol){cov.ew.matrix}<LSEP>[](symbol){object}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){stats}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pval}<LSEP>[litteral](NULL){NULL}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){d2}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.x}<LSEP>[](symbol){object}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d2}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){end}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){covew}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LSEP>[](symbol){d2}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){evals}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){C}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){covew}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){start}<LSEP>[](symbol){end}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){start}<LSEP>[](symbol){end}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){values}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pval}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){pval}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.pvalue}<LSEP>[](symbol){evals}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){chi2approx}<LEND>[](symbol){pval.adj}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){stats}<LSEP>[](symbol){pval}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){rr}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){D vs >= }<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 3; litteral](str){D}<LSEP>[argument 4; litteral](str){}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){rr}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stat}<LSEP>[argument 1; litteral](str){p.value}<LEND>[](symbol){z}<LEND>[assign](){<-}<LSEP>[](symbol){dr.indep.test.phdres}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){stat}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eval}<LEND>[call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){cov.ew.matrix}<LSEP>[](symbol){object}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pval}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.pvalue}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){eval}<LSEP>[](symbol){values}<LEND>[](symbol){stat}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){chi2approx}<LEND>[](symbol){pval.adj}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){stat}<LSEP>[](symbol){pval}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Test of independence}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stat}<LSEP>[argument 1; litteral](str){p.value}<LEND>[](symbol){z}<LEND>[assign](){<-}<LSEP>[](symbol){dr.pvalue}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){coef}<LSEP>[](symbol){f}<LSEP>[](symbol){chi2approx}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){chi2approx}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){bx}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){bentlerxie.pvalue}<LSEP>[](symbol){coef}<LSEP>[](symbol){f}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){wood.pvalue}<LSEP>[](symbol){coef}<LSEP>[](symbol){f}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){bentlerxie.pvalue}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){coef}<LSEP>[](symbol){f}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){trace1}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){coef}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){trace2}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){coef}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){df.adj}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){trace1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){trace2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){stat.adj}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){f}<LSEP>[](symbol){df.adj}<LEND>[](symbol){trace1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){bxadjusted}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){stat.adj}<LSEP>[](symbol){df.adj}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){f}<LSEP>[](symbol){stat.adj}<LSEP>[](symbol){df.adj}<LSEP>[](symbol){bxadjusted}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){wood.pvalue}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){coef}<LSEP>[](symbol){f}<LSEP>[](symbol){tol}<LSEP>[](symbol){print}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){negative eigenvalues}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pval}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){f}<LSEP>[](symbol){coef}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k1}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){coef}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){k2}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){coef}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){k3}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){coef}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){t1}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){k1}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k3}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k2}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){t2}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k1}<LSEP>[](symbol){k3}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){t2}<LSEP>[](symbol){tol}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tol}<LSEP>[](symbol){t2}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){k2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){k1}<LSEP>[](symbol){k2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pval}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pgamma}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){b}<LSEP>[](symbol){f}<LEND>[](symbol){a1}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){print}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Satterthwaite-Welsh Approximat...}<LSEP>[](symbol){pval}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){t1}<LSEP>[](symbol){tol}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tol}<LSEP>[](symbol){t2}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){k1}<LSEP>[](symbol){k2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){k2}<LEND>[](symbol){k2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pval}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){f}<LSEP>[](symbol){tol}<LEND>[true branch; litteral](real){1.000000}<LEND>[false branch; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pgamma}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){b}<LSEP>[](symbol){f}<LEND>[](symbol){a1}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){print}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Inverse gamma approximation =}<LSEP>[](symbol){pval}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){t1}<LSEP>[](symbol){tol}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){t2}<LSEP>[](symbol){tol}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k1}<LSEP>[](symbol){k3}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k2}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){t1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){t1}<LSEP>[](symbol){t2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){a2}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k2}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){k1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){t2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pval}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pbeta}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){f}<LSEP>[](symbol){b}<LEND>[](symbol){a1}<LSEP>[](symbol){a2}<LEND>[statement 4; control flow](){if}<LSEP>[](symbol){print}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Three parameter F(Pearson Type...}<LSEP>[](symbol){pval}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pval}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){print}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LSEP>[argument 0; litteral](str){Wood's Approximation failed}<LEND>[statement 2; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LSEP>[](symbol){pval}<LEND>[assign](){<-}<LSEP>[](symbol){dr.permutation.test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){npermute}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){object}<LSEP>[argument 1; litteral](str){ire}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Permutation tests not implemen...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){permute.weights}<LSEP>[litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){call}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){call}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){call}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.name}<LSEP>[argument 0; litteral](str){dr.compute}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){call}<LSEP>[](symbol){formula}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){call}<LSEP>[](symbol){data}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){call}<LSEP>[](symbol){subset}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){call}<LSEP>[](symbol){na.action}<LEND>[litteral](NULL){NULL}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){dr.directions}<LSEP>[](symbol){object}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){call}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nd}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){numdir}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){nt}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nd}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){obstest}<LEND>[call](){}<LSEP>[](symbol){dr.permutation.test.statistic}<LSEP>[](symbol){object}<LSEP>[](symbol){nt}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nt}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nt}<LEND>[statement 12; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){npermute}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){perm}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){call}<LSEP>[](symbol){weights}<LEND>[control flow](){if}<LSEP>[](symbol){permute.weights}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){weights}<LSEP>[](symbol){perm}<LEND>[](symbol){weights}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){col}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nd}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){call}<LSEP>[](symbol){x}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){col}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){perm}<LSEP>[](symbol){}<LEND>[false branch; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){col}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){perm}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){col}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){iperm}<LEND>[call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){call}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){val}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){col}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.permutation.test.statistic}<LSEP>[](symbol){iperm}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){col}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){col}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){val}<LSEP>[](symbol){obstest}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){val}<LSEP>[](symbol){obstest}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){pval}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){npermute}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){ans1}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){obstest}<LSEP>[](symbol){pval}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){ans1}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){D vs >= }<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nt}<LEND>[argument 3; litteral](str){D}<LSEP>[argument 4; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stat}<LSEP>[argument 1; litteral](str){p.value}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ans1}<LSEP>[](symbol){npermute}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){ans}<LEND>[litteral](str){dr.permutation.test}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){print.dr.permutation.test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nPermutation tests\nNumber of...}<LEND>[statement 1; call](){}<LSEP>[](symbol){print.default}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){npermute}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nTest results:\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){summary}<LEND>[](symbol){digits}<LEND>[statement 4; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){summary.dr.permutation.test}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print.dr.permutation.test}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){dr.permutation.test.statistic}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.permutation.test.statistic}<LEND>[assign](){<-}<LSEP>[](symbol){dr.permutation.test.statistic.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[assign](){<-}<LSEP>[](symbol){dr.permutation.test.statistic.phdy}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dr.permutation.test.statistic.phd}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[assign](){<-}<LSEP>[](symbol){dr.permutation.test.statistic.phdres}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dr.permutation.test.statistic.phd}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[assign](){<-}<LSEP>[](symbol){dr.permutation.test.statistic.phd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[argument 1; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){rev}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){evalues}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[assign](){<-}<LSEP>[](symbol){dr.slices}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){nslices}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dr.slice.1d}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){h}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){y}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){z}<LEND>[](symbol){h}<LEND>[true branch; call](){}<LSEP>[](symbol){dr.slice2}<LSEP>[](symbol){y}<LSEP>[](symbol){h}<LEND>[false branch; call](){}<LSEP>[](symbol){dr.slice1}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sort}<LSEP>[](symbol){z}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dr.slice1}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){u}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[assign](){<-}<LSEP>[](symbol){sizes}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){u}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){u}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){temp}<LEND>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sizes}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){temp}<LEND>[statement 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){u}<LEND>[](symbol){sizes}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dr.slice2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){h}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){myfind}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){cty}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){x}<LSEP>[](symbol){cty}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ans}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cty}<LEND>[false branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ans}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){or}<LEND>[call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cty}<LEND>[call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){y}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){cty}<LEND>[litteral](NULL){NULL}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[](symbol){h}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){sp}<LEND>[assign](){<-}<LSEP>[](symbol){end}<LSEP>[litteral](real){0.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){j}<LSEP>[litteral](real){0.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[statement 9; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){end}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){end}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){end}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){myfind}<LSEP>[](symbol){end}<LSEP>[](symbol){cty}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){end}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cty}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[](symbol){j}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cty}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){sp}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){firstobs}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cty}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lastobs}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cty}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){or}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){firstobs}<LSEP>[](symbol){lastobs}<LEND>[](symbol){j}<LEND>[statement 12; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){sp}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cty}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cty}<LSEP>[](symbol){sp}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){y}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){y}<LEND>[argument 1; litteral](real){2.000000}<LEND>[false branch; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){h}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nslices}<LEND>[](symbol){p}<LEND>[](symbol){nslices}<LEND>[false branch; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){nslices}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[](symbol){p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){dr.slice.1d}<LEND>[argument 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){y}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){col}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ns}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){dr.slice.1d}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){j}<LEND>[](symbol){col}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h}<LSEP>[](symbol){col}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){col}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){b}<LSEP>[](symbol){slice.indicator}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ns}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ns}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){b}<LSEP>[](symbol){nslices}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){nslices}<LEND>[](symbol){ns}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){L}<LEND>[assign](){<-}<LSEP>[](symbol){slice.indicator}<LSEP>[litteral](NULL){NULL}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){v}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){v}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){slice.indicator}<LSEP>[](symbol){sel}<LEND>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){L}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){L}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){sel}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){slice.indicator}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){a}<LSEP>[](symbol){slice.sizes}<LEND>[](symbol){L}<LEND>[](symbol){a}<LEND>[assign](){<-}<LSEP>[](symbol){dr.slices.arc}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){nslices}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){y}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){dr.slices.arc is used for univ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){h}<LSEP>[](symbol){nslices}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){or}<LEND>[call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){y}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[](symbol){h}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){h}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){start}<LEND>[assign](){<-}<LSEP>[](symbol){sp}<LEND>[assign](){<-}<LSEP>[](symbol){ans}<LSEP>[litteral](real){0.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){j}<LSEP>[litteral](real){1.000000}<LEND>[statement 8; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LSEP>[](symbol){m}<LEND>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){start}<LSEP>[](symbol){start}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){or}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){or}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LSEP>[](symbol){m}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[](symbol){j}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[](symbol){j}<LEND>[](symbol){n}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){or}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 12; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){j}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){or}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[](symbol){k}<LEND>[](symbol){k}<LEND>[statement 13; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ans}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LSEP>[](symbol){sp}<LEND>[assign](){<-}<LSEP>[](symbol){cosangle}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mat}<LSEP>[](symbol){vecs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){vecs}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){cosangle1}<LSEP>[](symbol){mat}<LSEP>[](symbol){vecs}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){vecs}<LEND>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){cosangle1}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vecs}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){vecs}<LEND>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){cosangle1}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mat}<LSEP>[](symbol){vec}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){cumsum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LSEP>[](symbol){mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){scale}<LSEP>[](symbol){vec}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){vec}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){version}<LSEP>[](symbol){language}<LEND>[argument 1; litteral](str){R}<LEND>[](symbol){ans}<LEND>[false branch; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){dr.weights}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){formula}<LSEP>[](symbol){data}<LSEP>[](symbol){subset}<LSEP>[](symbol){na.action}<LSEP>[](symbol){sigma}<LSEP>[](symbol){nsamples}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mf1}<LEND>[call](){}<LSEP>[](symbol){match.call}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf1}<LSEP>[](symbol){...}<LEND>[litteral](NULL){NULL}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf1}<LSEP>[](symbol){covmethod}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf1}<LSEP>[](symbol){nsamples}<LEND>[litteral](NULL){NULL}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mf1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.name}<LSEP>[argument 0; litteral](str){model.frame}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){mf1}<LEND>[argument 1; call](){}<LSEP>[](symbol){sys.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){sys.parent}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mt}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){terms}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LSEP>[](symbol){mt}<LSEP>[](symbol){mf}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){int}<LEND>[call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){(Intercept)}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){int}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){int}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){cov.rob}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){center}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){svd}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){cov}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){sweep}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){s}<LSEP>[](symbol){u}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){s}<LSEP>[](symbol){d}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){ns}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nsamples}<LEND>[true branch; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[](symbol){n}<LEND>[](symbol){nsamples}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){dist}<LEND>[assign](){<-}<LSEP>[](symbol){wts}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ns}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){point}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){rnorm}<LSEP>[](symbol){p}<LEND>[](symbol){sigma}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){point}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){point}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){point}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){dist}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LSEP>[](symbol){sel}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){wts}<LSEP>[](symbol){sel}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LSEP>[](symbol){wts}<LEND>[](symbol){ns}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){subset}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){w}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){subset}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){w}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf1}<LSEP>[](symbol){subset}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){w1}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){mf1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w1}<LSEP>[](symbol){subset}<LEND>[](symbol){w}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){w1}<LEND>[assign](){<-}<LSEP>[](symbol){drop1.dr}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){scope}<LSEP>[](symbol){update}<LSEP>[](symbol){test}<LSEP>[](symbol){trace}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){keep}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){scope}<LEND>[true branch; litteral](NULL){NULL}<LEND>[false branch; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){terms}<LEND>[argument 0; call](){}<LSEP>[](symbol){update}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){terms}<LEND>[](symbol){scope}<LEND>[argument 1; litteral](str){term.labels}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){all}<LEND>[call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){terms}<LEND>[argument 1; litteral](str){term.labels}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){candidates}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LSEP>[](symbol){all}<LSEP>[](symbol){keep}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){candidates}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error---nothing to drop}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ans}<LSEP>[litteral](NULL){NULL}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){label}<LSEP>[](symbol){candidates}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){dr.coordinate.test}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){~.-}<LSEP>[](symbol){label}<LSEP>[argument 2; litteral](str){}<LEND>[](symbol){...}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){-}<LSEP>[](symbol){candidates}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){ncols}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){ans}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){or}<LEND>[call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ans}<LSEP>[](symbol){}<LEND>[argument 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){general}<LEND>[](symbol){ncols}<LEND>[false branch; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ncols}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){form}<LEND>[call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){object}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){form}<LEND>[litteral](NULL){NULL}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){fout}<LEND>[call](){}<LSEP>[](symbol){deparse}<LSEP>[](symbol){form}<LSEP>[argument 1; litteral](real){50.000000}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){trace}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){fout}<LEND>[body; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LSEP>[](symbol){f}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ans}<LSEP>[](symbol){or}<LSEP>[](symbol){}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stop}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stop}<LEND>[litteral](real){0.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){stopp}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){or}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](str){general}<LEND>[](symbol){ncols}<LEND>[false branch; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ncols}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stop}<LEND>[true branch; litteral](logical){TRUE}<LSEP>[false branch; litteral](logical){FALSE}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){stopp}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){trace}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nStopping Criterion Met\n}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stop}<LEND>[litteral](logical){TRUE}<LEND>[](symbol){object}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){update}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){update}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){~.}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){ans}<LEND>[](symbol){or}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){}<LEND>[false branch; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){dr.step}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){scope}<LSEP>[](symbol){d}<LSEP>[](symbol){minsize}<LSEP>[](symbol){stop}<LSEP>[](symbol){trace}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stop}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stop}<LEND>[](symbol){stop}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stop}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){object}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){minsize}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){minsize}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){keep}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){scope}<LEND>[true branch; litteral](NULL){NULL}<LEND>[false branch; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){terms}<LEND>[argument 0; call](){}<LSEP>[](symbol){update}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){terms}<LEND>[](symbol){scope}<LEND>[argument 1; litteral](str){term.labels}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){all}<LEND>[call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){terms}<LEND>[argument 1; litteral](str){term.labels}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){keep}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){all}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){trace}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nNo more variables to remove\n}<LEND>[](symbol){object}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){all}<LEND>[](symbol){minsize}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){trace}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nMinimum size reached\n}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[](symbol){minsize}<LEND>[](symbol){object}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){minsize}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){trace}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nMinimum size reached\n}<LEND>[](symbol){object}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){obj1}<LEND>[call](){}<LSEP>[](symbol){drop1}<LSEP>[](symbol){object}<LSEP>[](symbol){scope}<LSEP>[](symbol){d}<LSEP>[](symbol){trace}<LSEP>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){dr.step}<LSEP>[](symbol){obj1}<LSEP>[](symbol){scope}<LSEP>[](symbol){d}<LSEP>[](symbol){stop}<LSEP>[](symbol){trace}<LSEP>[](symbol){...}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){version}<LSEP>[](symbol){language}<LEND>[argument 1; litteral](str){R}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; litteral](str){is.empty.model}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){terms}<LSEP>[](symbol){x}<LEND>[statement 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){tt}<LSEP>[argument 1; litteral](str){factors}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){tt}<LSEP>[argument 1; litteral](str){intercept}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; litteral](str){NROW}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.array}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x}<LEND>[false branch; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[variable; litteral](str){NCOL}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.array}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[false branch; call](){}<LSEP>[](symbol){as.integer}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; litteral](str){colnames}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){do.NULL}<LSEP>[](symbol){prefix}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dn}<LEND>[call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dn}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dn}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){do.NULL}<LSEP>[true branch; litteral](NULL){NULL}<LEND>[false branch; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){prefix}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[variable; litteral](str){getOption}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[assign](){<-}<LSEP>[](symbol){dr.fit.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){nslices}<LSEP>[](symbol){slice.function}<LSEP>[](symbol){tests}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){h}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nslices}<LEND>[](symbol){nslices}<LEND>[false branch; call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){8.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){slices}<LEND>[call](){}<LSEP>[](symbol){slice.function}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[](symbol){h}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[](symbol){slices}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.sizes}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.sizes}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){numdir}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){numdir}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){p}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){h}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sel}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xi}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){sel}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){a}<LSEP>[](symbol){w}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){a}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){weights}<LSEP>[](symbol){sel}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){sir.raw.evectors}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){eigen}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){xi}<LEND>[](symbol){vectors}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.means}<LEND>[](symbol){xi}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){An}<LEND>[call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){contr.helmert}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){zeta}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){f}<LEND>[](symbol){An}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){zeta}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Q}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){ans}<LSEP>[litteral](NULL){NULL}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tests}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){indep.test}<LEND>[call](){}<LSEP>[](symbol){dr.test}<LSEP>[](symbol){object}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Gz}<LEND>[call](){}<LSEP>[](symbol){Gzcomp}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){d}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ans}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){dr.test}<LSEP>[](symbol){object}<LSEP>[](symbol){d}<LSEP>[](symbol){Gz}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ans}<LSEP>[](symbol){d}<LEND>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[argument 2; litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LEND>[call](){}<LSEP>[](symbol){Gzcomp}<LSEP>[](symbol){object}<LSEP>[](symbol){d}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ans}<LSEP>[](symbol){numdir}<LEND>[](symbol){B}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){aa}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ans}<LSEP>[](symbol){numdir}<LSEP>[](symbol){n}<LSEP>[](symbol){f}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){aa}<LEND>[call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[statement 21; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){aa}<LEND>[assign](){<-}<LSEP>[](symbol){dr.test.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){Gz}<LSEP>[](symbol){steps}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){dr.iteration}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LSEP>[](symbol){numdir}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){sir.raw.evectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){steps}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){numdir}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){st}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){steps}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Gz}<LEND>[call](){}<LSEP>[](symbol){Gzcomp}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){B}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){dr.iteration}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LSEP>[](symbol){numdir}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){B}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){numdir}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans0}<LEND>[call](){}<LSEP>[](symbol){dr.iteration}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){B}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sumry}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans0}<LSEP>[](symbol){summary}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){B0}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans0}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans0}<LSEP>[](symbol){B}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){B}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){d}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){common}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B0}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){C}<LEND>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){C}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){C}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){common}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){C}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B0}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LSEP>[](symbol){C}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){C}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ans0}<LEND>[call](){}<LSEP>[](symbol){dr.iteration}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[](symbol){C}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){B0}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){B0}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans0}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans0}<LSEP>[](symbol){B}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){sumry}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){sumry}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.iteration}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LSEP>[](symbol){d}<LSEP>[](symbol){B0}<LEND>[](symbol){summary}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){B0}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){b}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){b}<LEND>[](symbol){b}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){sequential}<LEND>[](symbol){sumry}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){numdir}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[argument 2; litteral](str){}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){numdir}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){sequential}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){Gzcomp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){span}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){Gzcomp}<LEND>[assign](){<-}<LSEP>[](symbol){Gzcomp.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){span}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){slices}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){An}<LEND>[call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){contr.helmert}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.means}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){h}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){nslices}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.sizes}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.sizes}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){span}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){span}<LEND>[](symbol){span}<LEND>[false branch; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){xi}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){numdir}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){qr.fitted}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LSEP>[](symbol){span}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.means}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){p}<LSEP>[](symbol){h}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){Gz}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p}<LSEP>[](symbol){h}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p}<LSEP>[](symbol){h}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){Gmat}<LSEP>[litteral](NULL){NULL}<LEND>[statement 12; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){epsilon_i}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){f}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){epsilon_i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){epsilon_i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){slices}<LSEP>[](symbol){slice.indicator}<LEND>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){vec}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){epsilon_i}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Gmat}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){Gmat}<LSEP>[](symbol){vec}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){Gz}<LEND>[call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){kronecker}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){An}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){cov}<LSEP>[](symbol){Gmat}<LEND>[argument 1; call](){}<LSEP>[](symbol){kronecker}<LSEP>[](symbol){An}<LEND>[argument 1; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[](symbol){Gz}<LEND>[assign](){<-}<LSEP>[](symbol){dr.iteration}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LSEP>[](symbol){d}<LSEP>[](symbol){B}<LSEP>[](symbol){T}<LSEP>[](symbol){eps}<LSEP>[](symbol){itmax}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){dr.iteration}<LEND>[assign](){<-}<LSEP>[](symbol){dr.iteration.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LSEP>[](symbol){d}<LSEP>[](symbol){B}<LSEP>[](symbol){T}<LSEP>[](symbol){eps}<LSEP>[](symbol){itmax}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){zeta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){zeta}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){zeta}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){h1}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){zeta}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){err}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){Gz}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){zeta}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h1}<LSEP>[](symbol){d}<LEND>[argument 2; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h1}<LSEP>[](symbol){d}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 3; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){T}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){T}<LEND>[true branch; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[](symbol){T}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){B}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){B}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){T}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){B}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){fn}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){B}<LSEP>[](symbol){C}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){Gz}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){zeta}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){T}<LSEP>[](symbol){B}<LEND>[](symbol){C}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){updateC}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.coef}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){Gz}<LEND>[argument 1; call](){}<LSEP>[](symbol){kronecker}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){h1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){T}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){Gz}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){zeta}<LEND>[](symbol){d}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){updateB}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alphak}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){zeta}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){C}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){PBk}<LEND>[call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){bk}<LEND>[call](){}<LSEP>[](symbol){qr.coef}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){Gz}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.resid}<LSEP>[](symbol){PBk}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){kronecker}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){C}<LSEP>[](symbol){k}<LSEP>[](symbol){}<LEND>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){Gz}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){alphak}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bk}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){bk}<LEND>[litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){bk}<LEND>[call](){}<LSEP>[](symbol){qr.resid}<LSEP>[](symbol){PBk}<LSEP>[](symbol){bk}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bk}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){bk}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){B}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){updateC}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){err}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){B}<LSEP>[](symbol){C}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){iter}<LSEP>[litteral](real){0.000000}<LEND>[statement 8; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){iter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){iter}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){updateB}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){updateC}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){errold}<LSEP>[](symbol){err}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){err}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){B}<LSEP>[](symbol){C}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Iter =}<LSEP>[](symbol){iter}<LSEP>[argument 2; litteral](str){Fn =}<LSEP>[](symbol){err}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){err}<LSEP>[](symbol){errold}<LEND>[](symbol){errold}<LEND>[](symbol){eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){iter}<LSEP>[](symbol){itmax}<LEND>[true branch; control flow](){break}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){T}<LSEP>[](symbol){B}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){zeta}<LEND>[statement 11; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h1}<LSEP>[](symbol){d}<LEND>[argument 2; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h1}<LSEP>[](symbol){d}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[](symbol){iter}<LEND>[assign](){<-}<LSEP>[](symbol){dr.coordinate.test.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){hypothesis}<LEND>[argument 1; litteral](str){formula}<LEND>[true branch; call](){}<LSEP>[](symbol){coord.hyp.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LEND>[false branch; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){hypothesis}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.R}<LSEP>[](symbol){object}<LEND>[](symbol){gamma}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){maxdir}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){h1}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){zeta}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){r}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Gz}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){zeta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){zeta}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){Gz}<LEND>[argument 1; call](){}<LSEP>[](symbol){kronecker}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){h1}<LEND>[](symbol){H}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){m1}<LEND>[](symbol){m1}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){T_H}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){m1}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){H}<LEND>[](symbol){zeta}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){h1}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){T_H}<LSEP>[](symbol){df}<LEND>[argument 2; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){T_H}<LSEP>[](symbol){df}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[](symbol){z}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){F0}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){maxdir}<LSEP>[](symbol){d}<LEND>[true branch; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[](symbol){d}<LEND>[](symbol){summary}<LEND>[](symbol){Test}<LEND>[false branch; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.iteration}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LEND>[](symbol){d}<LSEP>[](symbol){...}<LEND>[](symbol){summary}<LEND>[](symbol){Test}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){F1}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.joint.test}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){...}<LEND>[](symbol){summary}<LEND>[](symbol){Test}<LEND>[statement 2; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){F1}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){d}<LEND>[argument 2; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){F1}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){d}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){dr.joint.test.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dr.coordinate.test}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){hypothesis}<LEND>[argument 1; litteral](str){formula}<LEND>[true branch; call](){}<LSEP>[](symbol){coord.hyp.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LEND>[false branch; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){hypothesis}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.R}<LSEP>[](symbol){object}<LEND>[](symbol){gamma}<LEND>[statement 2; call](){}<LSEP>[](symbol){dr.iteration}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LEND>[](symbol){d}<LSEP>[](symbol){gamma}<LEND>[assign](){<-}<LSEP>[](symbol){print.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){width}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fout}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[](symbol){width}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){f}<LSEP>[](symbol){fout}<LEND>[body; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LSEP>[](symbol){f}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){numdir}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){result}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){tests}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){indep.test}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){d}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tests}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){tests}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){result}<LEND>[](symbol){d}<LEND>[](symbol){summary}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){tests}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){numdir}<LEND>[argument 1; litteral](str){D vs}<LSEP>[argument 2; litteral](str){ > }<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){numdir}<LEND>[argument 4; litteral](str){D}<LSEP>[argument 5; litteral](str){}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Large-sample Marginal Dimensio...}<LEND>[statement 8; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){tests}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 10; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){summary.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){call}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){numdir}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){result}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tests}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){indep.test}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){d}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tests}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){tests}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){result}<LSEP>[](symbol){d}<LEND>[](symbol){summary}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){tests}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){numdir}<LEND>[argument 1; litteral](str){D vs}<LSEP>[argument 2; litteral](str){ > }<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){numdir}<LEND>[argument 4; litteral](str){D}<LSEP>[argument 5; litteral](str){}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){method}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){nslices}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[](symbol){nslices}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){sizes}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){slice.info}<LEND>[](symbol){slice.sizes}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){object}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){result}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){result}<LEND>[](symbol){j}<LEND>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){dr.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){j}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){test}<LEND>[](symbol){tests}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){ans}<LEND>[litteral](str){summary.ire}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){print.summary.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nCall:\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[argument 1; litteral](str){\n}<LSEP>[argument 2; litteral](str){\n}<LEND>[argument 1; litteral](str){\n\n}<LSEP>[argument 2; litteral](str){}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Method:\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LEND>[argument 1; litteral](str){with}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){nslices}<LEND>[argument 3; litteral](str){ slices, n =}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){n}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){weights}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){, using weights.\n}<LEND>[false branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){.\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nSlice Sizes:\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){sizes}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nLarge-sample Marginal Dimens...}<LEND>[statement 8; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){test}<LEND>[](symbol){digits}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nSolutions for various dimens...}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){d}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){result}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dimension =}<LSEP>[](symbol){d}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){result}<LEND>[](symbol){d}<LEND>[](symbol){B}<LEND>[](symbol){digits}<LEND>[statement 12; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){dr.basis.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fl}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){b}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){b}<LEND>[](symbol){b}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){fl}<LEND>[argument 0; call](){}<LSEP>[](symbol){backsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.R}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[](symbol){numdir}<LEND>[](symbol){B}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.x}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ans}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){}<LEND>[](symbol){ans}<LEND>[assign](){<-}<LSEP>[](symbol){dr.direction.ire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){which}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){which}<LEND>[statement 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){scale}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){dr.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){d}<LEND>[assign](){<-}<LSEP>[](symbol){dr.fit.pire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){nslices}<LSEP>[](symbol){slice.function}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){dr.y}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){dr.z}<LSEP>[](symbol){object}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){group.names}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){nw}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){nw}<LSEP>[](symbol){p}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least one group has too few...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){h}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nslices}<LEND>[](symbol){nslices}<LEND>[false branch; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){z}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){group.stats}<LSEP>[litteral](NULL){NULL}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){group.names}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){name}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.names}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){group.sel}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group}<LEND>[](symbol){name}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){dr.compute}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LSEP>[](symbol){group.sel}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){group.sel}<LEND>[argument 2; litteral](str){ire}<LSEP>[](symbol){h}<LSEP>[](symbol){slice.function}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[argument 6; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[](symbol){group.sel}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){zeta}<LEND>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){zeta}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){group.stats}<LSEP>[](symbol){j}<LEND>[](symbol){ans}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.stats}<LEND>[](symbol){group.stats}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){numdir}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){numdir}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){sir.raw.evectors}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.compute}<LSEP>[](symbol){z}<LSEP>[](symbol){y}<LSEP>[](symbol){h}<LSEP>[](symbol){slice.function}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[](symbol){raw.evectors}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){pire}<LSEP>[argument 1; litteral](str){ire}<LSEP>[argument 2; litteral](str){dr}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){indep.test}<LEND>[call](){}<LSEP>[](symbol){dr.test}<LSEP>[](symbol){object}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){...}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){Gz}<LEND>[call](){}<LSEP>[](symbol){Gzcomp}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){ans}<LSEP>[litteral](NULL){NULL}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){d}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ans}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){dr.test}<LSEP>[](symbol){object}<LSEP>[](symbol){d}<LSEP>[](symbol){Gz}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ans}<LSEP>[](symbol){d}<LEND>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Dir}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[argument 2; litteral](str){}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LEND>[call](){}<LSEP>[](symbol){Gzcomp}<LSEP>[](symbol){object}<LSEP>[](symbol){d}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ans}<LSEP>[](symbol){numdir}<LEND>[](symbol){B}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){aa}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ans}<LSEP>[](symbol){numdir}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){aa}<LEND>[call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[statement 21; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){aa}<LEND>[assign](){<-}<LSEP>[](symbol){dr.iteration.pire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LSEP>[](symbol){d}<LSEP>[](symbol){B}<LSEP>[](symbol){T}<LSEP>[](symbol){eps}<LSEP>[](symbol){itmax}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gsolve}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){a1}<LSEP>[](symbol){a2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Asvd}<LEND>[call](){}<LSEP>[](symbol){svd}<LSEP>[](symbol){a1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Positive}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Asvd}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Asvd}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LSEP>[](symbol){Positive}<LEND>[true branch; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Asvd}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Asvd}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Asvd}<LSEP>[](symbol){u}<LEND>[](symbol){a2}<LEND>[false branch; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Asvd}<LSEP>[](symbol){v}<LEND>[](symbol){}<LSEP>[](symbol){Positive}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Asvd}<LSEP>[](symbol){d}<LEND>[](symbol){Positive}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Asvd}<LSEP>[](symbol){u}<LEND>[](symbol){}<LSEP>[](symbol){Positive}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){a2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){zeta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){zeta}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n.groups}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zeta}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zeta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){h1}<LSEP>[litteral](real){0.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){h2}<LSEP>[litteral](NULL){NULL}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h2}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zeta}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){h1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){h1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h2}<LSEP>[](symbol){j}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){err}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){err}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Gz}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zeta}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h1}<LSEP>[](symbol){d}<LEND>[argument 2; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h1}<LSEP>[](symbol){d}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 3; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){T}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){T}<LEND>[true branch; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[](symbol){T}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){B}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){B}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){T}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[](symbol){B}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){fn}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){B}<LSEP>[](symbol){C}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ans}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Gz}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zeta}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){T}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){C}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){ans}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){updateC}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){C}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){C}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.coef}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Gz}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){kronecker}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h2}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){T}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Gz}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zeta}<LSEP>[](symbol){j}<LEND>[](symbol){d}<LEND>[](symbol){C}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){updateB}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){d}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){PBk}<LEND>[call](){}<LSEP>[](symbol){qr}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){a1}<LEND>[assign](){<-}<LSEP>[](symbol){a2}<LSEP>[litteral](real){0.000000}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alphak}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zeta}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){C}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Gz}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.resid}<LSEP>[](symbol){PBk}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){kronecker}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){C}<LSEP>[](symbol){j}<LEND>[](symbol){k}<LSEP>[](symbol){}<LEND>[](symbol){T}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){m2}<LEND>[call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Gz}<LSEP>[](symbol){j}<LEND>[](symbol){alphak}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){a1}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){m1}<LEND>[](symbol){m1}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){a2}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){a2}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){m1}<LEND>[](symbol){m2}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){bk}<LEND>[call](){}<LSEP>[](symbol){qr.resid}<LSEP>[](symbol){PBk}<LEND>[argument 1; call](){}<LSEP>[](symbol){gsolve}<LSEP>[](symbol){a1}<LSEP>[](symbol){a2}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){bk}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){bk}<LEND>[litteral](real){0.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){bk}<LEND>[call](){}<LSEP>[](symbol){qr.resid}<LSEP>[](symbol){PBk}<LSEP>[](symbol){bk}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){B}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bk}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){bk}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){B}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){updateC}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){err}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){B}<LSEP>[](symbol){C}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){iter}<LSEP>[litteral](real){0.000000}<LEND>[statement 8; control flow](){repeat}<LSEP>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){iter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){iter}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){updateB}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){updateC}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){errold}<LSEP>[](symbol){err}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){err}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){B}<LSEP>[](symbol){C}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Iter =}<LSEP>[](symbol){iter}<LSEP>[argument 2; litteral](str){Fn =}<LSEP>[](symbol){err}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){err}<LSEP>[](symbol){errold}<LEND>[](symbol){errold}<LEND>[](symbol){eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){iter}<LSEP>[](symbol){itmax}<LEND>[true branch; control flow](){break}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){T}<LSEP>[](symbol){B}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){zeta}<LEND>[statement 11; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h1}<LSEP>[](symbol){d}<LEND>[argument 2; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){err}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){h1}<LSEP>[](symbol){d}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[](symbol){iter}<LEND>[assign](){<-}<LSEP>[](symbol){dr.coordinate.test.pire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){hypothesis}<LEND>[argument 1; litteral](str){formula}<LEND>[true branch; call](){}<LSEP>[](symbol){coord.hyp.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LEND>[false branch; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){hypothesis}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gamma}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.R}<LSEP>[](symbol){object}<LEND>[](symbol){gamma}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){qr}<LEND>[](symbol){rank}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){maxdir}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){n.groups}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.stats}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){h1}<LSEP>[litteral](real){0.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){h2}<LSEP>[litteral](NULL){NULL}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){zeta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){zeta}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h2}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zeta}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){h1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){h1}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h2}<LSEP>[](symbol){j}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){d}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr.Q}<LEND>[argument 0; call](){}<LSEP>[](symbol){qr}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){p}<LSEP>[](symbol){r}<LEND>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){cases}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Gz}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){T_H}<LSEP>[litteral](real){0.000000}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Gz}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){kronecker}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){h2}<LSEP>[](symbol){j}<LEND>[](symbol){H}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){m1}<LEND>[call](){}<LSEP>[](symbol){chol}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){m1}<LEND>[](symbol){m1}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){T_H}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){T_H}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){forwardsolve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){m1}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){H}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zeta}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){h1}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){T_H}<LSEP>[](symbol){df}<LEND>[argument 2; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){T_H}<LSEP>[](symbol){df}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[](symbol){z}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){F0}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){maxdir}<LSEP>[](symbol){d}<LEND>[true branch; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[](symbol){d}<LEND>[](symbol){summary}<LEND>[](symbol){Test}<LEND>[false branch; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.iteration}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Gz}<LEND>[](symbol){d}<LSEP>[](symbol){...}<LEND>[](symbol){summary}<LEND>[](symbol){Test}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){F1}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){dr.joint.test}<LSEP>[](symbol){object}<LSEP>[](symbol){hypothesis}<LSEP>[](symbol){d}<LSEP>[](symbol){...}<LEND>[](symbol){summary}<LEND>[](symbol){Test}<LEND>[statement 2; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){F1}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){d}<LEND>[argument 2; call](){}<LSEP>[](symbol){pchisq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){F1}<LSEP>[](symbol){F0}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){d}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[assign](){<-}<LSEP>[](symbol){Gzcomp.pire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){numdir}<LSEP>[](symbol){span}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Gz}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){n.groups}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.stats}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pw}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.stats}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){weights}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Gz}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){Gzcomp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.stats}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){numdir}<LSEP>[](symbol){span}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){pw}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){n.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pw}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.stats}<LEND>[](symbol){j}<LEND>[](symbol){weights}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){weights}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Gz}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){Gzcomp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.stats}<LEND>[](symbol){j}<LEND>[](symbol){numdir}<LSEP>[](symbol){span}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){pw}<LEND>[](symbol){Gz}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){summary.pire}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){call}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){numdir}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){result}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tests}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){indep.test}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){d}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){numdir}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tests}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){tests}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){result}<LSEP>[](symbol){d}<LEND>[](symbol){summary}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){tests}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){numdir}<LEND>[argument 1; litteral](str){D vs}<LSEP>[argument 2; litteral](str){ > }<LEND>[argument 3; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){numdir}<LEND>[argument 4; litteral](str){D}<LSEP>[argument 5; litteral](str){}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){method}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){nslices}<LEND>[assign](){<-}<LSEP>[](symbol){ans.sizes}<LSEP>[litteral](NULL){NULL}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){n}<LEND>[litteral](NULL){NULL}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){stats}<LEND>[range; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.stats}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){stats}<LSEP>[](symbol){n}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){nslices}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){nslices}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){stats}<LSEP>[](symbol){slice.info}<LEND>[](symbol){nslices}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){sizes}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){sizes}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){stats}<LSEP>[](symbol){slice.info}<LEND>[](symbol){slice.sizes}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){result}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){result}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){result}<LEND>[](symbol){j}<LEND>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){dr.basis}<LSEP>[](symbol){object}<LSEP>[](symbol){j}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){weights}<LEND>[call](){}<LSEP>[](symbol){dr.wts}<LSEP>[](symbol){object}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ans}<LSEP>[](symbol){test}<LEND>[](symbol){tests}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){ans}<LEND>[litteral](str){summary.ire}<LEND>[](symbol){ans}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rdwdquiet}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cv}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){rdwdquiet}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){isTRUE}<LSEP>[](symbol){cv}<LEND>[argument 1; call](){}<LSEP>[](symbol){isFALSE}<LSEP>[](symbol){cv}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){options('rdwdquiet') must be T...}<LEND>[argument 1; call](){}<LSEP>[](symbol){toString}<LSEP>[](symbol){cv}<LEND>[argument 2; litteral](str){'.}<LEND>[](symbol){cv}<LEND>[assign](){<-}<LSEP>[](symbol){.onLoad}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){libname}<LSEP>[](symbol){pkgname}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){options}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[statement 1; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){release_questions}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Have you run updateIndexes() a...}<LEND>[assign](){<-}<LSEP>[](symbol){dwdbase}<LSEP>[litteral](str){ftp://opendata.dwd.de/climate_...}<LEND>[assign](){<-}<LSEP>[](symbol){gridbase}<LSEP>[litteral](str){ftp://opendata.dwd.de/climate_...}<LEND>[assign](){<-}<LSEP>[](symbol){rowDisplay}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){perrow}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){rdwd::metaInfo(id=}<LEND>[argument 1; call](){}<LSEP>[](symbol){removeSpace}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){)<br>}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](str){: }<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; litteral](str){<br>}<LEND>[statement 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){perrow}<LEND>[assign](){<-}<LSEP>[](symbol){checkSuggestedPackage}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){package}<LSEP>[](symbol){functionname}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){available}<LEND>[call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){package}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){available}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){To use }<LSEP>[](symbol){functionname}<LSEP>[argument 2; litteral](str){, please first install }<LSEP>[](symbol){package}<LSEP>[argument 4; litteral](str){: install.packages('}<LSEP>[](symbol){package}<LSEP>[argument 6; litteral](str){')}<LSEP>[argument 7; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){available}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){midwt}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){h}<LSEP>[](symbol){L}<LEND>[body; block](){}<LSEP>[statement 0; call](){.Call}<LSEP>[call name; litteral](str){do_midwt}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){h}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){L}<LEND>[argument 3; litteral](str){rwt}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plot.foldert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){which}<LSEP>[](symbol){na.inter}<LSEP>[](symbol){type}<LSEP>[](symbol){ylim}<LSEP>[](symbol){ylab}<LSEP>[](symbol){main}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){times}<LEND>[call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){times}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){x}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tab}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){isna}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tab}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){isna}<LEND>[](symbol){}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){tab}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){x}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tab}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){tab}<LEND>[](symbol){tab}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){data_}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){foldert}<LSEP>[](symbol){x}<LSEP>[](symbol){times}<LEND>[statement 4; control flow](){if}<LSEP>[](symbol){na.inter}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data_}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_}<LSEP>[](symbol){}<LSEP>[](symbol){which}<LEND>[](symbol){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){data_}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes_q}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.name}<LSEP>[argument 0; litteral](str){time}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.name}<LSEP>[](symbol){which}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.name}<LSEP>[argument 0; litteral](str){ind}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.name}<LSEP>[argument 0; litteral](str){ind}<LEND>[argument 4; call](){}<LSEP>[](symbol){as.name}<LSEP>[argument 0; litteral](str){ind}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_line}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[](symbol){main}<LSEP>[](symbol){ylab}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){ylim}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylim}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){graph}<LEND>[statement 11; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){is.dstatis}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){dstatis}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.maf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){maf.limit}<LSEP>[](symbol){ind.limit}<LSEP>[](symbol){loc.limit}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Detected Presence/Absence (S...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Cannot calculate minor allele ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){maf.limit}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){maf.limit}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: maf.limit must be in ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){maf.limit}<LSEP>[litteral](real){0.500000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){ind.limit}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: ind.limit must be an ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.limit}<LSEP>[litteral](real){5.000000}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){loc.limit}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: loc.limit must be an ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){loc.limit}<LSEP>[litteral](real){2.000000}<LEND>[statement 10; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){layout}<LEND>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){maf}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Recalculating MAF\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.maf}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){count}<LSEP>[litteral](real){0.000000}<LEND>[statement 13; control flow](){for}<LSEP>[](symbol){popn}<LEND>[range; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){genl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){popn}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){genl}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){genl}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){genl}<LEND>[](symbol){ind.limit}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){genl}<LEND>[](symbol){loc.limit}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){popn.hold}<LSEP>[](symbol){popn}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){title.str}<LSEP>[litteral](str){Minor Allele Frequency\nOverall}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No populations met minimum l...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){title.str}<LSEP>[litteral](str){Minor Allele Frequency\nOverall}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){0.000000}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Only one population met mini...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){title.str}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Minor Allele Frequency\n}<LSEP>[](symbol){popn.hold}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){0.000000}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Only one population specified\n}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){title.str}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Minor Allele Frequency\n}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Calculating MAF across popul...}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){maf}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){maf}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){maf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.recalc.metrics}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){maf}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){maf}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){layout}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[argument 4; litteral](real){3.000000}<LSEP>[argument 5; litteral](real){4.000000}<LSEP>[argument 6; litteral](real){5.000000}<LSEP>[argument 7; litteral](real){6.000000}<LSEP>[argument 8; litteral](real){7.000000}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 22; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){maf}<LSEP>[argument 1; litteral](str){red}<LSEP>[](symbol){title.str}<LSEP>[argument 3; litteral](str){Minor Allele Frequency}<LSEP>[argument 4; litteral](real){100.000000}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Calculating MAF by population\n}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){plot.count}<LSEP>[litteral](real){1.000000}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){popn}<LEND>[range; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){genl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){popn}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){genl}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){genl}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){genl}<LEND>[](symbol){loc.limit}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){genl}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.maf}<LSEP>[](symbol){genl}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){maf}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){genl}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){maf}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){plot.count}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){maf}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){maf}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){maf}<LSEP>[](symbol){maf.limit}<LEND>[statement 1; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){maf}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){maf.limit}<LSEP>[argument 2; litteral](real){10.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){rainbow}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){popn}<LSEP>[argument 1; litteral](str){\nn =}<LEND>[argument 2; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){genl}<LEND>[argument 4; litteral](str){Minor Allele Frequency}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){maf.limit}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){plot.count}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){plot.count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){plot.count}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){layout}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LSEP>[argument 4; litteral](real){5.000000}<LSEP>[argument 5; litteral](real){6.000000}<LSEP>[argument 6; litteral](real){7.000000}<LSEP>[argument 7; litteral](real){8.000000}<LSEP>[argument 8; litteral](real){9.000000}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Overflow of plots across mul...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){plot.count}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){maf}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){maf}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){maf}<LSEP>[](symbol){maf.limit}<LEND>[statement 1; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){maf}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){maf.limit}<LSEP>[argument 2; litteral](real){10.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){rainbow}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){popn}<LSEP>[argument 1; litteral](str){\nn =}<LEND>[argument 2; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){genl}<LEND>[argument 4; litteral](str){Minor Allele Frequency}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){maf.limit}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){plot.count}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){plot.count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){plot.count}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){(once plots are displayed). Re...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){(once plots are displayed). Re...}<LEND>[statement 27; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ddjeffreys}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){x1}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x1}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){x2}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x1}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x1 must be a data frame or a v...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){x2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){x2 must be a data frame or a v...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x1}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x2}<LEND>[](symbol){k}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ncol(x1) != ncol(x2)}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x2}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){x1 and x2 do not have the same...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){x1}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x1}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x1}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){lev}<LEND>[call](){}<LSEP>[](symbol){union}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){lev}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){lev}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x1}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){p2}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x2}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){x2}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){ddjeffreyspar}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}
[](){expression}<LSEP>[call](){}<LSEP>[](symbol){%type%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){MList}<LEND>[](symbol){.Object}<LEND>[assign](){<-}<LSEP>[](symbol){ML}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){new}<LSEP>[argument 0; litteral](str){MList}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){MList}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){new}<LSEP>[argument 0; litteral](str){MList}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){MemClassHandler}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){classOfX}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){s4Object}<LSEP>[litteral](NULL){NULL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){memClass}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){isS4}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xS3}<LEND>[call](){}<LSEP>[](symbol){S3Part}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.self}<LSEP>[](symbol){classOfX}<LEND>[call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){xS3}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){S3Part}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){data.frame}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.self}<LSEP>[](symbol){s4Object}<LEND>[](symbol){x}<LEND>[](symbol){xS3}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.self}<LSEP>[](symbol){classOfX}<LEND>[call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){wrapClass}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){data.frame}<LEND>[true branch; call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){s4Object}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){out}<LSEP>[](symbol){s4Object}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){S3Part}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LSEP>[](symbol){classOfX}<LEND>[](symbol){out}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){classOfX}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LSEP>[](symbol){classOfX}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Don't know what this is.}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){stripClass}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){useDplyr}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){DataFrame}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){is.data.table}<LEND>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){as.data.table}<LEND>[](symbol){x}<LEND>[](symbol){x}<LEND>[statement 5; call](){}<LSEP>[](symbol){retList}<LSEP>[argument 0; litteral](str){MemClassHandler}<LEND>[call](){}<LSEP>[](symbol){%type%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){character}<LEND>[argument 1; call](){}<LSEP>[](symbol){ReturnPrototype}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){.Object}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){\\(}<LSEP>[](symbol){.Object}<LEND>[](symbol){.Object}<LEND>[call](){}<LSEP>[](symbol){%type%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){character}<LEND>[argument 1; call](){}<LSEP>[](symbol){ReturnType}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){.Object}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){.Object}<LEND>[call](){}<LSEP>[](symbol){%type%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](str){function}<LEND>[argument 1; call](){}<LSEP>[](symbol){FunctionWithPrototype}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){fun}<LSEP>[argument 1; litteral](str){function}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){prototype}<LSEP>[](symbol){ANY}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){S3Part}<LSEP>[](symbol){.Object}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){addTypeCheck}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){.Object}<LSEP>[](symbol){fun}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){.Object}<LSEP>[](symbol){prototype}<LEND>[argument 1; call](){}<LSEP>[](symbol){addLengthCheck}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){.Object}<LSEP>[](symbol){prototype}<LEND>[](symbol){.Object}<LEND>[call](){}<LSEP>[](symbol){%type%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](str){function}<LEND>[argument 1; call](){}<LSEP>[](symbol){FunctionWithType}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){fun}<LSEP>[argument 1; litteral](str){function}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){type}<LSEP>[](symbol){ReturnType}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){S3Part}<LSEP>[](symbol){.Object}<LEND>[call](){}<LSEP>[](symbol){addTypeCheck}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){.Object}<LSEP>[](symbol){fun}<LEND>[argument 1; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){.Object}<LSEP>[](symbol){type}<LEND>[](symbol){.Object}<LEND>[assign](){<-}<LSEP>[](symbol){addLengthCheck}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){f}<LSEP>[](symbol){l}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){force}<LSEP>[](symbol){f}<LEND>[statement 1; call](){}<LSEP>[](symbol){force}<LSEP>[](symbol){l}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){f}<LSEP>[](symbol){...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){out}<LEND>[](symbol){l}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Function does not return corre...}<LSEP>[](symbol){l}<LSEP>[argument 2; litteral](str){\n observed: }<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){out}<LEND>[false branch; block](){}<LSEP>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){addTypeCheck}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){f}<LSEP>[](symbol){type}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){force}<LSEP>[](symbol){f}<LEND>[statement 1; call](){}<LSEP>[](symbol){force}<LSEP>[](symbol){type}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){f}<LSEP>[](symbol){...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){out}<LSEP>[](symbol){type}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Function does not return corre...}<LSEP>[](symbol){type}<LSEP>[argument 2; litteral](str){\n observed: }<LEND>[argument 3; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){out}<LEND>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){%g%}<LEND>[argument 0; call](){}<LSEP>[](symbol){addReturnType}<LSEP>[](symbol){f}<LSEP>[](symbol){type}<LEND>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){addReturnType}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){type}<LSEP>[](symbol){ReturnPrototype}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){FunctionWithPrototype}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){eval}<LEND>[argument 0; call](){}<LSEP>[](symbol){parse}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){addReturnType}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){type}<LSEP>[](symbol){ReturnType}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){FunctionWithType}<LSEP>[](symbol){f}<LSEP>[](symbol){type}<LEND>[assign](){<-}<LSEP>[](symbol){addClass}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){class}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){class}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){class}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){class}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){class}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){class}<LEND>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[](symbol){class}<LEND>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){constructArgs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LSEP>[](symbol){...}<LSEP>[](symbol){dat}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){formulas}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[](symbol){asFormula}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){formulas}<LSEP>[](symbol){resolveFormula}<LSEP>[](symbol){dat}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){args}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){args}<LEND>[argument 1; call](){}<LSEP>[](symbol){Negate}<LSEP>[](symbol){is.null}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){argNames}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){args}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){args}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](NULL){NULL}<LEND>[statement 1; call](){}<LSEP>[](symbol){S3Part}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){args}<LEND>[](symbol){argNames}<LEND>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){%g%}<LEND>[argument 0; call](){}<LSEP>[](symbol){dispatcher}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){dispatcher}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){character}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){^\\^}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){RegEx}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){dispatcher}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){formula}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){asFormula}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){asFormula}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){Formula}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){OneSidedFormula}<LSEP>[](symbol){x}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tmp}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){TwoSidedFormula}<LSEP>[](symbol){x}<LEND>[false branch; call](){}<LSEP>[](symbol){AugmentedTwoSidedFormula}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%type%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){character}<LEND>[argument 1; call](){}<LSEP>[](symbol){RegEx}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){.Object}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){.Object}<LEND>[call](){}<LSEP>[](symbol){%type%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){formula}<LEND>[argument 1; call](){}<LSEP>[](symbol){OneSidedFormula}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){.Object}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){.Object}<LEND>[call](){}<LSEP>[](symbol){%type%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){formula}<LEND>[argument 1; call](){}<LSEP>[](symbol){TwoSidedFormula}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){.Object}<LEND>[argument 1; litteral](real){3.000000}<LEND>[](symbol){.Object}<LEND>[call](){}<LSEP>[](symbol){%type%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){TwoSidedFormula}<LEND>[argument 1; call](){}<LSEP>[](symbol){AugmentedTwoSidedFormula}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){.n}<LSEP>[](symbol){ANY}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){Formula}<LSEP>[](symbol){.Object}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){S3Part}<LSEP>[](symbol){.Object}<LEND>[call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){tmp}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){.nUnevaluated}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){tmp}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){.Object}<LSEP>[](symbol){.n}<LEND>[call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){.nUnevaluated}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LSEP>[](symbol){.Object}<LEND>[](symbol){.Object}<LEND>[assign](){<-}<LSEP>[](symbol){AugmentedTwoSidedFormula}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){f}<LSEP>[](symbol){.n}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){new}<LSEP>[argument 0; litteral](str){AugmentedTwoSidedFormula}<LSEP>[](symbol){.n}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){%g%}<LEND>[argument 0; call](){}<LSEP>[](symbol){resolveFormula}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){resolveFormula}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){AugmentedTwoSidedFormula}<LEND>[](symbol){dat}<LSEP>[](symbol){...}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){update}<LEND>[argument 0; call](){}<LSEP>[](symbol){FL}<LEND>[argument 0; call](){}<LSEP>[](symbol){S3Part}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){.n}<LEND>[](symbol){dat}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2structure}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){indNames}<LSEP>[](symbol){addcolumns}<LSEP>[](symbol){ploidy}<LSEP>[](symbol){exportMarkerNames}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Detected Presence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){nInd}<LEND>[call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){indNames}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){indNames}<LEND>[call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){indNames}<LEND>[](symbol){nInd}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: No. of individual...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){addcolumns}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){addcolumns}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){addcolumns}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){addcolumns}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){addcolumns}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){addcolumns}<LEND>[](symbol){nInd}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: No. of individual...}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){genmat}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){genmat}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](logical){NA}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genmat must only ...}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){outfile}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){outfile}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: output file must ...}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){ploidy}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: ploidy must be a ...}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){exportMarkerNames}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: exportMarkerNames...}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 19; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){ploidy}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){G}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){ploidy}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){i}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){G}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ploidy}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){9.000000}<LEND>[](symbol){ploidy}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){StructTab}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){indNames}<LSEP>[](symbol){ploidy}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){addcolumns}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){addcolumns}<LEND>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){StructTab}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){StructTab}<LEND>[argument 1; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){addcolumns}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){ploidy}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){addcolumns}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){StructTab}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){addcolumns}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){i}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){StructTab}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){X}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){}<LEND>[statement 23; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){genmat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){thesegen}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){genmat}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){thesegen}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){thesegen}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ploidy}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){StructTab}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){genmat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){thesegen}<LEND>[statement 24; control flow](){if}<LSEP>[](symbol){exportMarkerNames}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){\t}<LEND>[argument 1; litteral](str){\n}<LSEP>[](symbol){outfilespec}<LEND>[statement 25; call](){}<LSEP>[](symbol){write.table}<LSEP>[](symbol){StructTab}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](logical){TRUE}<LSEP>[argument 4; litteral](str){\t}<LSEP>[](symbol){outfilespec}<LSEP>[argument 6; litteral](logical){FALSE}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Structure file saved as:}<LSEP>[](symbol){outfilespec}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 28; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2gds}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Detected Presence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){snp.pos}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){position}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){snp.pos}<LSEP>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){snp.pos}<LSEP>[](symbol){i}<LEND>[litteral](real){0.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Converting SNP data to gds f...}<LEND>[statement 11; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){SNPRelate}<LSEP>[](symbol){snpgdsCreateGeno}<LEND>[](symbol){outfilespec}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[argument 3; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){AlleleID}<LEND>[argument 5; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){chromosome}<LEND>[](symbol){snp.pos}<LEND>[argument 7; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.all}<LEND>[argument 8; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[argument 9; litteral](logical){FALSE}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Writing data to file}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){genofile}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){SNPRelate}<LSEP>[](symbol){snpgdsOpen}<LEND>[](symbol){outfilespec}<LEND>[statement 14; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Structure of gds file\n\n}<LEND>[statement 15; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){SNPRelate}<LSEP>[](symbol){snpgdsSummary}<LEND>[](symbol){genofile}<LEND>[statement 16; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){genofile}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Closing file}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 18; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){SNPRelate}<LSEP>[](symbol){snpgdsClose}<LEND>[](symbol){genofile}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 20; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ntrm_calc_p}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Q}<LSEP>[](symbol){X}<LSEP>[](symbol){L}<LSEP>[](symbol){lambda}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){X}<LEND>[](symbol){Q}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){L}<LSEP>[](symbol){lambda}<LEND>[assign](){<-}<LSEP>[](symbol){ntrm_safeguard}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){lambda}<LSEP>[](symbol){G}<LSEP>[](symbol){H}<LSEP>[](symbol){delta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lambda_S}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){H}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){G_norm}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){G}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){H_norm}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){H}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){lambda_L}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){lambda_S}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){G_norm}<LSEP>[](symbol){delta}<LEND>[](symbol){H_norm}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){lambda_U}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){G_norm}<LSEP>[](symbol){delta}<LEND>[](symbol){H_norm}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){lambda}<LSEP>[](symbol){lambda_L}<LEND>[](symbol){lambda_U}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){lambda}<LSEP>[](symbol){lambda_S}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){lambda_U}<LSEP>[argument 1; litteral](real){1000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){lambda_L}<LSEP>[](symbol){lambda_U}<LEND>[](symbol){lambda}<LEND>[assign](){<-}<LSEP>[](symbol){ntrm_solve_tr_subproblem}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){G}<LSEP>[](symbol){H}<LSEP>[](symbol){delta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eps}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){delta_2}<LEND>[call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){delta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){G}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){H_eig}<LEND>[call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){H}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){H_ev_min}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){H_eig}<LSEP>[](symbol){values}<LEND>[](symbol){k}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Q}<LEND>[call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){H_eig}<LSEP>[](symbol){vectors}<LEND>[](symbol){G}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){H_ev_min}<LSEP>[](symbol){eps}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){ntrm_calc_p}<LSEP>[](symbol){Q}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){H_eig}<LSEP>[](symbol){vectors}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){H_eig}<LSEP>[](symbol){values}<LEND>[argument 3; litteral](real){0.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){H_ev_min}<LSEP>[](symbol){eps}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){delta_2}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){hard_case}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Q}<LSEP>[](symbol){k}<LEND>[](symbol){eps}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){H_eig}<LSEP>[](symbol){values}<LEND>[](symbol){H_ev_min}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){ntrm_calc_p}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Q}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){H_eig}<LSEP>[](symbol){vectors}<LEND>[](symbol){}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){H_eig}<LSEP>[](symbol){values}<LEND>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){H_ev_min}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p_norm_2}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){p_norm_2}<LSEP>[](symbol){delta_2}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){hard_case}<LSEP>[litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tau}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){delta_2}<LSEP>[](symbol){p_norm_2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){tau}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){H_eig}<LSEP>[](symbol){vectors}<LEND>[](symbol){}<LSEP>[](symbol){k}<LEND>[](symbol){p}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){hard_case}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){B}<LSEP>[](symbol){H}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lambda_lb}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){H_ev_min}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){ntrm_safeguard}<LSEP>[](symbol){lambda_lb}<LSEP>[](symbol){G}<LSEP>[](symbol){H}<LSEP>[](symbol){delta}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){H}<LEND>[](symbol){lambda}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){tryCatch}<LEND>[argument 0; call](){}<LSEP>[](symbol){chol}<LSEP>[](symbol){B}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){e}<LEND>[body; litteral](NULL){NULL}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){R}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){10.000000}<LSEP>[](symbol){lambda}<LEND>[statement 1; call](){}<LSEP>[](symbol){next}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){R}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R}<LEND>[](symbol){G}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R}<LEND>[](symbol){p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){p_norm_2}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){q_norm_2}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){lambda_old}<LSEP>[](symbol){lambda}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){lambda}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){p_norm_2}<LSEP>[](symbol){q_norm_2}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){p_norm_2}<LEND>[](symbol){delta}<LEND>[](symbol){delta}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){lambda}<LSEP>[](symbol){lambda_lb}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lambda}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){lambda_lb}<LSEP>[](symbol){lambda_old}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){lambda}<LSEP>[](symbol){lambda_old}<LEND>[](symbol){eps}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){G}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){H}<LSEP>[](symbol){p}<LEND>[statement 10; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){p}<LSEP>[](symbol){m}<LEND>[assign](){<-}<LSEP>[](symbol){ntrm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fn}<LSEP>[](symbol){gh}<LSEP>[](symbol){init}<LSEP>[](symbol){max_iter}<LSEP>[](symbol){update_fn}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){eps}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){converged}<LSEP>[litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){delta}<LSEP>[litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cur_optimum}<LSEP>[](symbol){init}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){cur_minimum}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){cur_optimum}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){f_converged}<LSEP>[litteral](real){0.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){x_converged}<LSEP>[litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){g_converged}<LSEP>[litteral](logical){FALSE}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){max_iter}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){update_fn}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cur_optimum}<LEND>[call](){}<LSEP>[](symbol){update_fn}<LSEP>[](symbol){cur_optimum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cur_minimum}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){cur_optimum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gradient_hessian}<LEND>[call](){}<LSEP>[](symbol){gh}<LSEP>[](symbol){cur_optimum}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){g_min}<LEND>[call](){}<LSEP>[](symbol){ntrm_max_abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){G}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){g_converged}<LEND>[call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){g_min}<LSEP>[](symbol){eps}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){g_converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){H}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){g_converged}<LEND>[call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){g_min}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){g_converged}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){break}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LSEP>[](symbol){x_converged}<LSEP>[](symbol){g_converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){f_converged}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){converged}<LSEP>[litteral](logical){TRUE}<LEND>[statement 1; control flow](){break}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){ntrm_correct_hessian}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){H}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){ntrm_solve_tr_subproblem}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){G}<LEND>[](symbol){B}<LSEP>[](symbol){delta}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){candidate}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cur_optimum}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){p}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){cur_value}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){candidate}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){cur_diff}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cur_minimum}<LSEP>[](symbol){cur_value}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){rho}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){m}<LEND>[](symbol){eps}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){cur_value}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cur_diff}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){m}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){rho}<LSEP>[argument 1; litteral](real){0.250000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){delta}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){delta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){rho}<LSEP>[argument 1; litteral](real){0.750000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ntrm_norm}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){p}<LEND>[](symbol){delta}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){delta}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){delta}<LEND>[argument 1; litteral](real){100.000000}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){rho}<LSEP>[argument 1; litteral](real){0.100000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cur_value}<LSEP>[](symbol){cur_minimum}<LEND>[argument 1; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){cur_value}<LEND>[](symbol){eps}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){f_converged}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){f_converged}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x_converged}<LEND>[block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){candidate}<LSEP>[](symbol){cur_optimum}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){candidate}<LEND>[](symbol){eps}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cur_optimum}<LSEP>[](symbol){candidate}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cur_minimum}<LSEP>[](symbol){cur_value}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){i}<LSEP>[](symbol){max_iter}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){g_converged}<LEND>[call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ntrm_max_abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){gh}<LSEP>[](symbol){cur_optimum}<LEND>[](symbol){G}<LEND>[](symbol){eps}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LSEP>[](symbol){x_converged}<LSEP>[](symbol){g_converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){f_converged}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){converged}<LSEP>[litteral](logical){TRUE}<LEND>[statement 10; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){cur_optimum}<LSEP>[](symbol){cur_minimum}<LSEP>[](symbol){converged}<LSEP>[](symbol){i}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){fdiscd.misclass}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){xf}<LSEP>[](symbol){class.var}<LSEP>[](symbol){gaussiand}<LSEP>[](symbol){distance}<LSEP>[](symbol){crit}<LSEP>[](symbol){windowh}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folderh}<LSEP>[](symbol){xf}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){fdiscd.misclass applies to a f...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xf}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){fdiscd.misclass applies to a f...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The 1st data frame of xf must ...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){crit}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){crit must be 1, 2 or 3.}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){j.group}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){keys}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){j.group}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j.group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){j.group}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){classe}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){keys}<LEND>[](symbol){class.var}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){prod}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The 2nd data frame of xf inclu...}<LSEP>[argument 1; litteral](str){Only the grouping variable sho...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){nb.groups}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LSEP>[](symbol){group}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){nb.classe}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){classe.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The names of the groups in the...}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){distance}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){distance}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){gaussiand}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){hellinger}<LSEP>[argument 1; litteral](str){jeffreys}<LSEP>[argument 2; litteral](str){wasserstein}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){distance='}<LSEP>[](symbol){distance}<LSEP>[argument 2; litteral](str){' is not avalaible for non-Gau...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){distance}<LSEP>[litteral](str){l2}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){gaussiand}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){The argument windowh is not ta...}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){hellinger}<LSEP>[argument 1; litteral](str){jeffreys}<LSEP>[argument 2; litteral](str){wasserstein}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){crit}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){If distance=}<LSEP>[](symbol){distance}<LSEP>[argument 2; litteral](str){, crit cannot be 2 or 3.\n cri...}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 24; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 2; litteral](str){classe}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){moy.x}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){colMeans}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){var.x}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){var}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){moy.cl}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){colMeans}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){var.cl}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){var}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){gaussiand}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){kern}<LSEP>[litteral](str){gauss}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){kern}<LSEP>[litteral](str){}<LEND>[statement 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){distance}<LSEP>[argument 1; litteral](str){l2norm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distance}<LSEP>[litteral](str){l2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){normed}<LSEP>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){normed}<LSEP>[litteral](logical){FALSE}<LEND>[statement 31; control flow](){if}<LSEP>[](symbol){gaussiand}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distance}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){crit}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wf}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.groups}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Wf}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Wfg}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.classe}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Wg}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.classe}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Wg}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){crit}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.groups}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Singular covariance matrix (gr...}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){var.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 2; litteral](str){)}<LEND>[argument 1; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){j}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Singular covariance matrix (gr...}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){var.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 2; litteral](str){)}<LEND>[argument 1; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){j}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){crit}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wf.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wfg.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Wg.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.x}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){moy.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){var.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Wfg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){n.x}<LEND>[](symbol){moy.cl.tmp}<LSEP>[](symbol){var.cl.tmp}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Wg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LSEP>[](symbol){moy.cl.tmp}<LSEP>[](symbol){var.cl.tmp}<LSEP>[](symbol){moy.cl.tmp}<LSEP>[](symbol){var.cl.tmp}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Wf.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Wfg.tmp}<LEND>[](symbol){Wg.tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Wfg.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Wf.tmp}<LSEP>[](symbol){Wg.tmp}<LEND>[argument 2; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d2ff}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Tj}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){d2fg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){x.cl}<LEND>[](symbol){Tj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){d2gg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){x.cl}<LSEP>[](symbol){x.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Tj}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d2ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[](symbol){d2gg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d2ff}<LSEP>[](symbol){d2gg}<LEND>[argument 3; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d2ff}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nr}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nj}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Wij}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){x.cl}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Wij}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wij}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Wjj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){x.cl}<LSEP>[](symbol){x.cl}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Wjj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wjj}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[argument 2; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){d2fg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nr}<LSEP>[](symbol){Wij}<LEND>[](symbol){nj}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){d2gg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){nr}<LEND>[](symbol){Wjj}<LEND>[argument 1; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){nr}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){nj}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d2ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[](symbol){d2gg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d2ff}<LSEP>[](symbol){d2gg}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){moy.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){var.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){n.cl}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){moy.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){var.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){hellingerpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){n.x}<LEND>[](symbol){moy.cl.tmp}<LSEP>[](symbol){var.cl.tmp}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){moy.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){var.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){n.cl}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){moy.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){var.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){jeffreyspar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){n.x}<LEND>[](symbol){moy.cl.tmp}<LSEP>[](symbol){var.cl.tmp}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){moy.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.cl}<LSEP>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){var.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){n.cl}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){moy.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){var.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){wassersteinpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moy.x}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){n.x}<LEND>[](symbol){moy.cl.tmp}<LSEP>[](symbol){var.cl.tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distance}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){choix}<LEND>[call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){m}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){u}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kern}<LSEP>[argument 1; litteral](str){gauss}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){g}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){.}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){gaussiand}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){.}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){a}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){windowh}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){n}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){l}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){l}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){n}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){choix}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](str){}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){crit}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wf}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.groups}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Wf}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Wfg}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.classe}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Wg}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.classe}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Wg}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){choix}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL.f}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL.f}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL.f}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nbL.g}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){nrow}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){wL.g}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL.g}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){var.x}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL.f}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){var.cl}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL.g}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xi}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The matrices are not invertible}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xj}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL.f}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL.f}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL.f}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nbL.g}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){NROW}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){wL.g}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL.g}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){var.x}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL.f}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){var.cl}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL.g}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xi}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One variance or more is equal ...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xj}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL.f}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nbL.g}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){nrow}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){var.x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){var.cl}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xi}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The matrices are not invertible}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xj}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL.f}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nbL.g}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){NROW}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){var.x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){var.cl}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.cl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xi}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One variance or more is equal ...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.classe}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xj}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.g}<LSEP>[](symbol){j}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){crit}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.groups}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){choix}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){var.x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The matrices are not invertible}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){var.x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){One variance or more is equal ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[](symbol){group}<LSEP>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){var.x}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){var.x}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){var.x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.j}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){group.name}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.j}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){l2d}<LSEP>[](symbol){xi}<LSEP>[](symbol){xj}<LSEP>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){j}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 8; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){crit}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wf.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wf}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Wfg.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wfg}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Wg.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wg}<LSEP>[](symbol){n.cl}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.x}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){moy.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){var.cl.tmp}<LEND>[call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){choix}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL.tmp}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){var.cl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){wL}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Wfg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2d}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.x}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){n.x}<LEND>[](symbol){varLwL.tmp}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Wg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2d}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](str){kern}<LSEP>[](symbol){varLwL.tmp}<LSEP>[](symbol){varLwL.tmp}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL.tmp}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){var.cl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){wL}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Wfg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2d}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.x}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){n.x}<LEND>[](symbol){varLwL.tmp}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Wg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2d}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](str){kern}<LSEP>[](symbol){varLwL.tmp}<LSEP>[](symbol){varLwL.tmp}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){varLwL.tmp}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){var.cl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Wfg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2d}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.x}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){n.x}<LEND>[](symbol){varLwL.tmp}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Wg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2d}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](str){kern}<LSEP>[](symbol){varLwL.tmp}<LSEP>[](symbol){varLwL.tmp}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){varLwL.tmp}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){var.cl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Wfg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2d}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.x}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](str){kern}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL.f}<LSEP>[](symbol){n.x}<LEND>[](symbol){varLwL.tmp}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Wg.tmp}<LEND>[call](){}<LSEP>[](symbol){l2d}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](str){kern}<LSEP>[](symbol){varLwL.tmp}<LSEP>[](symbol){varLwL.tmp}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Wf.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Wfg.tmp}<LEND>[](symbol){Wg.tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){Wfg.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Wf.tmp}<LSEP>[](symbol){Wg.tmp}<LEND>[argument 2; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d2ff}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Tj}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){d2fg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){x.cl}<LEND>[](symbol){Tj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){d2gg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){x.cl}<LSEP>[](symbol){x.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Tj}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d2ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[](symbol){d2gg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d2ff}<LSEP>[](symbol){d2gg}<LEND>[argument 3; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d2ff}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.x}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ind.cl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nr}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nj}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ind.cl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.cl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Wij}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){n.x}<LSEP>[](symbol){x.cl}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Wij}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wij}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Wjj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){x.cl}<LSEP>[](symbol){x.cl}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Wjj}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Wjj}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[argument 2; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nr}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){d2fg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nr}<LSEP>[](symbol){Wij}<LEND>[](symbol){nj}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){d2gg}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){nr}<LEND>[](symbol){Wjj}<LEND>[argument 1; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){nr}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){nj}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){d2ff}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[](symbol){d2gg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){d2fg}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d2ff}<LSEP>[](symbol){d2gg}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){group.calc}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){distances}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){which.min}<LEND>[statement 33; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){group.calc}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){group.calc}<LEND>[argument 1; litteral](str){.}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[](symbol){head}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){misclass}<LSEP>[](symbol){classe}<LEND>[statement 35; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){misclass}<LEND>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){prior.class}<LEND>[statement 36; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){misclass}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){lev.class}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){misclass}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){misclass}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){misclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){lev.class}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){misclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){group.calc}<LEND>[argument 2; litteral](str){predicted.class}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lev.class}<LSEP>[](symbol){group.calc}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){misclass}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){misclass}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){misclass}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){misclass}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 41; assign](){<-}<LSEP>[](symbol){alloc.per.classe}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){misclass}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 42; assign](){<-}<LSEP>[](symbol){inv.distances}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){distances}<LEND>[statement 43; assign](){<-}<LSEP>[](symbol){sum.inv.distances}<LEND>[call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){inv.distances}<LEND>[statement 44; assign](){<-}<LSEP>[](symbol){prox}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){inv.distances}<LSEP>[](symbol){sum.inv.distances}<LEND>[statement 45; assign](){<-}<LSEP>[](symbol){classe.ratio}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){alloc.per.classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){alloc.per.classe}<LEND>[statement 46; assign](){<-}<LSEP>[](symbol){classe.ratio}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){classe.ratio}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 47; assign](){<-}<LSEP>[](symbol){misclass.per.classe}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){100.000000}<LSEP>[](symbol){classe.ratio}<LEND>[statement 48; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){distance}<LSEP>[](symbol){misclass}<LSEP>[](symbol){alloc.per.classe}<LSEP>[](symbol){misclass.per.classe}<LEND>[argument 4; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){misclass}<LSEP>[](symbol){misclassed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){misclass}<LSEP>[](symbol){misclassed}<LEND>[](symbol){distances}<LEND>[argument 6; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){prox}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 49; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){results}<LEND>[litteral](str){fdiscd.misclass}<LEND>[statement 50; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.pcoa.plot}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){glPca}<LSEP>[](symbol){x}<LSEP>[](symbol){scale}<LSEP>[](symbol){ellipse}<LSEP>[](symbol){p}<LSEP>[](symbol){labels}<LSEP>[](symbol){theme_plot}<LSEP>[](symbol){as.pop}<LSEP>[](symbol){hadjust}<LSEP>[](symbol){vadjust}<LSEP>[](symbol){xaxis}<LSEP>[](symbol){yaxis}<LSEP>[](symbol){plot.out}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){plotly}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){directlabels}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){ggrepel}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){ggthemes}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package }<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){fd}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){gl}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){dist}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){glPca}<LEND>[argument 1; litteral](str){glPca}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: glPca object requ...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){dist}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){fd}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight, fd or d...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){none}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){interactive}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){legend}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'labels' ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){labels}<LSEP>[litteral](str){pop}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'p' must ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LSEP>[litteral](real){0.950000}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){hadjust}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){hadjust}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'hadjust'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){hadjust}<LSEP>[litteral](real){1.500000}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){vadjust}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){hadjust}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'vadjust'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){vadjust}<LSEP>[litteral](real){1.500000}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){xaxis}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){xaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){scores}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: X-axis must be spec...}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){scores}<LEND>[argument 2; litteral](str){; set to 1\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xaxis}<LSEP>[litteral](real){1.000000}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){xaxis}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){xaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){scores}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Y-axis must be spec...}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){scores}<LEND>[argument 2; litteral](str){; set to 2\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){yaxis}<LSEP>[litteral](real){2.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){pop.hold}<LEND>[call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){as.pop}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){as.pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[](symbol){as.pop}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Temporarily setting populati...}<LSEP>[](symbol){as.pop}<LSEP>[argument 2; litteral](str){as specified by the as.pop par...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: individual metric...}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){scores}<LEND>[](symbol){}<LSEP>[](symbol){xaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){scores}<LEND>[](symbol){}<LSEP>[](symbol){yaxis}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){m}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){eig}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){eig}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){e}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){eig}<LEND>[argument 1; litteral](real){100.000000}<LEND>[](symbol){s}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xlab}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PCA Axis}<LSEP>[](symbol){xaxis}<LSEP>[argument 2; litteral](str){(}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){xaxis}<LEND>[argument 4; litteral](str){%)}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ylab}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PCA Axis}<LSEP>[](symbol){yaxis}<LSEP>[argument 2; litteral](str){(}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){yaxis}<LEND>[argument 4; litteral](str){%)}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pop}<LEND>[call](){}<LSEP>[](symbol){factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){df}<LSEP>[](symbol){ind}<LSEP>[](symbol){pop}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){PCoAx}<LEND>[assign](){<-}<LSEP>[](symbol){PCoAy}<LSEP>[litteral](logical){NA}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){PCoAx}<LSEP>[argument 1; litteral](str){PCoAy}<LSEP>[argument 2; litteral](str){ind}<LSEP>[argument 3; litteral](str){pop}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xlab}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PCoA Axis}<LSEP>[](symbol){xaxis}<LSEP>[argument 2; litteral](str){(}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){xaxis}<LEND>[argument 4; litteral](str){%)}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ylab}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){PCoA Axis}<LSEP>[](symbol){yaxis}<LSEP>[argument 2; litteral](str){(}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){yaxis}<LEND>[argument 4; litteral](str){%)}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pop}<LSEP>[](symbol){ind}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){df}<LSEP>[](symbol){ind}<LSEP>[](symbol){pop}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){PCoAx}<LSEP>[argument 1; litteral](str){PCoAy}<LSEP>[argument 2; litteral](str){ind}<LSEP>[argument 3; litteral](str){pop}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){interactive}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Sorry, interactive labels ar...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Labelling the plot with name...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){labels}<LSEP>[litteral](str){pop}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){theme_list}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){theme_minimal}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_classic}<LEND>[argument 2; call](){}<LSEP>[](symbol){theme_bw}<LEND>[argument 3; call](){}<LSEP>[](symbol){theme_gray}<LEND>[argument 4; call](){}<LSEP>[](symbol){theme_linedraw}<LEND>[argument 5; call](){}<LSEP>[](symbol){theme_light}<LEND>[argument 6; call](){}<LSEP>[](symbol){theme_dark}<LEND>[argument 7; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_economist}<LEND>[argument 8; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_economist_white}<LEND>[argument 9; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_calc}<LEND>[argument 10; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_clean}<LEND>[argument 11; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_excel}<LEND>[argument 12; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_excel_new}<LEND>[argument 13; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_few}<LEND>[argument 14; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_fivethirtyeight}<LEND>[argument 15; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_foundation}<LEND>[argument 16; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_gdocs}<LEND>[argument 17; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_hc}<LEND>[argument 18; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_igray}<LEND>[argument 19; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_solarized}<LEND>[argument 20; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_solarized_2}<LEND>[argument 21; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_solid}<LEND>[argument 22; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_stata}<LEND>[argument 23; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_tufte}<LEND>[argument 24; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggthemes}<LSEP>[](symbol){theme_wsj}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){ind}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting individuals\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){PCoAx}<LSEP>[](symbol){PCoAy}<LSEP>[](symbol){ind}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theme_list}<LSEP>[](symbol){theme_plot}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggrepel}<LSEP>[](symbol){geom_text_repel}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){ind}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold.italic}<LSEP>[argument 1; litteral](str){20}<LSEP>[argument 2; litteral](str){black}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){18.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){16.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){scale}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){yaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){xaxis}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ellipse}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){stat_ellipse}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; litteral](str){norm}<LSEP>[argument 2; litteral](real){0.950000}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){pop}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting populations\n}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting entities from the D...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){PCoAx}<LSEP>[](symbol){PCoAy}<LSEP>[](symbol){pop}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theme_list}<LSEP>[](symbol){theme_plot}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){directlabels}<LSEP>[](symbol){geom_dl}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; litteral](str){smart.grid}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold.italic}<LSEP>[argument 1; litteral](str){20}<LSEP>[argument 2; litteral](str){black}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){18.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){16.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){scale}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){yaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){xaxis}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ellipse}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){stat_ellipse}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](str){black}<LEND>[argument 1; litteral](str){norm}<LSEP>[argument 2; litteral](real){0.950000}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){interactive}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){ggplotly}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Displaying an interactive pl...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ NOTE: Returning the ordina...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){plot.out}<LSEP>[litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){PCoAx}<LSEP>[](symbol){PCoAy}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LSEP>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theme_list}<LSEP>[](symbol){theme_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold.italic}<LSEP>[argument 1; litteral](str){20}<LSEP>[argument 2; litteral](str){black}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){18.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){16.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){scale}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){yaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){xaxis}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ellipse}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){stat_ellipse}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; litteral](str){norm}<LSEP>[argument 2; litteral](real){0.950000}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Ignore any warning on the numb...}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){legend}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Plotting populations identifie...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){PCoAx}<LSEP>[](symbol){PCoAy}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theme_list}<LSEP>[](symbol){theme_plot}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ggrepel}<LSEP>[](symbol){geom_text_repel}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold.italic}<LSEP>[argument 1; litteral](str){20}<LSEP>[argument 2; litteral](str){black}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){18.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){16.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){scale}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){yaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){xaxis}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ellipse}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){stat_ellipse}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; litteral](str){norm}<LSEP>[argument 2; litteral](real){0.950000}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){none}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Plotting points with no labels\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){PCoAx}<LSEP>[](symbol){PCoAy}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theme_list}<LSEP>[](symbol){theme_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold.italic}<LSEP>[argument 1; litteral](str){20}<LSEP>[argument 2; litteral](str){black}<LEND>[argument 1; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){bold}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){10.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){18.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 4; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](str){black}<LSEP>[argument 1; litteral](real){16.000000}<LSEP>[argument 2; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LSEP>[argument 0; litteral](str){none}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){scale}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){yaxis}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){e}<LSEP>[](symbol){xaxis}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ellipse}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LEND>[argument 1; call](){}<LSEP>[](symbol){stat_ellipse}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){pop}<LEND>[argument 1; litteral](str){norm}<LSEP>[argument 2; litteral](real){0.950000}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Preparing plot .... please w...}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){labels}<LSEP>[argument 1; litteral](str){interactive}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pp}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){plotly}<LSEP>[](symbol){ggplotly}<LEND>[](symbol){p}<LEND>[statement 1; call](){}<LSEP>[](symbol){show}<LSEP>[](symbol){pp}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){show}<LSEP>[](symbol){p}<LEND>[statement 30; control flow](){if}<LSEP>[](symbol){plot.out}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ While waiting, returning ggp...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ While waiting, returning dat...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glPca}<LSEP>[](symbol){scores}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){df}<LEND>[litteral](NULL){NULL}<LEND>[statement 31; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){as.pop}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){pop.hold}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Resetting population assignm...}<LEND>[statement 32; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 33; control flow](){if}<LSEP>[](symbol){plot.out}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){p}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){df}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rmcol.foldert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){name}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.foldert}<LSEP>[](symbol){object}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){rmcol.foldert applies to an ob...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xf}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){object}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){name}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){xf}<LEND>[call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){object}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){xf}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plot.dstatis}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){nscore}<LSEP>[](symbol){sub.title}<LSEP>[](symbol){color}<LSEP>[](symbol){fontsize.points}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){inertia}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){inertia}<LEND>[](symbol){inertia}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){coor}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){nscore}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){nscore}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){nscore}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){coor}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The components of nscore must ...}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){scores}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){ind}<LSEP>[](symbol){nscore}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){i1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){i2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nscore}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){coor}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes_q}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.name}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i1}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.name}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i2}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){group}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){color}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){namecol}<LEND>[call](){}<LSEP>[](symbol){deparse}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){color}<LEND>[statement 1; call](){}<LSEP>[](symbol){assign}<LSEP>[](symbol){namecol}<LSEP>[](symbol){color}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes_q}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.name}<LSEP>[](symbol){namecol}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes}<LSEP>[argument 0; litteral](str){bold}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){4.200000}<LSEP>[](symbol){fontsize.points}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){graph}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){graph}<LEND>[argument 1; call](){}<LSEP>[](symbol){labs}<LSEP>[argument 0; litteral](str){Dual Statis}<LSEP>[](symbol){sub.title}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i1}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){inertia}<LSEP>[](symbol){i1}<LEND>[argument 3; litteral](str){%)}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){coor}<LEND>[](symbol){i2}<LEND>[argument 1; litteral](str){ (}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){inertia}<LSEP>[](symbol){i2}<LEND>[argument 3; litteral](str){%)}<LEND>[statement 12; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){graph}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){is.foldert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){foldert}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.collapse.pval}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){fd}<LSEP>[](symbol){recode.table}<LSEP>[](symbol){outpath}<LSEP>[](symbol){delta}<LSEP>[](symbol){reps}<LSEP>[](symbol){alpha}<LSEP>[](symbol){plot}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){This script has been discontin...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Amalgamating populations bas...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){nPop}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){gl}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Distance calculat...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){fd}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fd}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){pcfd}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fd}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){nobs}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fd}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){nloc}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fd}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){pval}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fd}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){expobs}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fd}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: fd must be a list...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nWarning: gl.collapse needed ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fd}<LEND>[call](){}<LSEP>[](symbol){gl.fixed.diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){gl}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[](symbol){delta}<LSEP>[](symbol){reps}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](logical){FALSE}<LSEP>[](symbol){verbose}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\nInitial Populations\n}<LEND>[argument 1; call](){}<LSEP>[](symbol){variable.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nRaw fixed differences for th...}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){fd}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nP-values for the collapsed m...}<LEND>[statement 5; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Sample sizes}<LEND>[statement 8; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){gl}<LEND>[statement 9; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[](symbol){alpha}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){No amalgamation of populations...}<LSEP>[](symbol){alpha}<LSEP>[argument 2; litteral](str){-- all differences significant\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Analysis complete\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){fd}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pcfd}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){nobs}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){nloc}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){expobs}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){npops}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pops}<LEND>[call](){}<LSEP>[](symbol){variable.names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){zero.list}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Identifying and amalgamating p...}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){npops}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[](symbol){i}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){npops}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[](symbol){i}<LSEP>[](symbol){j}<LEND>[](symbol){alpha}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){pval}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){zero.list}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){zero.list}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){intersect}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){union}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){union}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){zero.list}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){zero.list}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){zero.list}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){replacement}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){replacement}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){+}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Group:}<LSEP>[](symbol){replacement}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[](symbol){replacement}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zero.list}<LSEP>[](symbol){i}<LEND>[](symbol){replacement}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){recode.table}<LSEP>[litteral](str){tmp.csv}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){recode.table}<LEND>[statement 10; call](){}<LSEP>[](symbol){write.table}<LSEP>[](symbol){df}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](str){,}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){gl.recode.pop}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd}<LSEP>[](symbol){gl}<LEND>[](symbol){outfilespec}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Recalculating fixed difference...}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){fd2}<LEND>[call](){}<LSEP>[](symbol){gl.fixed.diff}<LSEP>[](symbol){x2}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[](symbol){delta}<LSEP>[](symbol){reps}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[argument 6; litteral](logical){FALSE}<LSEP>[](symbol){verbose}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\nRaw fixed differences for ...}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){fd}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nP-values for the collapsed m...}<LEND>[statement 4; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){pval}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Sample sizes}<LEND>[statement 7; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x2}<LEND>[statement 8; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){pval}<LEND>[](symbol){alpha}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Some resulting pair...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Consider running gl.collapse...}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){fd}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){pcfd}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){nobs}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){nloc}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){expobs}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fd2}<LSEP>[](symbol){pval}<LEND>[statement 12; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pcoa}<LEND>[call](){}<LSEP>[](symbol){gl.pcoa}<LSEP>[](symbol){x2}<LSEP>[](symbol){verbose}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.pcoa.plot}<LSEP>[](symbol){pcoa}<LSEP>[](symbol){x2}<LEND>[statement 2; call](){}<LSEP>[](symbol){show}<LSEP>[](symbol){tmp}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Returning a list containing th...}<LSEP>[argument 1; litteral](str){ [[1]] $gl -- input ge...}<LSEP>[argument 2; litteral](str){ [[2]] $fd -- raw fixe...}<LSEP>[argument 3; litteral](str){ [[3]] $pcfd -- percen...}<LSEP>[argument 4; litteral](str){ [[4]] $nobs -- mean n...}<LSEP>[argument 5; litteral](str){ [[5]] $nloc -- total ...}<LSEP>[argument 6; litteral](str){ [[6]] $expobs -- if t...}<LSEP>[argument 7; litteral](str){ [[7]] $prob -- if tes...}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){l}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.ld}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){name}<LSEP>[](symbol){save}<LSEP>[](symbol){outpath}<LSEP>[](symbol){nchunks}<LSEP>[](symbol){ncores}<LSEP>[](symbol){chunkname}<LSEP>[](symbol){probar}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){doParallel}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package doParallel needed for ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){data.table}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package data.table needed for ...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){foreach}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package foreach needed for thi...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Detected Presence/Absence (S...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Cannot calculate linkage diseq...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){gi}<LEND>[call](){}<LSEP>[](symbol){gl2gi}<LSEP>[](symbol){x}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Calculating LD for all pairs...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Using}<LSEP>[](symbol){ncores}<LSEP>[argument 2; litteral](str){cores in}<LSEP>[](symbol){nchunks}<LSEP>[argument 4; litteral](str){ chunks.\n}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Depending on the number of l...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ nchunks specifies the number...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Separating all}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gi}<LEND>[argument 2; litteral](str){loci...\n}<LEND>[statement 11; call](){}<LSEP>[](symbol){flush.console}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){slg}<LEND>[call](){}<LSEP>[](symbol){seploc}<LSEP>[](symbol){gi}<LEND>[statement 13; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){slg}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){slg}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){@}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){slg}<LSEP>[](symbol){i}<LEND>[](symbol){tab}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Generating all possible pairs:}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){slg}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){slg}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){...\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){flush.console}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){allp}<LEND>[call](){}<LSEP>[](symbol){combn}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){slg}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){resnames}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){loc1}<LSEP>[argument 1; litteral](str){loc2}<LSEP>[argument 2; litteral](str){D}<LSEP>[argument 3; litteral](str){Dprime}<LSEP>[argument 4; litteral](str){r}<LSEP>[argument 5; litteral](str){R2}<LSEP>[argument 6; litteral](str){n}<LSEP>[argument 7; litteral](str){X2}<LSEP>[argument 8; litteral](str){p}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){lddone}<LSEP>[litteral](NULL){NULL}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){chunknr}<LSEP>[litteral](real){0.000000}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){chunkname}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ You specified results from a...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Loooking for LD_chunks_}<LSEP>[](symbol){chunkname}<LSEP>[argument 2; litteral](str){files.\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){chunkfiles}<LEND>[call](){}<LSEP>[](symbol){list.files}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){LD_chunks_}<LSEP>[](symbol){chunkname}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){chunkfiles}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Found}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){chunkfiles}<LEND>[argument 2; litteral](str){file(s).\n}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){chunkfiles}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){load}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){LD_chunks_}<LSEP>[](symbol){chunkname}<LSEP>[argument 2; litteral](str){_}<LSEP>[](symbol){i}<LSEP>[argument 4; litteral](str){.rdata}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){lddone}<LSEP>[](symbol){i}<LEND>[](symbol){ldc}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){chunknr}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){chunkfiles}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){lddone}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){rbindlist}<LEND>[](symbol){lddone}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Found}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){lddone}<LEND>[argument 2; litteral](str){pairs...\n}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setnames}<LEND>[](symbol){lddone}<LSEP>[](symbol){resnames}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){done}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){lddone}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){done}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){allp}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Already everyting is calcula...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){lddone}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){allp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){done}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ ...only}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){allp}<LEND>[argument 2; litteral](str){pairs left to be done...\n}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No chunkfiles with LD_chunks_}<LSEP>[](symbol){chunkname}<LSEP>[argument 2; litteral](str){_x.rdata found. \nRestart to c...}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Calculate LD for all pairs...\n}<LEND>[statement 22; call](){}<LSEP>[](symbol){flush.console}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){allp}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){ptm}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){proc.time}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){LD.fast}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){g1}<LSEP>[](symbol){g2}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){prop.A}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){g1}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){prop.A}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LSEP>[argument 3; litteral](logical){NA}<LSEP>[argument 4; litteral](logical){NA}<LSEP>[argument 5; litteral](logical){NA}<LSEP>[argument 6; litteral](logical){NA}<LSEP>[argument 7; litteral](logical){NA}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){prop.A}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){A}<LSEP>[argument 1; litteral](str){B}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){prop.B}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){g2}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){prop.B}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){NA}<LSEP>[argument 3; litteral](logical){NA}<LSEP>[argument 4; litteral](logical){NA}<LSEP>[argument 5; litteral](logical){NA}<LSEP>[argument 6; litteral](logical){NA}<LSEP>[argument 7; litteral](logical){NA}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){prop.B}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){A}<LSEP>[argument 1; litteral](str){B}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){major.A}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){prop.A}<LEND>[argument 1; call](){}<LSEP>[](symbol){which.max}<LSEP>[](symbol){prop.A}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){major.B}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){prop.B}<LEND>[argument 1; call](){}<LSEP>[](symbol){which.max}<LSEP>[](symbol){prop.B}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){pA}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){prop.A}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){pB}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){prop.B}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){pa}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pA}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){pb}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pB}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){Dmin}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){pA}<LEND>[](symbol){pB}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){pa}<LEND>[](symbol){pb}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){pmin}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pA}<LSEP>[](symbol){pB}<LEND>[](symbol){Dmin}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){Dmax}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pA}<LSEP>[](symbol){pb}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pB}<LSEP>[](symbol){pa}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){pmax}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pA}<LSEP>[](symbol){pB}<LEND>[](symbol){Dmax}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){mja}<LEND>[call](){}<LSEP>[](symbol){which.max}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LSEP>[](symbol){g1}<LSEP>[](symbol){T}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){mjb}<LEND>[call](){}<LSEP>[](symbol){which.max}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LSEP>[](symbol){g2}<LSEP>[](symbol){T}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){counts}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g1}<LSEP>[](symbol){}<LSEP>[](symbol){mja}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g2}<LSEP>[](symbol){}<LSEP>[](symbol){mjb}<LEND>[argument 2; litteral](str){no}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){n3x3}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){n3x3}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){n3x3}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 21; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){counts}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){counts}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){counts}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){loglik}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pAB}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){pAB}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){pA}<LSEP>[](symbol){pAB}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){pB}<LSEP>[](symbol){pAB}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pA}<LEND>[](symbol){pB}<LEND>[](symbol){pAB}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){n3x3}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pAB}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){pA}<LEND>[](symbol){pB}<LEND>[](symbol){pAB}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){pA}<LSEP>[](symbol){pAB}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){pB}<LSEP>[](symbol){pAB}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){optimize}<LSEP>[](symbol){loglik}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){pmin}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){pmax}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[argument 3; litteral](logical){TRUE}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){pAB}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){maximum}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){estD}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){pAB}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pA}<LSEP>[](symbol){pB}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){estD}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){estDp}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){estD}<LSEP>[](symbol){Dmax}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){estDp}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){estD}<LSEP>[](symbol){Dmin}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){n3x3}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){corr}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){estD}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pA}<LSEP>[](symbol){pB}<LEND>[](symbol){pa}<LEND>[](symbol){pb}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){dchi}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){estD}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){pA}<LSEP>[](symbol){pa}<LEND>[](symbol){pB}<LEND>[](symbol){pb}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){dpval}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pchisq}<LSEP>[](symbol){dchi}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){retval}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[](symbol){estD}<LSEP>[](symbol){estDp}<LSEP>[](symbol){corr}<LEND>[argument 4; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){corr}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n}<LSEP>[](symbol){dchi}<LSEP>[](symbol){dpval}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){retval}<LEND>[litteral](str){LD}<LEND>[](symbol){retval}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){runs}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nchunks}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){runs}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){nchunks}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){runs}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){chunks}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){n}<LEND>[body; call](){}<LSEP>[](symbol){split}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){cut}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){x}<LEND>[](symbol){n}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){nchunks}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){splitruns}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){runs}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){splitruns}<LEND>[call](){}<LSEP>[](symbol){chunks}<LSEP>[](symbol){runs}<LSEP>[](symbol){nchunks}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){ldchunks}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){cl}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){parallel}<LSEP>[](symbol){makeCluster}<LEND>[](symbol){ncores}<LEND>[statement 32; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){doParallel}<LSEP>[](symbol){registerDoParallel}<LEND>[](symbol){cl}<LEND>[statement 33; control flow](){if}<LSEP>[](symbol){probar}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pbar}<LEND>[call](){}<LSEP>[](symbol){txtProgressBar}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nchunks}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](logical){NA}<LEND>[statement 34; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nchunks}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){iter}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){splitruns}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){ncores}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){it2}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){iter}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){it2}<LEND>[call](){}<LSEP>[](symbol){chunks}<LSEP>[](symbol){iter}<LSEP>[](symbol){ncores}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ip}<LSEP>[litteral](logical){NA}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ll}<LEND>[call](){}<LSEP>[](symbol){%dopar%}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){foreach}<LSEP>[](symbol){foreach}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){it2}<LEND>[](symbol){rbind}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){9.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){it2}<LSEP>[](symbol){ip}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){ii}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){it2}<LSEP>[](symbol){ip}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){l1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){it2}<LSEP>[](symbol){ip}<LEND>[](symbol){ii}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){l2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){it2}<LSEP>[](symbol){ip}<LEND>[](symbol){ii}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){s1}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){slg}<LSEP>[](symbol){l1}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){s2}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){slg}<LSEP>[](symbol){l2}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LSEP>[](symbol){s1}<LSEP>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){colSums}<LSEP>[](symbol){s2}<LSEP>[](symbol){T}<LEND>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){LD.fast}<LSEP>[](symbol){s1}<LSEP>[](symbol){s2}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){res}<LSEP>[](symbol){ii}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){l1}<LSEP>[](symbol){l2}<LEND>[argument 2; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){cbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){8.000000}<LEND>[false branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){res}<LSEP>[](symbol){ii}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){l1}<LSEP>[](symbol){l2}<LEND>[argument 2; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[](symbol){res}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ldchunks}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){ll}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){probar}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){setTxtProgressBar}<LSEP>[](symbol){pbar}<LSEP>[](symbol){i}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){ldc}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ldchunks}<LSEP>[](symbol){i}<LEND>[statement 7; call](){}<LSEP>[](symbol){save}<LSEP>[](symbol){ldc}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){LD_chunks_}<LSEP>[](symbol){chunkname}<LSEP>[argument 2; litteral](str){_}<LEND>[argument 3; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[](symbol){chunknr}<LEND>[argument 4; litteral](str){.rdata}<LEND>[statement 35; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){parallel}<LSEP>[](symbol){stopCluster}<LEND>[](symbol){cl}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){LDres2}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){rbindlist}<LEND>[](symbol){ldchunks}<LEND>[statement 37; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){setnames}<LEND>[](symbol){LDres2}<LSEP>[](symbol){resnames}<LEND>[statement 38; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lddone}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){LDres2}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){rbindlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){lddone}<LSEP>[](symbol){LDres2}<LEND>[statement 39; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){\n No. of Simulations:}<LSEP>[](symbol){n}<LSEP>[argument 2; litteral](str){. Took}<LEND>[argument 3; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){proc.time}<LEND>[argument 1; litteral](real){3.000000}<LEND>[](symbol){ptm}<LEND>[argument 4; litteral](str){seconds.\n}<LEND>[statement 40; control flow](){if}<LSEP>[](symbol){save}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){name}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nobj}<LSEP>[](symbol){name}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){filename}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){LD_}<LSEP>[](symbol){name}<LSEP>[argument 2; litteral](str){.rdata}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){filename}<LSEP>[litteral](str){LDallp.rdata}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nobj}<LSEP>[litteral](str){LDallp}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){\n Results are saved as object }<LSEP>[](symbol){nobj}<LSEP>[argument 2; litteral](str){ under }<LSEP>[](symbol){filename}<LSEP>[argument 4; litteral](str){.\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Once you have checked you ca...}<LSEP>[](symbol){chunkname}<LSEP>[argument 2; litteral](str){files.\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){assign}<LSEP>[](symbol){nobj}<LSEP>[](symbol){LDres2}<LEND>[statement 3; call](){}<LSEP>[](symbol){save}<LSEP>[](symbol){nobj}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){filename}<LEND>[statement 41; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 42; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){LDres2}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){RDestimate}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){formula}<LSEP>[](symbol){data}<LSEP>[](symbol){subset}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){bw}<LSEP>[](symbol){kernel}<LSEP>[](symbol){se.type}<LSEP>[](symbol){cluster}<LSEP>[](symbol){verbose}<LSEP>[](symbol){model}<LSEP>[](symbol){frame}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){call}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){data}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){environment}<LSEP>[](symbol){formula}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){formula}<LEND>[call](){}<LSEP>[](symbol){as.Formula}<LSEP>[](symbol){formula}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){model.frame}<LSEP>[](symbol){formula}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[](symbol){data}<LSEP>[](symbol){na.pass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){model.frame}<LSEP>[](symbol){formula}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](NULL){NULL}<LSEP>[](symbol){data}<LSEP>[](symbol){na.pass}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){subset}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){subset}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){subset}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){cluster}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){cluster}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cluster}<LSEP>[](symbol){subset}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){cluster}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cluster}<LEND>[call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){cluster}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){robust.se}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){model}<LSEP>[](symbol){cluster}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){M}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){cluster}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cluster}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){K}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){model}<LSEP>[](symbol){rank}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dfc}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){M}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){M}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[](symbol){K}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){uj}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){estfun}<LSEP>[](symbol){model}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){tapply}<LSEP>[](symbol){x}<LSEP>[](symbol){cluster}<LSEP>[](symbol){sum}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rcse.cov}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){dfc}<LEND>[argument 1; call](){}<LSEP>[](symbol){sandwich}<LSEP>[](symbol){model}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LSEP>[](symbol){uj}<LEND>[](symbol){N}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){rcse.se}<LEND>[call](){}<LSEP>[](symbol){coeftest}<LSEP>[](symbol){model}<LSEP>[](symbol){rcse.cov}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rcse.se}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){na.ok}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){Y}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){all.vars}<LEND>[argument 0; call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){formula}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){F}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){type}<LSEP>[litteral](str){fuzzy}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Z}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){model.frame}<LSEP>[](symbol){formula}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[](symbol){data}<LSEP>[](symbol){na.pass}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){subset}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){Z}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Z}<LSEP>[](symbol){subset}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){na.ok}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){na.ok}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){Z}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){all.vars}<LEND>[argument 0; call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){formula}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){F}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid formula. Read ?RDestim...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){type}<LSEP>[litteral](str){sharp}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){covs}<LSEP>[litteral](NULL){NULL}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){formula}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){covs}<LEND>[call](){}<LSEP>[](symbol){model.frame}<LSEP>[](symbol){formula}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[](symbol){data}<LSEP>[](symbol){na.pass}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){subset}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){covs}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){covs}<LSEP>[](symbol){subset}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){na.ok}<LEND>[call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){na.ok}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){covs}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){covs}<LEND>[call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){covs}<LSEP>[](symbol){na.ok}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){na.ok}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){na.ok}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){fuzzy}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){Z}<LEND>[call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Z}<LSEP>[](symbol){na.ok}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){cutpoint}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cutpoint}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){No cutpoint provided. Using de...}<LEND>[statement 15; control flow](){if}<LSEP>[](symbol){frame}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){sharp}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){covs}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dat.out}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){X}<LSEP>[](symbol){Y}<LSEP>[](symbol){covs}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){dat.out}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){X}<LSEP>[](symbol){Y}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){covs}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dat.out}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){X}<LSEP>[](symbol){Y}<LSEP>[](symbol){Z}<LSEP>[](symbol){covs}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){dat.out}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){X}<LSEP>[](symbol){Y}<LSEP>[](symbol){Z}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){bw}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bw}<LEND>[call](){}<LSEP>[](symbol){IKbandwidth}<LSEP>[](symbol){X}<LSEP>[](symbol){Y}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){kernel}<LSEP>[](symbol){verbose}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){bws}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[](symbol){bw}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){bw}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){bws}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){LATE}<LSEP>[argument 1; litteral](str){Half-BW}<LSEP>[argument 2; litteral](str){Double-BW}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){bw}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bws}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[](symbol){bw}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){bw}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){bws}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){LATE}<LSEP>[argument 1; litteral](str){Half-BW}<LSEP>[argument 2; litteral](str){Double-BW}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bws}<LSEP>[](symbol){bw}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){o}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){type}<LEND>[](symbol){type}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){call}<LEND>[](symbol){call}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){bws}<LEND>[argument 1; litteral](str){numeric}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){bws}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){bw}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){bws}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){obs}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LEND>[statement 27; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){ci}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){bws}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){model}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){fuzzy}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){model}<LEND>[](symbol){firststage}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){model}<LEND>[](symbol){iv}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){frame}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){na.action}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.ok}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){o}<LEND>[litteral](str){RD}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){Xl}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){X}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){Xr}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){X}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){Tr}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 37; control flow](){for}<LSEP>[](symbol){bw}<LSEP>[](symbol){bws}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){bw}<LSEP>[](symbol){bws}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sub}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){bw}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){gaussian}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){sub}<LSEP>[litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){kernelwts}<LSEP>[](symbol){X}<LSEP>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){bw}<LSEP>[](symbol){kernel}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){obs}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){w}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){sharp}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Running Sharp RD\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Running variable:}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){all.vars}<LEND>[argument 0; call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){formula}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){F}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Outcome variable:}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){all.vars}<LEND>[argument 0; call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){formula}<LSEP>[](symbol){F}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){covs}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Covariates:}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){covs}<LEND>[argument 1; litteral](str){, }<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){covs}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){Y}<LSEP>[](symbol){Tr}<LSEP>[](symbol){Xl}<LSEP>[](symbol){Xr}<LSEP>[](symbol){covs}<LSEP>[](symbol){w}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){form}<LEND>[call](){}<LSEP>[](symbol){as.formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Y~Tr+Xl+Xr+}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){covs}<LEND>[argument 1; litteral](str){+}<LSEP>[argument 2; litteral](str){}<LEND>[argument 2; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){Y}<LSEP>[](symbol){Tr}<LSEP>[](symbol){Xl}<LSEP>[](symbol){Xr}<LSEP>[](symbol){w}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){form}<LEND>[call](){}<LSEP>[](symbol){as.formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Tr}<LSEP>[](symbol){Xl}<LEND>[](symbol){Xr}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mod}<LEND>[call](){}<LSEP>[](symbol){lm}<LSEP>[](symbol){form}<LSEP>[](symbol){w}<LEND>[argument 2; call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){w}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Model:\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){mod}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){mod}<LEND>[argument 1; litteral](str){Tr}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){cluster}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){coeftest}<LSEP>[](symbol){mod}<LEND>[argument 1; call](){}<LSEP>[](symbol){vcovHC}<LSEP>[](symbol){mod}<LSEP>[](symbol){se.type}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){robust.se}<LSEP>[](symbol){mod}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cluster}<LSEP>[](symbol){na.ok}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){w}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){z}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[](symbol){ibw}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){p}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){z}<LEND>[](symbol){ibw}<LEND>[](symbol){F}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){ci}<LEND>[](symbol){ibw}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[](symbol){ibw}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){qnorm}<LSEP>[argument 0; litteral](real){0.975000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[](symbol){ibw}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){qnorm}<LSEP>[argument 0; litteral](real){0.975000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){model}<LEND>[true branch; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){model}<LEND>[](symbol){ibw}<LEND>[](symbol){mod}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){frame}<LEND>[true branch; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){frame}<LEND>[](symbol){ibw}<LEND>[](symbol){dat.out}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Running Fuzzy RD\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Running variable:}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){all.vars}<LEND>[argument 0; call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){formula}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){F}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Outcome variable:}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){all.vars}<LEND>[argument 0; call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){formula}<LSEP>[](symbol){F}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Treatment variable:}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){all.vars}<LEND>[argument 0; call](){}<LSEP>[](symbol){formula}<LSEP>[](symbol){formula}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){F}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){covs}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Covariates:}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){covs}<LEND>[argument 1; litteral](str){, }<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){covs}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){Y}<LSEP>[](symbol){Tr}<LSEP>[](symbol){Xl}<LSEP>[](symbol){Xr}<LSEP>[](symbol){Z}<LSEP>[](symbol){covs}<LSEP>[](symbol){w}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){form}<LEND>[call](){}<LSEP>[](symbol){as.Formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Y~Z+Xl+Xr+}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){covs}<LEND>[argument 1; litteral](str){+}<LEND>[argument 2; litteral](str){|Tr+Xl+Xr+}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){covs}<LEND>[argument 1; litteral](str){+}<LEND>[argument 4; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){form1}<LEND>[call](){}<LSEP>[](symbol){as.Formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Z~Tr+Xl+Xr+}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){covs}<LEND>[argument 1; litteral](str){+}<LSEP>[argument 2; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){Y}<LSEP>[](symbol){Tr}<LSEP>[](symbol){Xl}<LSEP>[](symbol){Xr}<LSEP>[](symbol){Z}<LSEP>[](symbol){w}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){form}<LEND>[call](){}<LSEP>[](symbol){as.Formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Z}<LSEP>[](symbol){Xl}<LEND>[](symbol){Xr}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Tr}<LSEP>[](symbol){Xl}<LEND>[](symbol){Xr}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){form1}<LEND>[call](){}<LSEP>[](symbol){as.formula}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Z}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Tr}<LSEP>[](symbol){Xl}<LEND>[](symbol){Xr}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mod1}<LEND>[call](){}<LSEP>[](symbol){lm}<LSEP>[](symbol){form1}<LSEP>[](symbol){w}<LEND>[argument 2; call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){w}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mod}<LEND>[call](){}<LSEP>[](symbol){ivreg}<LSEP>[](symbol){form}<LSEP>[](symbol){w}<LEND>[argument 2; call](){}<LSEP>[](symbol){subset}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){w}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){First stage:\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){mod1}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){IV-RD:\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){mod}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){mod}<LEND>[argument 1; litteral](str){Z}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){cluster}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){coeftest}<LSEP>[](symbol){mod}<LEND>[argument 1; call](){}<LSEP>[](symbol){vcovHC}<LSEP>[](symbol){mod}<LSEP>[](symbol){se.type}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){robust.se}<LSEP>[](symbol){mod}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cluster}<LSEP>[](symbol){na.ok}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){w}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){z}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[](symbol){ibw}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){p}<LEND>[](symbol){ibw}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){pnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){z}<LEND>[](symbol){ibw}<LEND>[](symbol){F}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){ci}<LEND>[](symbol){ibw}<LSEP>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[](symbol){ibw}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){qnorm}<LSEP>[argument 0; litteral](real){0.975000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){est}<LEND>[](symbol){ibw}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){qnorm}<LSEP>[argument 0; litteral](real){0.975000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){se}<LEND>[](symbol){ibw}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){model}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){model}<LEND>[](symbol){firststage}<LEND>[](symbol){ibw}<LEND>[](symbol){mod1}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){model}<LEND>[](symbol){iv}<LEND>[](symbol){ibw}<LEND>[](symbol){mod}<LEND>[statement 11; control flow](){if}<LSEP>[](symbol){frame}<LEND>[true branch; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){o}<LSEP>[](symbol){frame}<LEND>[](symbol){dat.out}<LEND>[statement 38; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){o}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.drop.pop}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){pop.list}<LSEP>[](symbol){as.pop}<LSEP>[](symbol){recalc}<LSEP>[](symbol){mono.rm}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){as.pop}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error: Population assign...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.compliance.check}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){pop.hold}<LEND>[call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){as.pop}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){as.pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[](symbol){as.pop}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Temporarily setting populati...}<LSEP>[](symbol){as.pop}<LSEP>[argument 2; litteral](str){as specified by the as.pop par...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: individual metric...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Checking for presence of nom...}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){case}<LSEP>[](symbol){pop.list}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){case}<LEND>[argument 1; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Listed population}<LSEP>[](symbol){case}<LSEP>[argument 2; litteral](str){not present in the dataset -- ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pop.list}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pop.list}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){pop.list}<LSEP>[](symbol){case}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pop.list}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: no populations li...}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleting populations}<LSEP>[](symbol){pop.list}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pop}<LEND>[](symbol){pop.list}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){pop.hold}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pop.hold}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pop}<LEND>[](symbol){pop.list}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){x}<LSEP>[](symbol){x2}<LEND>[statement 17; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 18; control flow](){if}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Deleting monomorphic loc\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Resultant dataset m...}<LEND>[statement 20; control flow](){if}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.recalc.metrics}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Recalculating locus metrics\n}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Locus metrics not recalculat...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.reset.flags}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){as.pop}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Summary of recoded dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of levels of}<LSEP>[](symbol){as.pop}<LSEP>[argument 2; litteral](str){remaining: }<LEND>[argument 3; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of populations: }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){pop.hold}<LEND>[argument 2; litteral](str){\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Summary of recoded dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ No. of populations: }<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){as.pop}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){pop.hold}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Resetting population assignm...}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){history}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 26; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){bandwidth.parameter}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){p}<LSEP>[](symbol){n}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](real){3.000000}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2plink}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: genlight object...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Execution terminated\n}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Detected Presence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Writing data to output file\n}<LEND>[statement 11; call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){tt}<LSEP>[](symbol){outfilespec}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){-9}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){interpret.fpcat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){nscore}<LSEP>[](symbol){moment}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){times}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){times}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[litteral](str){fpcad}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[](symbol){interpret}<LSEP>[](symbol){x}<LSEP>[](symbol){nscore}<LSEP>[](symbol){moment}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){ret}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){fhclustd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){xf}<LSEP>[](symbol){group.name}<LSEP>[](symbol){gaussiand}<LSEP>[](symbol){distance}<LSEP>[](symbol){windowh}<LSEP>[](symbol){data.centered}<LSEP>[](symbol){data.scaled}<LSEP>[](symbol){common.variance}<LSEP>[](symbol){sub.title}<LSEP>[](symbol){filename}<LSEP>[](symbol){method.hclust}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){xf}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){fhclustd applies to a data fra...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){xf}<LSEP>[](symbol){group.name}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){group.name}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){xf}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){xf has no column named '}<LSEP>[](symbol){group.name}<LSEP>[argument 2; litteral](str){'.}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xf}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){xf}<LEND>[](symbol){group.name}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xf}<LSEP>[](symbol){}<LSEP>[](symbol){group.name}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){xf}<LEND>[call](){}<LSEP>[](symbol){as.folder}<LSEP>[](symbol){xf}<LSEP>[](symbol){group.name}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){last.column.name}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[litteral](str){group}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nb.groups}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){levgroup}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The variables must be numeric!}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){There are NAs in the folder}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){windowh}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){windowh must be either a numer...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){windowh}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){windowh must be strictly posit...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){the elements of the windowh li...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){windowh}<LEND>[](symbol){levgroup}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){the names of the windowh list ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){windowh}<LSEP>[](symbol){det}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All elements of windowh must b...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){windowh}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Machine}<LSEP>[](symbol){double.eps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All elements of windowh must b...}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){distance}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){distance}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){gaussiand}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){hellinger}<LSEP>[argument 1; litteral](str){jeffreys}<LSEP>[argument 2; litteral](str){wasserstein}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){distance=}<LSEP>[](symbol){distance}<LSEP>[argument 2; litteral](str){ is not avalaible for non-Gaus...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){distance}<LSEP>[litteral](str){l2}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){gaussiand}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){The argument windowh is not ta...}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){gaussiand}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){kern}<LSEP>[litteral](str){gauss}<LEND>[false branch; assign](){=}<LSEP>[](symbol){kern}<LSEP>[litteral](str){}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){group}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){There should be more than one ...}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){moyL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){colMeans}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){moyL0}<LSEP>[](symbol){moyL}<LEND>[statement 19; control flow](){if}<LSEP>[](symbol){data.centered}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){moyL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){numeric}<LSEP>[](symbol){p}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){levgroup}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){levgroup}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[](symbol){F}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){varL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){var}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){varL0}<LSEP>[](symbol){varL}<LEND>[statement 22; assign](){=}<LSEP>[](symbol){corL}<LSEP>[](symbol){varL}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){corL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){cor}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){corL}<LSEP>[](symbol){i}<LEND>[litteral](real){1.000000}<LEND>[statement 24; control flow](){if}<LSEP>[](symbol){data.scaled}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){varL}<LSEP>[](symbol){corL}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){levgroup}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){scale}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){levgroup}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 25; control flow](){if}<LSEP>[](symbol){common.variance}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){var}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){skewnessL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){apply}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){skewness}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){kurtosisL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){apply}<LSEP>[argument 3; litteral](real){2.000000}<LSEP>[](symbol){kurtosis}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){distance}<LSEP>[argument 1; litteral](str){l2norm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distance}<LSEP>[litteral](str){l2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){normed}<LSEP>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){normed}<LSEP>[litteral](logical){FALSE}<LEND>[statement 29; control flow](){if}<LSEP>[](symbol){gaussiand}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distance}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matipl2dpar}<LSEP>[](symbol){moyL}<LSEP>[](symbol){varL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){norme}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){nb.groups}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){norme}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){i}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){norme}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){norme}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.groups}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matdist}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matdist}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matdist}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matdist}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){matdist}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){mathellinger}<LSEP>[](symbol){xf}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){matjeffreys}<LSEP>[](symbol){xf}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){matwasserstein}<LSEP>[](symbol){xf}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){distance}<LSEP>[argument 1; litteral](str){l2norm}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distance}<LSEP>[litteral](str){l2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){normed}<LSEP>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){normed}<LSEP>[litteral](logical){FALSE}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){choix}<LEND>[call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){3.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){m}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){u}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kern}<LSEP>[argument 1; litteral](str){gauss}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){g}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](str){.}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){a}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){p}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){windowh}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){n}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){l}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){windowh}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){l}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[litteral](str){n}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){choix}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){choix}<LSEP>[argument 1; litteral](str){}<LEND>[statement 6; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){choix}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[](symbol){group}<LSEP>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){varL}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matipl2d}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){kern}<LSEP>[](symbol){varLwL}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wL}<LEND>[call](){}<LSEP>[](symbol){bandwidth.parameter}<LSEP>[](symbol){p}<LSEP>[](symbol){nbL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){varL}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wL}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matipl2d}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){kern}<LSEP>[](symbol){varLwL}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[](symbol){group}<LSEP>[](symbol){nrow}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){varL}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matipl2d}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){kern}<LSEP>[](symbol){varLwL}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nbL}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){p}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){group}<LSEP>[](symbol){NROW}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){varL}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varLwL}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){windowh}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matipl2d}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){kern}<LSEP>[](symbol){varLwL}<LEND>[argument 5; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matipl2d}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){kern}<LSEP>[](symbol){windowh}<LEND>[argument 6; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matipl2d}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){kern}<LSEP>[](symbol){windowh}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){norme}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[](symbol){nb.groups}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){norme}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){i}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){norme}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){norme}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.groups}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){normed}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matdist}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matdist}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matdist}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matdist}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){matdist}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){xclust}<LEND>[call](){}<LSEP>[](symbol){hclust}<LSEP>[](symbol){matdist}<LSEP>[](symbol){method.hclust}<LSEP>[argument 2; litteral](NULL){NULL}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){matdist}<LSEP>[](symbol){xclust}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){results}<LEND>[litteral](str){fhclustd}<LEND>[statement 33; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mdsdd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){xf}<LSEP>[](symbol){group.name}<LSEP>[](symbol){distance}<LSEP>[](symbol){nb.factors}<LSEP>[](symbol){nb.values}<LSEP>[](symbol){association}<LSEP>[](symbol){sub.title}<LSEP>[](symbol){plot.eigen}<LSEP>[](symbol){plot.score}<LSEP>[](symbol){nscore}<LSEP>[](symbol){filename}<LSEP>[](symbol){add}<LSEP>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){xf}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){xf}<LEND>[argument 1; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){xf}<LSEP>[](symbol){is.array}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){mdsdd applies to a data frame,...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.folder}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){xf}<LSEP>[](symbol){group.name}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[litteral](str){group}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){nb.groups}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LSEP>[](symbol){group}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){groups.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){vars.name}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){levels.name}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LSEP>[](symbol){vars.name}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){levels.name}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){levels.name}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){There are NAs in the folder}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){xf}<LSEP>[](symbol){table}<LSEP>[](symbol){vars.name}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){group.name}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){xf}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){xf has no column named '}<LSEP>[](symbol){group.name}<LSEP>[argument 2; litteral](str){'.}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xf}<LSEP>[](symbol){}<LSEP>[](symbol){group.name}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){groups.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xf}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){xf}<LEND>[](symbol){group.name}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nb.groups}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){groups.name}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){vars.name}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){levels.name}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LSEP>[](symbol){vars.name}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){levels.name}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){levels.name}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){by}<LSEP>[](symbol){x}<LSEP>[](symbol){group}<LSEP>[](symbol){table}<LSEP>[](symbol){vars.name}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tab}<LEND>[](symbol){groups.name}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nomdim}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){xf}<LSEP>[](symbol){dimnames}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){identdim}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){nomdim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){nomdim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LSEP>[](symbol){identdim}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){If xf is a list of arrays, all...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tab}<LSEP>[](symbol){xf}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){is.negative}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){xf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){is.negative}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All elements of xf must be arr...}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){nb.groups}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tab}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tab}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){groups.name}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tab}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){groups.name}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){tab}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){vars.name}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){vars.name}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){=}<LSEP>[](symbol){levels.name}<LEND>[call](){}<LSEP>[](symbol){dimnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){nb.vars}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){vars.name}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dims}<LEND>[call](){}<LSEP>[](symbol){dim}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){association}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){association}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){assocfc}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){association}<LSEP>[](symbol){CramerV}<LSEP>[](symbol){TschuprowT}<LSEP>[](symbol){ContCoef}<LSEP>[](symbol){Phi}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){freq}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){tab}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){x}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){idx}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.vars}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){isum}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[](symbol){idx}<LSEP>[](symbol){sum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){listpmargin}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){freq}<LSEP>[](symbol){isum}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){matpmargin}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){listpmargin}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dims}<LSEP>[](symbol){idx}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){matpmargin}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vars.name}<LSEP>[](symbol){idx}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){levels.name}<LSEP>[](symbol){idx}<LEND>[argument 2; litteral](str){.}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){idx}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matprob}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){matprob}<LSEP>[](symbol){matpmargin}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){matprob}<LSEP>[](symbol){matpmargin}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){matprob}<LEND>[](symbol){groups.name}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){matprob}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){matprob}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nb.vars}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){nog}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){xg}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){freq}<LSEP>[](symbol){nog}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){nameg}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){groups.name}<LSEP>[](symbol){nog}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){vvprob}<LEND>[call](){}<LSEP>[](symbol){numeric}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){dfcolsname}<LEND>[call](){}<LSEP>[](symbol){character}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){colsnamev1v2}<LEND>[call](){}<LSEP>[](symbol){character}<LEND>[statement 6; control flow](){for}<LSEP>[](symbol){novar1}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.vars}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){vprobvar1}<LEND>[call](){}<LSEP>[](symbol){numeric}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){lvar1}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){V}<LSEP>[](symbol){novar1}<LSEP>[argument 2; litteral](str){.}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){levels.name}<LSEP>[](symbol){novar1}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LSEP>[](symbol){novar1}<LSEP>[](symbol){sum}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){novar2}<LEND>[range; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){novar1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.vars}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){novar1}<LSEP>[](symbol){novar2}<LEND>[](symbol){sum}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){vecvprob}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){vprob}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){vprobvar1}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){vprobvar1}<LSEP>[](symbol){vecvprob}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){lvar2}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){V}<LSEP>[](symbol){novar2}<LSEP>[argument 2; litteral](str){.}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){levels.name}<LSEP>[](symbol){novar2}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){colsnamev1v2}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){colsnamev1v2}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){expand.grid}<LSEP>[](symbol){lvar1}<LSEP>[](symbol){lvar2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){:}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){vvprob}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){vvprob}<LSEP>[](symbol){vprobvar1}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){dfcolsname}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){dfcolsname}<LSEP>[](symbol){colsnamev1v2}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){dfjp}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){vvprob}<LEND>[](symbol){nameg}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 9; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dfjp}<LEND>[](symbol){dfcolsname}<LEND>[statement 10; control flow](){for}<LSEP>[](symbol){nog}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){xg}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){freq}<LSEP>[](symbol){nog}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){nameg}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){groups.name}<LSEP>[](symbol){nog}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){vvprob}<LEND>[call](){}<LSEP>[](symbol){numeric}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){novar1}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.vars}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){vprobvar1}<LEND>[call](){}<LSEP>[](symbol){numeric}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LSEP>[](symbol){novar1}<LSEP>[](symbol){sum}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){novar2}<LEND>[range; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){novar1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.vars}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){novar1}<LSEP>[](symbol){novar2}<LEND>[](symbol){sum}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){vecvprob}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){vprob}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){vprobvar1}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){vprobvar1}<LSEP>[](symbol){vecvprob}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){vvprob}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){vvprob}<LSEP>[](symbol){vprobvar1}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){dfjpg}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){vvprob}<LEND>[](symbol){nameg}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){dfjpg}<LEND>[](symbol){dfcolsname}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){dfjp}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){dfjp}<LSEP>[](symbol){dfjpg}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){assocL}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 12; assign](){=}<LSEP>[](symbol){nog}<LSEP>[litteral](real){1.000000}<LEND>[statement 13; assign](){=}<LSEP>[](symbol){xg}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){freq}<LSEP>[](symbol){nog}<LEND>[statement 14; assign](){=}<LSEP>[](symbol){nameg}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){groups.name}<LSEP>[](symbol){nog}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){matassoc}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){nb.vars}<LSEP>[](symbol){nb.vars}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){vars.name}<LSEP>[](symbol){vars.name}<LEND>[statement 16; control flow](){for}<LSEP>[](symbol){novar1}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.vars}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tab1}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LSEP>[](symbol){novar1}<LSEP>[](symbol){sum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nlevnonnul1}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tab1}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){whichnul1}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tab1}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nlevnonnul1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar1}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){novar1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.vars}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){novar1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.vars}<LEND>[](symbol){novar1}<LEND>[litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){novar2}<LEND>[range; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){novar1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.vars}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tab2}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LSEP>[](symbol){novar2}<LSEP>[](symbol){sum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nlevnonnul2}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tab2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){whichnul2}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tab2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nlevnonnul2}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar1}<LSEP>[](symbol){novar2}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar2}<LSEP>[](symbol){novar1}<LEND>[litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){novar1}<LSEP>[](symbol){novar2}<LEND>[](symbol){sum}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){whichnul1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vprob}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){whichnul1}<LEND>[](symbol){}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){whichnul2}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vprob}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){whichnul2}<LEND>[statement 3; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar1}<LSEP>[](symbol){novar2}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar2}<LSEP>[](symbol){novar1}<LEND>[call](){}<LSEP>[](symbol){assocfc}<LSEP>[](symbol){vprob}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){assocL}<LSEP>[](symbol){nameg}<LEND>[](symbol){matassoc}<LEND>[statement 18; control flow](){for}<LSEP>[](symbol){nog}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){nb.groups}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matassoc}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){nb.vars}<LSEP>[](symbol){nb.vars}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){vars.name}<LSEP>[](symbol){vars.name}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){xg}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){freq}<LSEP>[](symbol){nog}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){nameg}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){groups.name}<LSEP>[](symbol){nog}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){novar1}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.vars}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tab1}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LSEP>[](symbol){novar1}<LSEP>[](symbol){sum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nlevnonnul1}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tab1}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){whichnul1}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tab1}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nlevnonnul1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar1}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){novar1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.vars}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){novar1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.vars}<LEND>[](symbol){novar1}<LEND>[litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){novar2}<LEND>[range; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){novar1}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nb.vars}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tab2}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LSEP>[](symbol){novar2}<LSEP>[](symbol){sum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nlevnonnul2}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tab2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){whichnul2}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tab2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nlevnonnul2}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar1}<LSEP>[](symbol){novar2}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar2}<LSEP>[](symbol){novar1}<LEND>[litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xg}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){novar1}<LSEP>[](symbol){novar2}<LEND>[](symbol){sum}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){whichnul1}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vprob}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){whichnul1}<LEND>[](symbol){}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){whichnul2}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; assign](){=}<LSEP>[](symbol){vprob}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vprob}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){whichnul2}<LEND>[statement 3; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar1}<LSEP>[](symbol){novar2}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matassoc}<LSEP>[](symbol){novar2}<LSEP>[](symbol){novar1}<LEND>[call](){}<LSEP>[](symbol){assocfc}<LSEP>[](symbol){vprob}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){assocL}<LSEP>[](symbol){nameg}<LEND>[](symbol){matassoc}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dfjp}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){assocL}<LSEP>[litteral](NULL){NULL}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){distance}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){distance}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){distance.printing}<LSEP>[](symbol){distance}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){distance}<LSEP>[argument 1; litteral](str){lp}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){p}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){p}<LSEP>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){distance.printing}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){lp with p =}<LSEP>[](symbol){p}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){distance}<LSEP>[argument 1; litteral](str){l1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distance}<LSEP>[litteral](str){lp}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LSEP>[litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){distance.printing}<LSEP>[litteral](str){l1}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){distance}<LSEP>[argument 1; litteral](str){l2}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){distance}<LSEP>[litteral](str){lp}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){p}<LSEP>[litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){distance.printing}<LSEP>[litteral](str){l2}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.values}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nb.values}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){nb.groups}<LSEP>[](symbol){nb.factors}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nb.factors}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nb.groups}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 17; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distance}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){matddlppar}<LSEP>[](symbol){freq}<LSEP>[](symbol){p}<LEND>[argument 2; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){matddhellingerpar}<LSEP>[](symbol){freq}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){matddchisqsympar}<LSEP>[](symbol){freq}<LEND>[argument 4; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){matddjeffreyspar}<LSEP>[](symbol){freq}<LEND>[argument 5; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){matddjensenpar}<LSEP>[](symbol){freq}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.finite}<LSEP>[](symbol){matdist}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cmds}<LEND>[call](){}<LSEP>[](symbol){cmdscale}<LSEP>[](symbol){matdist}<LSEP>[](symbol){nb.factors}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[](symbol){add}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ep}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cmds}<LSEP>[](symbol){eig}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){epaff}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ep}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.values}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){coor}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cmds}<LSEP>[](symbol){points}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){Some distances between groups ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[](symbol){group.name}<LSEP>[](symbol){vars.name}<LSEP>[](symbol){distance.printing}<LSEP>[argument 4; litteral](NULL){NULL}<LSEP>[argument 5; litteral](NULL){NULL}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){jointp}<LEND>[](symbol){freq}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){margins}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){matprob}<LSEP>[](symbol){dfjp}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){associations}<LEND>[](symbol){assocL}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){assocL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){associations}<LEND>[argument 1; litteral](str){measure}<LEND>[](symbol){association}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){associations}<LEND>[argument 1; litteral](str){measure}<LEND>[litteral](NULL){NULL}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){results}<LEND>[litteral](str){mdsdd}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[](symbol){group.name}<LSEP>[](symbol){vars.name}<LSEP>[](symbol){distance.printing}<LEND>[argument 4; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){epaff}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){1000.000000}<LSEP>[](symbol){epaff}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){ep}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 5; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){groups.name}<LSEP>[](symbol){coor}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 20; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){scores}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){group.name}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){results}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){freq}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){margins}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){matprob}<LSEP>[](symbol){dfjp}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){associations}<LEND>[](symbol){assocL}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){assocL}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){associations}<LEND>[argument 1; litteral](str){measure}<LEND>[](symbol){association}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){associations}<LEND>[argument 1; litteral](str){measure}<LEND>[litteral](NULL){NULL}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){results}<LEND>[litteral](str){mdsdd}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){filename}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){save}<LSEP>[](symbol){results}<LSEP>[](symbol){filename}<LEND>[statement 27; control flow](){if}<LSEP>[](symbol){plot.eigen}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){inertia}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){results}<LSEP>[](symbol){inertia}<LEND>[](symbol){inertia}<LEND>[statement 1; call](){}<LSEP>[](symbol){barplot}<LSEP>[](symbol){inertia}<LSEP>[argument 1; litteral](str){Inertia}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){inertia}<LEND>[argument 3; litteral](real){1.000000}<LEND>[statement 28; control flow](){if}<LSEP>[](symbol){plot.score}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){results}<LSEP>[](symbol){nscore}<LSEP>[](symbol){sub.title}<LEND>[statement 29; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){DataFrame}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){tibble}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The DataFrame class is based o...}<LSEP>[argument 1; litteral](str){using 'install.packages(tibble...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tibble}<LSEP>[](symbol){tibble}<LEND>[](symbol){...}<LEND>[statement 2; call](){}<LSEP>[](symbol){addClass}<LSEP>[](symbol){dat}<LSEP>[argument 1; litteral](str){DataFrame}<LEND>[call](){}<LSEP>[](symbol){setOldClass}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){DataFrame}<LSEP>[argument 1; litteral](str){tbl_df}<LSEP>[argument 2; litteral](str){tbl}<LSEP>[argument 3; litteral](str){data.frame}<LEND>[assign](){<-}<LSEP>[](symbol){as.DataFrame}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){as.DataFrame}<LEND>[assign](){<-}<LSEP>[](symbol){as.DataFrame.default}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){DataFrame}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){as.DataFrame.data.frame}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){addClass}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){DataFrame}<LSEP>[argument 1; litteral](str){tbl_df}<LSEP>[argument 2; litteral](str){tbl}<LSEP>[argument 3; litteral](str){data.frame}<LEND>[assign](){<-}<LSEP>[variable; litteral](str){[.DataFrame}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LSEP>[](symbol){...}<LSEP>[](symbol){by}<LSEP>[](symbol){sby}<LSEP>[](symbol){drop}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){data.frame}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){j}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){j}<LEND>[true branch; litteral](NULL){NULL}<LSEP>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){j}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nargs}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){i}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){i}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nargs}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; litteral](NULL){NULL}<LSEP>[](symbol){i}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){by}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){by}<LEND>[true branch; litteral](NULL){NULL}<LSEP>[](symbol){by}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){sby}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){sby}<LEND>[true branch; litteral](NULL){NULL}<LSEP>[](symbol){sby}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){memClassHandler}<LEND>[call](){}<LSEP>[](symbol){MemClassHandler}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){memClassHandler}<LSEP>[](symbol){memClass}<LEND>[](symbol){x}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){memClassHandler}<LSEP>[](symbol){stripClass}<LEND>[](symbol){x}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){handleRows}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){dispatcher}<LSEP>[](symbol){i}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){handleCols}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){dispatcher}<LSEP>[](symbol){i}<LEND>[argument 2; call](){}<LSEP>[](symbol){dispatcher}<LSEP>[](symbol){j}<LEND>[](symbol){...}<LSEP>[](symbol){by}<LSEP>[](symbol){sby}<LEND>[statement 11; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){memClassHandler}<LSEP>[](symbol){wrapClass}<LEND>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%g%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){handleRows}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){standardGeneric}<LSEP>[argument 0; litteral](str){handleRows}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleRows}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleRows}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){logical}<LSEP>[](symbol){numeric}<LEND>[](symbol){integer}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleRows}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[](symbol){OneSidedFormula}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){envir}<LEND>[call](){}<LSEP>[](symbol){environment}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){expr}<LEND>[call](){}<LSEP>[](symbol){parse}<LEND>[argument 0; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){~}<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){deparse}<LSEP>[](symbol){i}<LEND>[statement 2; call](){}<LSEP>[](symbol){handleRows}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){eval}<LSEP>[](symbol){expr}<LSEP>[](symbol){x}<LSEP>[](symbol){envir}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleRows}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[](symbol){TwoSidedFormula}<LEND>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleRows}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[](symbol){FormulaList}<LEND>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%g%}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){handleCols}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LSEP>[](symbol){...}<LSEP>[](symbol){by}<LSEP>[](symbol){sby}<LEND>[argument 1; call](){}<LSEP>[](symbol){standardGeneric}<LSEP>[argument 0; litteral](str){handleCols}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LSEP>[](symbol){character}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){useDplyr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){select_}<LEND>[](symbol){x}<LSEP>[](symbol){j}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){.SD}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){.SD}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LSEP>[](symbol){RegEx}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){handleCols}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){...}<LSEP>[argument 4; litteral](NULL){NULL}<LSEP>[argument 5; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LSEP>[](symbol){logical}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){handleCols}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[](symbol){j}<LEND>[](symbol){...}<LSEP>[argument 4; litteral](NULL){NULL}<LSEP>[argument 5; litteral](NULL){NULL}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](str){function}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){mutar}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){vapply}<LSEP>[](symbol){x}<LSEP>[](symbol){j}<LEND>[argument 2; call](){}<LSEP>[](symbol){logical}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LSEP>[](symbol){OneSidedFormula}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){handleRows}<LSEP>[](symbol){x}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[argument 0; litteral](NULL){NULL}<LSEP>[](symbol){FormulaList}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[argument 0; litteral](NULL){NULL}<LSEP>[](symbol){FormulaList}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[](symbol){ANY}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[](symbol){ANY}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){update}<LSEP>[](symbol){i}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){update}<LSEP>[](symbol){j}<LSEP>[](symbol){x}<LEND>[statement 2; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){mutar}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](NULL){NULL}<LSEP>[](symbol){by}<LSEP>[](symbol){sby}<LEND>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){logical}<LSEP>[](symbol){numeric}<LEND>[](symbol){integer}<LEND>[](symbol){OneSidedFormula}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LSEP>[](symbol){ANY}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[](symbol){ANY}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[](symbol){ANY}<LEND>[argument 1; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){handleCols}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](NULL){NULL}<LSEP>[](symbol){j}<LSEP>[](symbol){...}<LSEP>[](symbol){by}<LSEP>[](symbol){sby}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){TwoSidedFormula}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){TwoSidedFormula}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){constructArgs}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LSEP>[](symbol){...}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){useDplyr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate_}<LEND>[](symbol){x}<LSEP>[](symbol){args}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dataTableMutate}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){TwoSidedFormula}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){TwoSidedFormula}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[](symbol){character}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){constructArgs}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LSEP>[](symbol){...}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){useDplyr}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by_}<LEND>[](symbol){x}<LSEP>[](symbol){sby}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){summarise_}<LEND>[](symbol){x}<LSEP>[](symbol){args}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dataTableSummariseBy}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LSEP>[](symbol){sby}<LEND>[call](){}<LSEP>[](symbol){%m%}<LEND>[argument 0; call](){}<LSEP>[](symbol){handleCols}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){x}<LSEP>[](symbol){data.frame}<LEND>[argument 1; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){TwoSidedFormula}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 2; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){|}<LSEP>[](symbol){TwoSidedFormula}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[](symbol){...}<LEND>[argument 4; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){by}<LSEP>[](symbol){character}<LEND>[argument 5; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){sby}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[argument 1; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){args}<LEND>[call](){}<LSEP>[](symbol){constructArgs}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LSEP>[](symbol){...}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){useDplyr}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){group_by_}<LEND>[](symbol){x}<LSEP>[](symbol){by}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dplyr}<LSEP>[](symbol){mutate_}<LEND>[](symbol){args}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){dataTableMutateBy}<LSEP>[](symbol){x}<LSEP>[](symbol){args}<LSEP>[](symbol){by}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.hamming}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){rs}<LSEP>[](symbol){boxplot}<LSEP>[](symbol){range}<LSEP>[](symbol){threshold}<LSEP>[](symbol){taglength}<LSEP>[](symbol){probar}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){TrimmedSequence}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Data must include...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){rs}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){rs}<LSEP>[](symbol){taglength}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error: Length of restric...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Data must include...}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){TrimmedSequence}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){tld}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){threshold}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){taglength}<LSEP>[](symbol){rs}<LEND>[statement 12; control flow](){if}<LSEP>[](symbol){probar}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pb}<LEND>[call](){}<LSEP>[](symbol){txtProgressBar}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){0.000000}<LSEP>[argument 4; litteral](str){Working ....}<LEND>[statement 1; call](){}<LSEP>[](symbol){getTxtProgressBar}<LSEP>[](symbol){pb}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Hamming distance ranges from...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Calculating pairwise Hamming...}<LEND>[statement 14; assign](){=}<LSEP>[](symbol){count}<LSEP>[litteral](real){0.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){nL}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nL}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nL}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nL}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){utils.hamming}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){s}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){s}<LSEP>[](symbol){j}<LEND>[](symbol){rs}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){probar}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){setTxtProgressBar}<LSEP>[](symbol){pb}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nL}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){SNP data (DArTSeq)\nPairwise H...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Fragment P/A data (SilicoDArT)...}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){boxplot}<LSEP>[argument 1; litteral](str){adjusted}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting box and whisker plo...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){bp [HD}<LEND>[argument 3; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){tld}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Plotting box and whisker plo...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){bp [HD}<LEND>[argument 3; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){tld}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){]\n}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){op}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[argument 3; litteral](str){m}<LEND>[statement 21; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){boxplot}<LSEP>[argument 1; litteral](str){standard}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){whisker}<LEND>[call](){}<LSEP>[](symbol){boxplot}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){title}<LEND>[statement 1; call](){}<LSEP>[](symbol){abline}<LSEP>[](symbol){tld}<LSEP>[argument 1; litteral](str){red}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){whisker}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){robustbase}<LSEP>[](symbol){adjbox}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){title}<LEND>[statement 1; call](){}<LSEP>[](symbol){abline}<LSEP>[](symbol){tld}<LSEP>[argument 1; litteral](str){red}<LEND>[statement 23; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){hst}<LEND>[call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){}<LSEP>[argument 3; litteral](str){blue}<LSEP>[argument 4; litteral](str){red}<LEND>[argument 5; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 6; litteral](real){100.000000}<LEND>[statement 25; call](){}<LSEP>[](symbol){abline}<LSEP>[](symbol){tld}<LSEP>[argument 1; litteral](str){red}<LEND>[statement 26; call](){}<LSEP>[](symbol){text}<LSEP>[](symbol){tld}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){hst}<LSEP>[](symbol){counts}<LEND>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](str){bp}<LEND>[statement 27; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci =}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 28; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of individuals =}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 29; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Miniumum Hamming distance: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 30; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Maximum Hamming distance: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 31; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){ Mean Hamming Distance }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){+/-}<LEND>[argument 3; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){d}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 4; litteral](str){ SD\n\n}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){n.outliers}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){threshold}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){taglength}<LSEP>[](symbol){rs}<LEND>[statement 33; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of pairs with Hamming Di...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){base pairs:}<LSEP>[](symbol){n.outliers}<LSEP>[argument 4; litteral](str){\n}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){retained}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){pc.retained}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){filtered}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){pc.filtered}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){percentile}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 39; control flow](){for}<LSEP>[](symbol){index}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){index}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){5.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc.retained}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nL}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nL}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){filtered}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nL}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nL}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc.filtered}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pc.retained}<LSEP>[](symbol){index}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){percentile}<LSEP>[](symbol){retained}<LSEP>[](symbol){pc.retained}<LSEP>[](symbol){filtered}<LSEP>[](symbol){pc.filtered}<LEND>[statement 41; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){df}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Threshold}<LSEP>[argument 1; litteral](str){Retained}<LSEP>[argument 2; litteral](str){Percent}<LSEP>[argument 3; litteral](str){Filtered}<LSEP>[argument 4; litteral](str){Percent}<LEND>[statement 43; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){df}<LSEP>[](symbol){Threshold}<LEND>[](symbol){}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){df}<LEND>[litteral](NULL){NULL}<LEND>[statement 45; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){op}<LEND>[statement 46; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 47; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){df}
[](){expression}<LSEP>[litteral](str){pendigits}<LSEP>[litteral](str){COMBO17}<LSEP>[litteral](str){tobacco}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.parent.offspring}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){min.rdepth}<LSEP>[](symbol){min.reproducibility}<LSEP>[](symbol){range}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'verbose'...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){verbose}<LSEP>[litteral](real){2.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){[ Build =}<LSEP>[](symbol){build}<LSEP>[argument 4; litteral](str){]\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Starting}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: genlight object r...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Detected Presence...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Generating null expectation ...}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){ind.names}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.filter.reproducibility}<LSEP>[](symbol){x}<LSEP>[](symbol){min.reproducibility}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.filter.rdepth}<LSEP>[](symbol){x}<LSEP>[](symbol){min.rdepth}<LSEP>[argument 2; litteral](real){0.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.filter.callrate}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.950000}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){nL}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){nP}<LEND>[call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){pN}<LEND>[call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){nP}<LSEP>[](symbol){nP}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[statement 18; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nP}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nP}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pair}<LEND>[call](){}<LSEP>[](symbol){gl.keep.pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pN}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pN}<LSEP>[](symbol){j}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){pair}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){vect}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){homalts}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){vect}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){vect}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[](symbol){T}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[](symbol){homalts}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){counts}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){count}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Identifying outliers with lo...}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){SNP data (DArTSeq)\nCounts of ...}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){op}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[argument 3; litteral](str){m}<LEND>[statement 23; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Standard boxplot, no adjustm...}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){whisker}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){graphics}<LSEP>[](symbol){boxplot}<LEND>[](symbol){counts}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){steelblue}<LSEP>[](symbol){range}<LSEP>[](symbol){title}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){lower.extremes}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){median}<LEND>[](symbol){counts}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lower.extremes}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outliers}<LSEP>[litteral](NULL){NULL}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outliers}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){lower.extremes}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Identifying outlying pairs\n}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lower.extremes}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LSEP>[](symbol){count}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){lower.tri}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){lower.tri}<LSEP>[](symbol){tmp}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outliers}<LSEP>[](symbol){Outlier}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outliers}<LSEP>[](symbol){Outlier}<LEND>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outliers}<LSEP>[](symbol){ind1}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){tmp2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outliers}<LSEP>[](symbol){ind2}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){tmp2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){zscore}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outliers}<LSEP>[](symbol){Outlier}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outliers}<LSEP>[](symbol){zscore}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){zscore}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outliers}<LSEP>[](symbol){p}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){pnorm}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){count}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outliers}<LSEP>[](symbol){zscore}<LEND>[](symbol){i}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){iqr}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){IQR}<LEND>[](symbol){counts}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){qth}<LEND>[call](){}<LSEP>[](symbol){quantile}<LSEP>[](symbol){counts}<LSEP>[argument 1; litteral](real){0.250000}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){cutoff}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){qth}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){iqr}<LSEP>[](symbol){range}<LEND>[statement 33; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.000000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[statement 34; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){counts}<LSEP>[argument 1; litteral](str){No. Pedigree Incompatable}<LSEP>[argument 2; litteral](str){steelblue}<LSEP>[argument 3; litteral](real){100.000000}<LSEP>[argument 4; litteral](NULL){NULL}<LEND>[statement 35; call](){}<LSEP>[](symbol){abline}<LSEP>[](symbol){cutoff}<LSEP>[argument 1; litteral](str){red}<LEND>[statement 36; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lower.extremes}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No outliers detected\n}<LEND>[statement 37; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lower.extremes}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outliers}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){outliers}<LEND>[argument 1; call](){}<LSEP>[](symbol){order}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){outliers}<LSEP>[](symbol){Outlier}<LEND>[](symbol){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){outliers}<LEND>[statement 38; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){op}<LEND>[statement 39; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){verbose}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 40; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){outliers}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_ticket_history_entry}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ticket_id}<LSEP>[](symbol){history_id}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){rt_url}<LSEP>[argument 0; litteral](str){ticket}<LSEP>[](symbol){ticket_id}<LSEP>[argument 2; litteral](str){history/id}<LSEP>[](symbol){history_id}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[](symbol){rt_GET}<LSEP>[](symbol){url}<LSEP>[](symbol){...}<LEND>[statement 2; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 3; call](){}<LSEP>[](symbol){parse_rt_properties}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.hclustdd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){dist.print}<LSEP>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){dist.print}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){distances between groups\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){distances}<LEND>[](symbol){digits}<LSEP>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){clust}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){is.fmdsd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){is}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){fmdsd}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){discdd.predict}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){xf}<LSEP>[](symbol){class.var}<LSEP>[](symbol){distance}<LSEP>[](symbol){crit}<LSEP>[](symbol){misclass.ratio}<LSEP>[](symbol){p}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){xf}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){discdd.misclass applies to a f...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.folderh}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){xf}<LSEP>[](symbol){is.array}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){discdd.misclass applies to a f...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){class.var}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){class.var}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){If xf is a list of arrays, cla...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){crit}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){crit must be 1 or 2.}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){distance}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){distance}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.folderh}<LSEP>[](symbol){xf}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xf}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){discdd.misclass applies to a f...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){The 1st data frame of xf must ...}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){j.group}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){keys}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){j.group}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){j.group}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){j.group}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){classe}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){xf}<LSEP>[argument 1; litteral](str){keys}<LEND>[](symbol){class.var}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){group}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){nb.groups}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LSEP>[](symbol){group}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){group.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){nb.classe}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){classe.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The names of the groups in the...}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){factor}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 17; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 2; litteral](str){classe}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 2; litteral](real){2.000000}<LEND>[statement 18; control flow](){if}<LSEP>[](symbol){misclass.ratio}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){x}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x.pred}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){group.pred}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){nb.pred}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LSEP>[](symbol){group.pred}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){pred.name}<LEND>[call](){}<LSEP>[](symbol){levels}<LSEP>[](symbol){group.pred}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){tabgr}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){table}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){tabgr.pred}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x.pred}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){table}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){tabcl}<LEND>[call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){table}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){nb.pred}<LSEP>[](symbol){nb.classe}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){pred.name}<LSEP>[](symbol){classe.name}<LEND>[statement 26; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){crit}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabcl}<LSEP>[](symbol){n.cl}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabcl}<LSEP>[](symbol){n.cl}<LEND>[argument 2; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){ddchisqsympar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabcl}<LSEP>[](symbol){n.cl}<LEND>[argument 4; call](){}<LSEP>[](symbol){ddhellingerpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabcl}<LSEP>[](symbol){n.cl}<LEND>[argument 5; call](){}<LSEP>[](symbol){ddjeffreyspar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabcl}<LSEP>[](symbol){n.cl}<LEND>[argument 6; call](){}<LSEP>[](symbol){ddjensenpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabcl}<LSEP>[](symbol){n.cl}<LEND>[argument 7; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabcl}<LSEP>[](symbol){n.cl}<LEND>[](symbol){p}<LEND>[argument 2; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){n.x}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){indcl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){n.cl}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){Tj}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){indcl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){indcl}<LEND>[argument 2; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){q}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tabcl.tmp}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){Reduce}<LSEP>[argument 0; litteral](str){+}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){x.cl}<LEND>[](symbol){Tj}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){ddchisqsympar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 4; call](){}<LSEP>[](symbol){ddhellingerpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 5; call](){}<LSEP>[](symbol){ddjeffreyspar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 6; call](){}<LSEP>[](symbol){ddjensenpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 7; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LSEP>[](symbol){p}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nomdim}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){xf}<LSEP>[](symbol){dimnames}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){identdim}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){nomdim}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){nomdim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LSEP>[](symbol){identdim}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){If xf is a list of arrays, all...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){is.negative}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){xf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){is.negative}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All elements of xf must be arr...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){classe}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){class.var}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){group}<LSEP>[argument 1; litteral](str){class}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){xf}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){class.var}<LEND>[argument 1; call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){class.var}<LSEP>[](symbol){class}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){class.var}<LSEP>[](symbol){group}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){class.var}<LSEP>[](symbol){class}<LEND>[statement 8; call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){crit}<LEND>[argument 1; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){class.var}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){class.var}<LSEP>[](symbol){class}<LEND>[](symbol){n.cl}<LEND>[argument 2; litteral](str){group}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){indcl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tabgr}<LEND>[](symbol){x.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Tj}<LEND>[call](){}<LSEP>[](symbol){Reduce}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){indcl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tabcl.tmp}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){Reduce}<LSEP>[argument 0; litteral](str){+}<LEND>[argument 1; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){indcl}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){x}<LEND>[](symbol){Tj}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){ddchisqsympar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 4; call](){}<LSEP>[](symbol){ddhellingerpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 5; call](){}<LSEP>[](symbol){ddjeffreyspar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 6; call](){}<LSEP>[](symbol){ddjensenpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 7; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LSEP>[](symbol){p}<LEND>[argument 2; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.x}<LEND>[range; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){n.cl}<LEND>[range; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){distances}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x.cl}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){class.var}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){class.var}<LSEP>[](symbol){class}<LEND>[](symbol){n.cl}<LEND>[argument 2; litteral](str){group}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){indcl}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tabgr}<LEND>[](symbol){x.cl}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Tj}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){indcl}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tabcl.tmp}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){Reduce}<LSEP>[argument 0; litteral](str){+}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){indcl}<LEND>[](symbol){Tj}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){distances}<LSEP>[](symbol){n.x}<LSEP>[](symbol){n.cl}<LEND>[call](){}<LSEP>[](symbol){switch}<LSEP>[](symbol){distance}<LEND>[argument 1; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){ddchisqsympar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 4; call](){}<LSEP>[](symbol){ddhellingerpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 5; call](){}<LSEP>[](symbol){ddjeffreyspar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 6; call](){}<LSEP>[](symbol){ddjensenpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LEND>[argument 7; call](){}<LSEP>[](symbol){ddlppar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){tabgr}<LSEP>[](symbol){n.x}<LEND>[](symbol){tabcl.tmp}<LSEP>[](symbol){p}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){group.calc}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){distances}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){which.min}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){group.calc}<LEND>[call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){group.calc}<LEND>[argument 1; litteral](str){.}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[](symbol){head}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){prediction}<LSEP>[argument 1; litteral](logical){NA}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){prediction}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){prior.class}<LSEP>[argument 1; litteral](str){predicted.class}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){prediction}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){lev.class}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classe}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){prediction}<LSEP>[](symbol){predicted.class}<LEND>[call](){}<LSEP>[](symbol){factor}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){lev.class}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){group.calc}<LEND>[argument 2; litteral](str){predicted.class}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lev.class}<LSEP>[](symbol){group.calc}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){inv.distances}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){distances}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){sum.inv.distances}<LEND>[call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){inv.distances}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){prox}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){inv.distances}<LSEP>[](symbol){sum.inv.distances}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){distance}<LSEP>[argument 1; litteral](str){lp}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){distance}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){lp with p =}<LSEP>[](symbol){p}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){distance}<LSEP>[](symbol){prediction}<LSEP>[](symbol){distances}<LEND>[argument 3; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){prox}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 19; control flow](){if}<LSEP>[](symbol){misclass.ratio}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){confusion.mat}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){class.ratio}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){confusion.mat}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowSums}<LSEP>[](symbol){confusion.mat}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){class.ratio}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){class.ratio}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){misclassed}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){prediction}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){results}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){confusion.mat}<LSEP>[](symbol){misclassed}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){results}<LEND>[litteral](str){discdd.predict}<LEND>[statement 21; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results}
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.amova}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){distance}<LSEP>[](symbol){permutations}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){pegas}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[](symbol){pkg}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package}<LSEP>[](symbol){pkg}<LSEP>[argument 2; litteral](str){ needed for this function to w...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){distance}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){StAMPP}<LSEP>[](symbol){stamppNeisD}<LEND>[](symbol){x}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){dd}<LSEP>[](symbol){distance}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){genlight}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){geno2}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){geno}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){geno2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sample}<LEND>[call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){geno}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pop.names}<LEND>[call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){geno2}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ploidy}<LEND>[call](){}<LSEP>[](symbol){ploidy}<LSEP>[](symbol){geno2}<LEND>[statement 5; assign](){=}<LSEP>[](symbol){geno}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){geno}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ploidy}<LEND>[statement 6; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geno}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){geno}<LEND>[litteral](real){nan}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){format}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geno}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 8; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){format}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geno}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](str){genlight}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){pops}<LEND>[call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){pop.names}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){pop.num}<LEND>[call](){}<LSEP>[](symbol){vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geno}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 11; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geno}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pop.num}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pop.names}<LSEP>[](symbol){i}<LEND>[](symbol){pops}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){genoLHS}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){sample}<LSEP>[](symbol){pop.names}<LSEP>[](symbol){pop.num}<LSEP>[](symbol){ploidy}<LSEP>[](symbol){format}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){geno}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){genoLHS}<LSEP>[](symbol){geno}<LEND>[statement 14; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geno}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){pop.names}<LEND>[statement 15; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geno}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geno}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 16; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){row.names}<LSEP>[](symbol){geno}<LEND>[litteral](NULL){NULL}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pop.names}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){geno}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){pop.names}<LEND>[call](){}<LSEP>[](symbol){factor}<LSEP>[](symbol){pop.names}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){new.env}<LEND>[statement 7; call](){}<LSEP>[](symbol){assign}<LSEP>[argument 0; litteral](str){distance}<LSEP>[](symbol){dd}<LSEP>[](symbol){temp}<LEND>[statement 8; call](){}<LSEP>[](symbol){assign}<LSEP>[argument 0; litteral](str){pop.names}<LSEP>[](symbol){pop.names}<LSEP>[](symbol){temp}<LEND>[statement 9; call](){}<LSEP>[](symbol){assign}<LSEP>[argument 0; litteral](str){permutations}<LSEP>[](symbol){permutations}<LSEP>[](symbol){temp}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){with}<LSEP>[](symbol){temp}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pegas}<LSEP>[](symbol){amova}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){distance}<LSEP>[](symbol){pop.names}<LEND>[](symbol){permutations}<LEND>[statement 11; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){pop.names}<LSEP>[](symbol){permutations}<LSEP>[](symbol){temp}<LEND>[statement 12; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}