ast
stringlengths 16
28.2M
|
---|
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.rdepth}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){boxplot}<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){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){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){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<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){AvgReadDepth}<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; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Read depth not in...}<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){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<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){rdepth}<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>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Read depth not in...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){lower}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){rdepth}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){upper}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){rdepth}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 10; 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 11; 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 12; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Miniumum read depth: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){rdepth}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Maximum read depth: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){rdepth}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 14; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Mean read depth: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){rdepth}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){retained}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 16; 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 17; assign](){<-}<LSEP>[](symbol){filtered}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 18; 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 19; assign](){<-}<LSEP>[](symbol){percentile}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 20; 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){20.000000}<LEND>[statement 1; assign](){<-}<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){i}<LSEP>[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}<LSEP>[](symbol){upper}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[](symbol){i}<LEND>[statement 3; 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){rdepth}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){rdepth}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[statement 4; 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){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){filtered}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[statement 6; 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 21; 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 22; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){df}<LEND>[statement 23; 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 24; 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 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){df}<LEND>[litteral](NULL){NULL}<LEND>[statement 26; 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; litteral](str){m}<LEND>[statement 27; 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)\nRead Depth...}<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 28; 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 29; 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 30; 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){rdepth}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LSEP>[](symbol){title}<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){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Standard boxplot, no adjustm...}<LEND>[statement 1; 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}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){rdepth}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Standard boxplot, no adjustm...}<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>[](symbol){rdepth}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LSEP>[](symbol){title}<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){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Boxplot adjusted to account ...}<LEND>[statement 1; 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}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){rdepth}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Boxplot adjusted to account ...}<LEND>[statement 31; 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 32; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){rdepth}<LSEP>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](real){100.000000}<LSEP>[argument 3; litteral](NULL){NULL}<LEND>[statement 33; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<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>[false 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){ Outliers detected -- returne...}<LEND>[statement 34; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){op}<LEND>[statement 35; 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 36; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){outliers} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_parse_response}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){response}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){body}<LEND>[call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){content}<LEND>[](symbol){response}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){split_response}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_split}<LEND>[](symbol){body}<LSEP>[argument 1; litteral](str){[\\n]+}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){split_response}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){split_response}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Failed to parse RT response. R...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){response}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){first}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){split_response}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){rest}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_replace_all}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){split_response}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){[\\n]+$}<LSEP>[argument 2; litteral](str){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){match}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_match}<LEND>[](symbol){first}<LSEP>[argument 1; litteral](str){\\ART/[\\d\\.]+ (\\d+) (.+)\\Z}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){match}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){body}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Failed to parse RT response. R...}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){response}<LEND>[statement 7; call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){url}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){match}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){match}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){^#[ ]+}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){rest}<LEND>[argument 1; litteral](str){rt_api} |
[](){expression}<LSEP>[litteral](NULL){NULL}<LSEP>[litteral](NULL){NULL} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){plot.ada}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){kappa}<LSEP>[](symbol){test}<LSEP>[](symbol){cols}<LSEP>[](symbol){tflag}<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){x}<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; assign](){<-}<LSEP>[](symbol){kapstat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tab}<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){tab}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){tab}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){tab}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rs}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cs}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){sum}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){rs}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){E}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){rs}<LSEP>[](symbol){cs}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){O}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){tab}<LEND>[](symbol){N}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){O}<LSEP>[](symbol){E}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){E}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](logical){NA}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){model}<LEND>[](symbol){errs}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){iter}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){iter}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){cols}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){=}<LSEP>[](symbol){cols}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){cols}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){old.par}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){kappa}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){op}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){odds}<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){k}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){vals}<LEND>[call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[](symbol){odds}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vals}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vals}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.100000}<LEND>[statement 11; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Iteration}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](str){to}<LSEP>[](symbol){iter}<LEND>[argument 2; litteral](str){Error}<LSEP>[](symbol){vals}<LSEP>[argument 4; litteral](real){1.000000}<LSEP>[argument 5; litteral](real){1.200000}<LSEP>[argument 6; litteral](str){l}<LEND>[argument 7; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cols}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 8; litteral](real){1.000000}<LEND>[statement 12; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){iter}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){indx}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){iter}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){5.000000}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){iter}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){indx}<LSEP>[litteral](real){3.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){iter}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){indx}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){iter}<LSEP>[argument 1; litteral](real){15.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){indx}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](real){7.000000}<LSEP>[argument 2; litteral](real){12.000000}<LEND>[statement 15; call](){}<LSEP>[](symbol){points}<LSEP>[](symbol){indx}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){indx}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 2; litteral](str){1}<LSEP>[argument 3; litteral](real){1.500000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){leg}<LSEP>[litteral](str){Train}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){tflag}<LEND>[true branch; call](){}<LSEP>[](symbol){title}<LSEP>[argument 0; litteral](str){Training And Testing Error}<LEND>[statement 1; call](){}<LSEP>[](symbol){matlines}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){iter}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){odds}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cols}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){odds}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; litteral](real){1.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){indx}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){odds}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){indx}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){odds}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){indx}<LEND>[argument 3; litteral](real){1.500000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){leg}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Train}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Test}<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){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){tflag}<LEND>[true branch; call](){}<LSEP>[](symbol){title}<LSEP>[argument 0; litteral](str){Training Error}<LEND>[statement 18; call](){}<LSEP>[](symbol){legend}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LEND>[](symbol){usr}<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){par}<LEND>[](symbol){usr}<LEND>[argument 1; litteral](real){4.000000}<LEND>[](symbol){leg}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[statement 19; control flow](){if}<LSEP>[](symbol){kappa}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){odds}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){odds}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[](symbol){odds}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[](symbol){odds}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){vals}<LEND>[call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[](symbol){odds}<LEND>[statement 3; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Iteration}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](str){to}<LSEP>[](symbol){iter}<LEND>[argument 2; litteral](str){Kappa Accuracy}<LSEP>[](symbol){vals}<LSEP>[argument 4; litteral](real){1.000000}<LSEP>[argument 5; litteral](real){1.200000}<LSEP>[argument 6; litteral](str){l}<LEND>[argument 7; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cols}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 8; litteral](real){1.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){iter}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){points}<LSEP>[](symbol){indx}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){indx}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 2; litteral](str){1}<LSEP>[argument 3; litteral](real){1.500000}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){leg}<LSEP>[litteral](str){Train}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){test}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){tflag}<LEND>[true branch; call](){}<LSEP>[](symbol){title}<LSEP>[argument 0; litteral](str){Training And Testing Kappas}<LEND>[statement 1; call](){}<LSEP>[](symbol){matlines}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){iter}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){odds}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cols}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){odds}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; litteral](real){1.000000}<LEND>[statement 2; call](){}<LSEP>[](symbol){points}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){indx}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){odds}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mat}<LSEP>[](symbol){indx}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){odds}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){indx}<LEND>[argument 3; litteral](real){1.500000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){leg}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Train}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Test}<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){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){tflag}<LEND>[true branch; call](){}<LSEP>[](symbol){title}<LSEP>[argument 0; litteral](str){Training Kappa}<LEND>[statement 8; call](){}<LSEP>[](symbol){legend}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LEND>[](symbol){usr}<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){par}<LEND>[](symbol){usr}<LEND>[argument 1; litteral](real){4.000000}<LEND>[](symbol){leg}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){k}<LEND>[statement 20; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){old.par} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){interpret.fmdsd}<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.fmdsd}<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){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){coor}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nscore}<LEND>[argument 1; litteral](logical){TRUE}<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; 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 19; 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 20; call](){}<LSEP>[](symbol){plotframes}<LSEP>[](symbol){matcoor}<LSEP>[](symbol){matmoments}<LSEP>[argument 2; litteral](real){10.000000}<LSEP>[](symbol){moment}<LEND>[statement 21; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Pearson correlations between s...}<LEND>[statement 22; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){pearson.mat}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 23; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Spearman correlations between ...}<LEND>[statement 24; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){spearman.mat}<LSEP>[argument 1; litteral](real){2.000000}<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>[](symbol){read_rrd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){filename}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){filename}<LEND>[call](){}<LSEP>[](symbol){normalizePath}<LSEP>[](symbol){filename}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){.smart_import_rrd}<LSEP>[](symbol){filename}<LEND>[statement 2; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){dat}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dat}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as_tibble}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dat}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dat}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){timestamp}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dat}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){timestamp}<LEND>[argument 1; litteral](str){1970-01-01}<LEND>[](symbol){dat}<LEND>[assign](){<-}<LSEP>[](symbol){describe_rrd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){filename}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){filename}<LEND>[call](){}<LSEP>[](symbol){normalizePath}<LSEP>[](symbol){filename}<LEND>[statement 1; call](){}<LSEP>[](symbol){.describe_rrd}<LSEP>[](symbol){filename}<LEND>[statement 2; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[assign](){<-}<LSEP>[](symbol){read_rra}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){filename}<LSEP>[](symbol){cf}<LSEP>[](symbol){step}<LSEP>[](symbol){n_steps}<LSEP>[](symbol){start}<LSEP>[](symbol){end}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){assert_that}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){cf}<LEND>[statement 1; call](){}<LSEP>[](symbol){assert_that}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){cf}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){AVERAGE}<LSEP>[argument 1; litteral](str){MIN}<LSEP>[argument 2; litteral](str){MAX}<LSEP>[argument 3; litteral](str){LAST}<LEND>[statement 2; call](){}<LSEP>[](symbol){assert_that}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.time}<LSEP>[](symbol){end}<LEND>[statement 3; call](){}<LSEP>[](symbol){assert_that}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){step}<LEND>[statement 4; call](){}<LSEP>[](symbol){assert_that}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){step}<LEND>[statement 5; 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){missing}<LSEP>[](symbol){start}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){start}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){n_steps}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){n_steps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){You must specify one of n_step...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){start}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){start}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){assert_that}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){n_steps}<LEND>[statement 1; call](){}<LSEP>[](symbol){assert_that}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){n_steps}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){end}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n_steps}<LSEP>[](symbol){step}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){n_steps}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){n_steps}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){assert_that}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.time}<LSEP>[](symbol){start}<LEND>[statement 1; call](){}<LSEP>[](symbol){assert_that}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){start}<LSEP>[](symbol){end}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){filename}<LEND>[call](){}<LSEP>[](symbol){normalizePath}<LSEP>[](symbol){filename}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){start}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){end}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){end}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){step}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){step}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){cf}<LEND>[call](){}<LSEP>[](symbol){match.arg}<LSEP>[](symbol){cf}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){AVERAGE}<LSEP>[argument 1; litteral](str){MIN}<LSEP>[argument 2; litteral](str){MAX}<LSEP>[argument 3; litteral](str){LAST}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){.import_rrd}<LSEP>[](symbol){filename}<LSEP>[](symbol){cf}<LSEP>[](symbol){start}<LSEP>[](symbol){end}<LSEP>[](symbol){step}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){as_tibble}<LSEP>[](symbol){dat}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dat}<LSEP>[argument 1; litteral](str){timestamp}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){dat}<LSEP>[argument 1; litteral](str){timestamp}<LEND>[argument 1; litteral](str){1970-01-01}<LEND>[](symbol){dat}<LEND>[assign](){<-}<LSEP>[](symbol){importRRD}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){filename}<LSEP>[](symbol){cf}<LSEP>[](symbol){start}<LSEP>[](symbol){end}<LSEP>[](symbol){step}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){cf}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){start}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){end}<LEND>[argument 3; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){step}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){.Deprecated}<LSEP>[argument 0; litteral](str){read_rra}<LEND>[statement 1; call](){}<LSEP>[](symbol){read_rra}<LSEP>[](symbol){filename}<LSEP>[](symbol){cf}<LSEP>[](symbol){start}<LSEP>[](symbol){end}<LSEP>[](symbol){step}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){.Deprecated}<LSEP>[argument 0; litteral](str){read_rrd}<LEND>[statement 1; call](){}<LSEP>[](symbol){read_rrd}<LSEP>[](symbol){filename}<LEND>[assign](){<-}<LSEP>[](symbol){is.POSIXct}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){inherits}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){POSIXct}<LEND>[assign](){<-}<LSEP>[](symbol){is.time}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.POSIXct}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){matddhellingerpar}<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){ddhellingerpar}<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>[assign](){<-}<LSEP>[](symbol){gl.edit.recode.pop}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){pop.recode}<LSEP>[](symbol){out.recode.file}<LSEP>[](symbol){outpath}<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){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){out.recode.file}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){out.recode.file}<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; 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){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: Population name...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){hold.nLoc}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){hold.nInd}<LEND>[call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){hold.nPop}<LEND>[call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<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){ Extracting current pop assig...}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){recode.table}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){new}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){edit}<LSEP>[](symbol){recode.table}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){new}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){new}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){pop.recode}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No output table specified, r...}<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){ Writing population recode ta...}<LSEP>[](symbol){pop.recode}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){write.table}<LSEP>[](symbol){new}<LSEP>[](symbol){pop.recode}<LSEP>[argument 2; litteral](str){,}<LSEP>[argument 3; litteral](logical){FALSE}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){pop.list}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){ntr}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){new}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 19; 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; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ntr}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pop.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){new}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pop.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){new}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](real){2.000000}<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){Assigning new population names\n}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){pop.list}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){delete}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pop}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){Delete}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){pop}<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 individuals/samples f...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.drop.pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Delete}<LSEP>[argument 1; litteral](str){delete}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 23; 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 24; 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 25; 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 recoded dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original No. of loci:}<LSEP>[](symbol){hold.nLoc}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ New No. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<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){ Original No. of individuals:}<LSEP>[](symbol){hold.nInd}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ New No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<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){ Original No. of populations:}<LSEP>[](symbol){hold.nPop}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ New No. of populations:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Note: Locus metrics not recalc...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Note: Resultant monomorphic lo...}<LEND>[statement 26; 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 27; 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 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>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){is.fdiscd.misclass}<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){fdiscd.misclass} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){bindRows}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){id}<LSEP>[](symbol){useNames}<LSEP>[](symbol){fill}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){inherits}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){data.frame}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){memClassHandler}<LEND>[call](){}<LSEP>[](symbol){MemClassHandler}<LEND>[statement 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){memClassHandler}<LSEP>[](symbol){memClass}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ret}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){rbindlist}<LEND>[](symbol){x}<LSEP>[](symbol){id}<LSEP>[](symbol){useNames}<LSEP>[](symbol){fill}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){memClassHandler}<LSEP>[](symbol){wrapClass}<LEND>[](symbol){ret}<LEND>[false branch; block](){}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.taglength}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){boxplot}<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){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; 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){!=}<LSEP>[](symbol){boxplot}<LSEP>[argument 1; litteral](str){standard}<LEND>[argument 1; 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){ Warning: method must be ei...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){boxplot}<LSEP>[litteral](str){adjusted}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){range}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Parameter 'range' m...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){range}<LSEP>[litteral](real){1.500000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){tags}<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){TrimmedSequence}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nchar.tags}<LEND>[call](){}<LSEP>[](symbol){nchar}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){tags}<LEND>[statement 12; 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 13; 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 14; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Miniumum tag length: }<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){nchar.tags}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Maximum tag length: }<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){nchar.tags}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 16; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Mean tag length: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){nchar.tags}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){retained}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 18; 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 19; assign](){<-}<LSEP>[](symbol){filtered}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 20; 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 21; assign](){<-}<LSEP>[](symbol){percentile}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 22; 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){20.000000}<LEND>[statement 1; assign](){<-}<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){i}<LSEP>[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){max}<LSEP>[](symbol){nchar.tags}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[](symbol){i}<LEND>[statement 3; 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){nchar.tags}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){nchar.tags}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[statement 4; 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){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){filtered}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[statement 6; 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 23; 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 24; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){df}<LEND>[statement 25; 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 26; 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 27; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){df}<LEND>[litteral](NULL){NULL}<LEND>[statement 28; 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 29; 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 30; 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){nchar.tags}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LSEP>[argument 4; litteral](str){Tag Length}<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){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Standard boxplot, no adjus...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outliers}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){nchar.tags}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Standard boxplot, no adjus...}<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>[](symbol){nchar.tags}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LSEP>[argument 4; litteral](str){Tag Length}<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){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Boxplot adjusted to accoun...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outliers}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){nchar.tags}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Boxplot adjusted to accoun...}<LEND>[statement 31; 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 32; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){nchar.tags}<LSEP>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](real){100.000000}<LSEP>[argument 3; litteral](NULL){NULL}<LEND>[statement 33; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<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>[false 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){ Outliers detected -- \n}<LEND>[statement 1; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){outliers}<LEND>[statement 34; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){op}<LEND>[statement 35; 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 36; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){whisker}<LSEP>[](symbol){out}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){outliers} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.discdd.misclass}<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; 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){\n\nmisallocation ratio: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){misclassed}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 9; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){alloc}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){...}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 11; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){classification}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){...}<LEND>[statement 12; 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 13; 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 14; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ddjensenpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){p1}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){p2}<LEND>[](symbol){k}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){p1 and p2 must have the same n...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){k}<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){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){p2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){p1 and p2 must be vectors with...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dinv}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dd1}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p1}<LSEP>[](symbol){dinv}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dd2}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p2}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){p2}<LSEP>[](symbol){dinv}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){dd1}<LSEP>[](symbol){dd2}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd1}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){p1}<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){as.numeric}<LSEP>[](symbol){p1}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dd2}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){p2}<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){as.numeric}<LSEP>[](symbol){p2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){dd1}<LSEP>[](symbol){dd2}<LEND>[argument 1; litteral](logical){TRUE} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){utils.recalc.maf}<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; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<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){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 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){@}<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: Dataset contains mo...}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){ calculations\n}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){maf}<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){ Locus metric maf does not ex...}<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){loc.metrics}<LEND>[](symbol){maf}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<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){ Recalculating FreqHoms and F...}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.freqhets}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.freqhomref}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.freqhomsnp}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<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){ Recalculating Minor Allele F...}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){alf}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){gl.alf}<LSEP>[](symbol){x}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 16; 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}<LEND>[](symbol){maf}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){alf}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){alf}<LEND>[](symbol){alf}<LEND>[statement 17; 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){maf}<LEND>[litteral](logical){TRUE}<LEND>[statement 18; 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 19; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){wdm}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ipool}<LSEP>[](symbol){id}<LSEP>[](symbol){constraints}<LSEP>[](symbol){first}<LSEP>[](symbol){refine}<LSEP>[](symbol){permutate}<LSEP>[](symbol){tieselect}<LSEP>[](symbol){verbose}<LSEP>[](symbol){aprioriadd}<LSEP>[](symbol){posthocadd}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){start_time}<LEND>[call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ID variable name does not matc...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[statement 3; 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){ipool}<LSEP>[](symbol){}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All items has to have unique IDs.}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){constraints_list}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){nI}<LSEP>[argument 1; litteral](str){nC}<LSEP>[argument 2; litteral](str){nameC}<LSEP>[argument 3; litteral](str){lowerC}<LSEP>[argument 4; litteral](str){upperC}<LSEP>[argument 5; litteral](str){wC}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){constraints_list}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){constraints}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Constraints object is missing ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints_list}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){constraints_list}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){constraints}<LEND>[argument 2; litteral](str){\nTry creating constraints obj...}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){\nTry creating constraints obj...}<LEND>[statement 6; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){constraints_list}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){nI}<LSEP>[argument 1; litteral](str){nC}<LSEP>[argument 2; litteral](str){lowerC}<LSEP>[argument 3; litteral](str){upperC}<LSEP>[argument 4; litteral](str){wC}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){numeric}<LSEP>[argument 1; litteral](str){integer}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Elements in constraint object ...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input item pool equals the...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input item pool must conta...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least 2 items have to be se...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){At least 1 test model constrai...}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Specified constraints variable...}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Number of lower bound constrai...}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Number of upper bound constrai...}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Number of weights has to match...}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){is.numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){All constraints variables must...}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraints}<LSEP>[argument 1; litteral](str){set_id}<LEND>[litteral](logical){NA}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Specified set ID name does not...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){by}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[](symbol){length}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Specified set ID accounts for ...}<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){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){first}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){first}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){minSt}<LSEP>[argument 1; litteral](str){maxSt}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){first}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Specified first item id was no...}<LEND>[statement 20; 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}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){first}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){first}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){minSt}<LSEP>[argument 1; litteral](str){maxSt}<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){%in%}<LSEP>[](symbol){first}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){first}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Specified first unit id was no...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){first}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){first}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){first}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data_structured}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){Count}<LEND>[litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){data_structured}<LEND>[call](){}<LSEP>[](symbol){aggregate}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){data_structured}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[](symbol){sum}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){data_structured}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data_structured}<LEND>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){Count}<LEND>[litteral](real){1.000000}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){data_structured}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){id}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){null_flag}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data_structured}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){sum}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){data_structured_null}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){null_flag}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){null_flag}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 29; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[body; 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; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[](symbol){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){Count}<LEND>[](symbol){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](logical){FALSE}<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){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tempest}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){selj}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pI}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LSEP>[](symbol){selj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cI}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LSEP>[](symbol){selj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){fI}<LEND>[call](){}<LSEP>[](symbol){sapply}<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){dim}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; 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; 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){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){Count}<LEND>[](symbol){x}<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){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LEND>[](symbol){selj}<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){data_structured}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){Count}<LEND>[](symbol){x}<LEND>[false 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){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<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){sit}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){Count}<LEND>[](symbol){x}<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){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LEND>[](symbol){selj}<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){data_structured}<LSEP>[](symbol){Count}<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){sit}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){Count}<LEND>[](symbol){x}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tempest}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempest}<LSEP>[](symbol){pI}<LSEP>[](symbol){cI}<LSEP>[](symbol){fI}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){tempest}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempest}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tempest}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){tempest}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempest}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest}<LSEP>[](symbol){q}<LEND>[argument 2; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[](symbol){j}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempest}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempest}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){j}<LSEP>[argument 2; litteral](str){_}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){tempout}<LSEP>[](symbol){tempest}<LEND>[statement 10; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tempest}<LEND>[statement 11; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Unit }<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){: Constraint }<LSEP>[](symbol){j}<LSEP>[argument 4; litteral](str){/}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[argument 6; litteral](str){ evaluated.}<LSEP>[argument 7; litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tempout}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){dL}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempout}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[argument 2; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tempout}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){dU}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempout}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){wdL}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){wdU}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[statement 7; 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; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){first}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<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){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){outid}<LSEP>[](symbol){selid}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[argument 1; litteral](str){*}<LSEP>[argument 2; litteral](str){}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){first}<LSEP>[argument 1; litteral](str){minSt}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){first}<LSEP>[argument 1; litteral](str){maxSt}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){first}<LSEP>[argument 1; litteral](str){minSt}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tieselect}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){first}<LSEP>[argument 1; litteral](str){maxSt}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tieselect}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){outid}<LSEP>[](symbol){selid}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[argument 1; litteral](str){*}<LSEP>[argument 2; litteral](str){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){sit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<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){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[](symbol){first}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<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){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[](symbol){first}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[](symbol){first}<LEND>[argument 1; litteral](str){*}<LSEP>[argument 2; litteral](str){}<LEND>[false branch; 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){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tieselect}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){outid}<LSEP>[](symbol){selid}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[argument 1; litteral](str){*}<LSEP>[argument 2; litteral](str){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){sit}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<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){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){estout}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){tempout}<LEND>[statement 9; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tempout}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Unit }<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){ (item }<LEND>[argument 3; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){Count}<LEND>[argument 4; litteral](str){/}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nI}<LEND>[argument 6; litteral](str){) selected.}<LSEP>[argument 7; litteral](str){}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){data_structured}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[](symbol){}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[statement 32; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){refine}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Test optimization:}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data_structured}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){null_flag}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[](symbol){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){left}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){Count}<LEND>[](symbol){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){Count}<LEND>[](symbol){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){sit}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){ips_r}<LSEP>[](symbol){ips}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){sit_r2}<LSEP>[](symbol){sit}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ips_r2}<LSEP>[](symbol){ips}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){estout_r}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){refout_r}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){stopref}<LSEP>[litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){rcnt}<LSEP>[litteral](real){0.000000}<LEND>[statement 13; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){stopref}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){rcnt}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ips_r}<LEND>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips_r}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](logical){FALSE}<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){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tempest}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips_r}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){selj}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ips_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pI}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){}<LSEP>[](symbol){selj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cI}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips_r}<LSEP>[](symbol){}<LSEP>[](symbol){selj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){tempest}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempest}<LSEP>[](symbol){pI}<LSEP>[](symbol){cI}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tempest}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempest}<LEND>[argument 1; call](){}<LSEP>[](symbol){rowSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tempest}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){tempest}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempest}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest}<LSEP>[](symbol){q}<LEND>[argument 2; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[](symbol){j}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempest}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempest}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){j}<LSEP>[argument 2; litteral](str){_}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){tempout}<LSEP>[](symbol){tempest}<LEND>[statement 9; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tempest}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Test constraint }<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](str){/}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[argument 4; litteral](str){ evaluated.}<LSEP>[argument 5; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tempout}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){dL}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempout}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[argument 2; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tempout}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){dU}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempout}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){wdL}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){wdU}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tieselect}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){St}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tempout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[argument 1; litteral](str){*}<LSEP>[argument 2; litteral](str){}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){estout_r}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){estout_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){tempout}<LEND>[statement 7; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tempout}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){sit_r}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){sit_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ips_r}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tempout_r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](logical){FALSE}<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){constraints}<LSEP>[](symbol){nC}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tempest_r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){selj}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){sit_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pI}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){}<LSEP>[](symbol){selj}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cI}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){}<LSEP>[](symbol){selj}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){tempest_r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempest_r}<LSEP>[](symbol){pI}<LSEP>[](symbol){cI}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tempest_r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempest_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest_r}<LSEP>[](symbol){pI}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest_r}<LSEP>[](symbol){cI}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){tempest_r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempest_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest_r}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest_r}<LSEP>[](symbol){q}<LEND>[argument 2; litteral](real){0.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest_r}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempest_r}<LSEP>[](symbol){q}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[](symbol){j}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempest_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempest_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){j}<LSEP>[argument 2; litteral](str){_}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){tempout_r}<LEND>[call](){}<LSEP>[](symbol){merge}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){tempest_r}<LEND>[statement 9; call](){}<LSEP>[](symbol){rm}<LSEP>[](symbol){tempest_r}<LEND>[statement 10; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Candidate }<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){rcnt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){ search: Constraint }<LSEP>[](symbol){j}<LSEP>[argument 4; litteral](str){/}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nC}<LEND>[argument 6; litteral](str){ evaluated.}<LSEP>[argument 7; litteral](str){}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){tempout_r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){dL}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempout_r}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[argument 2; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){dU}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tempout_r}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){wC}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tempout_r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){wdL}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){wdU}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){tieselect}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid_r}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){selid_r}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){St}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){St}<LEND>[argument 1; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){St}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){tempout_r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){tempout_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tempout_r}<LSEP>[](symbol){id}<LEND>[](symbol){selid_r}<LEND>[argument 1; litteral](str){*}<LSEP>[argument 2; litteral](str){}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){refout_r}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){refout_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){tempout_r}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){selid_r}<LSEP>[](symbol){selid}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sit}<LSEP>[](symbol){sit_r2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ips}<LSEP>[](symbol){ips_r2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){stopref}<LSEP>[litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){rcnt}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){rcnt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Candidate}<LSEP>[](symbol){rcnt}<LSEP>[argument 2; litteral](str){was removed.}<LSEP>[argument 3; litteral](str){ }<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){$}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){id}<LEND>[](symbol){selid_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){Count}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ips_r2}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){ips_r2}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit_r}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){id}<LEND>[](symbol){selid_r}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ips_r2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips_r2}<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){$}<LSEP>[](symbol){ips_r2}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ips_r}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips_r}<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){$}<LSEP>[](symbol){ips_r}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sit_r}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit_r}<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){$}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){id}<LEND>[](symbol){selid_r}<LEND>[](symbol){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){sit_r2}<LSEP>[](symbol){sit_r}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rcnt}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){rcnt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Candidate}<LSEP>[](symbol){rcnt}<LSEP>[argument 2; litteral](str){was used for refinement.}<LSEP>[argument 3; litteral](str){ }<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sit_r}<LSEP>[](symbol){sit}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ips_r}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips_r}<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){$}<LSEP>[](symbol){ips_r}<LSEP>[](symbol){id}<LEND>[](symbol){selid}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rcnt}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){rcnt}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Candidate}<LSEP>[](symbol){rcnt}<LSEP>[argument 2; litteral](str){was removed.}<LSEP>[argument 3; litteral](str){ }<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){ips}<LSEP>[](symbol){left}<LEND>[statement 15; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){rcnt}<LSEP>[argument 1; litteral](str){candidates in total were consi...}<LSEP>[argument 2; litteral](str){ }<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){ips}<LSEP>[](symbol){data_structured_null}<LEND>[statement 34; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){outsetid}<LSEP>[](symbol){outid}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){sit_sets}<LSEP>[](symbol){sit}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ips_sets}<LSEP>[](symbol){ips}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){outid}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){outsetid}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[](symbol){id}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_sets}<LSEP>[](symbol){id}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){id}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ipool}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_sets}<LSEP>[](symbol){id}<LEND>[argument 2; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[argument 1; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){ipool}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){sit}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){id}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sit}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){sit}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ips}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){ips}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 35; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){evalout}<LEND>[argument 1; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Constraints}<LSEP>[argument 1; litteral](str){Constraints}<LSEP>[argument 2; litteral](str){Included}<LSEP>[argument 3; litteral](str){Included}<LSEP>[argument 4; litteral](str){Excluded}<LSEP>[argument 5; litteral](str){Excluded}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Lower}<LSEP>[argument 1; litteral](str){Upper}<LSEP>[argument 2; litteral](str){Sum}<LSEP>[argument 3; litteral](str){Average}<LSEP>[argument 4; litteral](str){Sum}<LSEP>[argument 5; litteral](str){Average}<LEND>[](symbol){evalout}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){lowerC}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){upperC}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){nameC}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){evalout}<LEND>[argument 1; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sit}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){colSums}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){colMeans}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ips}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){evalout}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Constraints}<LSEP>[argument 1; litteral](str){Constraints}<LSEP>[argument 2; litteral](str){Included}<LSEP>[argument 3; litteral](str){Included}<LSEP>[argument 4; litteral](str){Excluded}<LSEP>[argument 5; litteral](str){Excluded}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Lower}<LSEP>[argument 1; litteral](str){Upper}<LSEP>[argument 2; litteral](str){Sum}<LSEP>[argument 3; litteral](str){Average}<LSEP>[argument 4; litteral](str){Sum}<LSEP>[argument 5; litteral](str){Average}<LEND>[](symbol){evalout}<LEND>[statement 36; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){estout}<LEND>[statement 37; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){refine}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){estout_r}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){estout_r}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){refout_r}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){refout_r}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){end_time}<LEND>[call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 39; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){refine}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){estout}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evalout}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){estout_r}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){refout_r}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips}<LEND>[argument 5; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit}<LEND>[argument 6; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){outid}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){estout}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evalout}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){estout_r}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){refout_r}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips}<LEND>[argument 5; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips_sets}<LEND>[argument 6; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit_sets}<LEND>[argument 8; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){outid}<LEND>[argument 9; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){outsetid}<LEND>[argument 10; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit}<LSEP>[](symbol){id}<LEND>[argument 11; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sit_sets}<LSEP>[](symbol){id}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){estout}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evalout}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){outid}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){estout}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){estout}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){evalout}<LEND>[argument 2; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){ips_sets}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit}<LEND>[argument 5; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){sit_sets}<LEND>[argument 6; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){outid}<LEND>[argument 7; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){outsetid}<LEND>[statement 40; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){difftime}<LSEP>[](symbol){end_time}<LSEP>[](symbol){start_time}<LEND>[statement 1; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){ATA terminated successfully.}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){aggregated}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){constraints}<LSEP>[](symbol){set_id}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){refined}<LEND>[](symbol){refine}<LEND>[statement 43; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){permutated}<LEND>[](symbol){permutate}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){runtime}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){end_time}<LSEP>[](symbol){start_time}<LEND>[statement 45; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){method}<LEND>[litteral](str){wdm}<LEND>[statement 46; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){type}<LEND>[litteral](str){deviation}<LEND>[statement 47; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){estout}<LSEP>[argument 1; litteral](str){class}<LEND>[litteral](str){ata}<LEND>[statement 48; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){estout} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.ibd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){Dgen}<LSEP>[](symbol){Dgeo}<LSEP>[](symbol){projected}<LSEP>[](symbol){permutations}<LSEP>[](symbol){plot}<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){dismo}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Package dismo needed for this ...}<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){Dgen}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){Dgeo}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Analysis performed on provided...}<LEND>[statement 1; 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){Standard analysis performed on...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Cannot find coordinates for ea...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[argument 1; litteral](str){long}<LEND>[](symbol){T}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; 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){latlong}<LEND>[](symbol){lon}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[](symbol){long}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){projected}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){xy}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dismo}<LSEP>[](symbol){Mercator}<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){latlong}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Coordinates transformed to Mer...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){xy}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Coordinates not transformed. D...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){pop.xy}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){xy}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){a}<LEND>[body; call](){}<LSEP>[](symbol){tapply}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){mean}<LSEP>[](symbol){T}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Dgeo}<LEND>[call](){}<LSEP>[](symbol){dist}<LSEP>[](symbol){pop.xy}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Dgeo}<LEND>[call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){Dgeo}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){Dgen}<LEND>[call](){}<LSEP>[](symbol){as.dist}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){StAMPP}<LSEP>[](symbol){stamppFst}<LEND>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){Dgen}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){Dgen}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){Dgen}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){ordering}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){Dgen}<LEND>[call](){}<LSEP>[](symbol){as.dist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){Dgen}<LEND>[](symbol){ordering}<LSEP>[](symbol){ordering}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){Dgeo}<LEND>[call](){}<LSEP>[](symbol){as.dist}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){Dgeo}<LEND>[](symbol){ordering}<LSEP>[](symbol){ordering}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){miss}<LSEP>[litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Dgen}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.infinite}<LSEP>[](symbol){Dgen}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){miss}<LSEP>[litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){There are missing values in th...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){Dgeo}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.infinite}<LSEP>[](symbol){Dgeo}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){miss}<LSEP>[litteral](logical){TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){There are missing values in th...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){manteltest}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){vegan}<LSEP>[](symbol){mantel}<LEND>[](symbol){Dgen}<LSEP>[](symbol){Dgeo}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](real){999.000000}<LEND>[statement 6; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){manteltest}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){miss}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dens}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){MASS}<LSEP>[](symbol){kde2d}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Dgeo}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Dgen}<LEND>[argument 2; litteral](real){300.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){myPal}<LEND>[call](){}<LSEP>[](symbol){colorRampPalette}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){white}<LSEP>[argument 1; litteral](str){blue}<LSEP>[argument 2; litteral](str){gold}<LSEP>[argument 3; litteral](str){orange}<LSEP>[argument 4; litteral](str){red}<LEND>[statement 2; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){Dgeo}<LSEP>[](symbol){Dgen}<LSEP>[argument 2; litteral](real){20.000000}<LSEP>[argument 3; litteral](real){0.800000}<LEND>[statement 3; call](){}<LSEP>[](symbol){image}<LSEP>[](symbol){dens}<LEND>[argument 1; call](){}<LSEP>[](symbol){transp}<LEND>[argument 0; call](){}<LSEP>[](symbol){myPal}<LSEP>[argument 0; litteral](real){300.000000}<LEND>[argument 1; litteral](real){0.700000}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; call](){}<LSEP>[](symbol){points}<LSEP>[](symbol){Dgeo}<LSEP>[](symbol){Dgen}<LSEP>[argument 2; litteral](real){20.000000}<LSEP>[argument 3; litteral](real){0.800000}<LEND>[statement 5; call](){}<LSEP>[](symbol){abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Dgen}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Dgeo}<LEND>[statement 6; call](){}<LSEP>[](symbol){title}<LSEP>[argument 0; litteral](str){Isolation by distance}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){Dgeo}<LSEP>[](symbol){Dgen}<LEND>[statement 1; call](){}<LSEP>[](symbol){abline}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Dgen}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){Dgeo}<LEND>[statement 2; call](){}<LSEP>[](symbol){title}<LSEP>[argument 0; litteral](str){Isolation by distance}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){Dgen}<LSEP>[](symbol){Dgeo}<LSEP>[](symbol){manteltest}<LEND>[statement 9; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){ddchisqsympar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){p1}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){p2}<LEND>[](symbol){k}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){p1 and p2 must have the same n...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){k}<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){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){p2}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){p1 and p2 must be vectors with...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){dd}<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){p1}<LSEP>[](symbol){p2}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dd}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){dd}<LEND>[litteral](logical){NA}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){dd}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd}<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){as.numeric}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){p2}<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){as.numeric}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){p2}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dd}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){dd}<LEND>[litteral](logical){NA}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){dd}<LSEP>[argument 1; litteral](logical){TRUE} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_ticket_links}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ticket_id}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){ticket_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){ticket_id}<LEND>[statement 1; 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){links}<LSEP>[argument 3; litteral](str){show}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[](symbol){rt_GET}<LSEP>[](symbol){url}<LSEP>[](symbol){...}<LEND>[statement 3; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){Ticket \\d+ does not exist}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}<LEND>[](symbol){response} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){newColumnNames}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){dataframe}<LSEP>[](symbol){variables}<LSEP>[](symbol){separator}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nn}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){variables}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dataframe}<LEND>[argument 2; litteral](str){Kurz}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){notna}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){nn}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nn}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dataframe}<LEND>[](symbol){separator}<LSEP>[](symbol){nn}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dataframe}<LEND>[](symbol){notna}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){nn}<LSEP>[](symbol){notna}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){dataframe} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.keep.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>[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){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){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Population assign...}<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){cat}<LSEP>[argument 0; litteral](str){Warning: individual metric ass...}<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 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; 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 ...}<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){ Retaining only 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){%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){%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){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){utils.prob.hwe}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){obs_hets}<LSEP>[](symbol){obs_hom1}<LSEP>[](symbol){obs_hom2}<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){obs_hom1}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){obs_hom2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){obs_hets}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<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){obs_hets}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){obs_hom1}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){obs_hom2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){obs_hom1}<LSEP>[](symbol){obs_hom2}<LEND>[](symbol){obs_hets}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){obs_homr}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){obs_hom1}<LSEP>[](symbol){obs_hom2}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){obs_homc}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){obs_hom1}<LSEP>[](symbol){obs_hom2}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rare}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){obs_homr}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){obs_hets}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){probs}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){rare}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mid}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){rare}<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){N}<LEND>[](symbol){rare}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){N}<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){mid}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){rare}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){mid}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mid}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mid}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){mysum}<LSEP>[litteral](real){1.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){curr_hets}<LSEP>[](symbol){mid}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){curr_homr}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){rare}<LSEP>[](symbol){mid}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){curr_homc}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[](symbol){curr_hets}<LEND>[](symbol){curr_homr}<LEND>[statement 14; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){curr_hets}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){curr_hets}<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){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_hets}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){curr_hets}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){curr_hets}<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){*}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_homr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_homc}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mysum}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mysum}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){curr_hets}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){curr_hets}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){curr_hets}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){curr_homr}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_homr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){curr_homc}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_homc}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){curr_hets}<LSEP>[](symbol){mid}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){curr_homr}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){rare}<LSEP>[](symbol){mid}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){curr_homc}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){N}<LSEP>[](symbol){curr_hets}<LEND>[](symbol){curr_homr}<LEND>[statement 18; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){curr_hets}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){rare}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_hets}<LSEP>[argument 1; litteral](real){3.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){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_hets}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){4.000000}<LEND>[](symbol){curr_homr}<LEND>[](symbol){curr_homc}<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){curr_hets}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_hets}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mysum}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){mysum}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_hets}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){curr_hets}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){curr_hets}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){curr_homr}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){curr_homr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){curr_homc}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){curr_homc}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){obs_hets}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){probs}<LSEP>[](symbol){target}<LEND>[](symbol){mysum}<LEND>[statement 21; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){p} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){addRepo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){account}<LSEP>[](symbol){alturl}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){getOption}<LSEP>[argument 0; litteral](str){repos}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){account}<LEND>[argument 1; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){alturl}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){acct}<LSEP>[](symbol){account}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){r}<LSEP>[](symbol){acct}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){https://}<LSEP>[](symbol){acct}<LSEP>[argument 2; litteral](str){.github.io/drat/}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){account}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){alturl}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){.Platform}<LSEP>[](symbol){OS.type}<LEND>[argument 1; litteral](str){windows}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){ }<LSEP>[](symbol){alturl}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The path '}<LSEP>[](symbol){alturl}<LSEP>[argument 2; litteral](str){' contains spaces which is not...}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){r}<LSEP>[](symbol){account}<LEND>[](symbol){alturl}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Please provide either 'account...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; call](){}<LSEP>[](symbol){options}<LSEP>[](symbol){r}<LEND>[statement 3; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){r}<LEND>[assign](){<-}<LSEP>[](symbol){add}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){addRepo}<LSEP>[](symbol){...} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.alf}<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){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){alf}<LEND>[](symbol){alf}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_url}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LSEP>[](symbol){query_params}<LSEP>[](symbol){base_url}<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){is.character}<LSEP>[](symbol){base_url}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){base_url}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Invalid RT base URL: }<LSEP>[argument 1; litteral](str){See ?rt for information on how...}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){\\/$}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){base_url}<LEND>[argument 1; litteral](str){REST}<LSEP>[argument 2; litteral](str){1.0}<LEND>[argument 3; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){vapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){...}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){trimws}<LEND>[argument 0; call](){}<LSEP>[](symbol){format}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[argument 2; litteral](str){}<LEND>[argument 1; litteral](str){/}<LEND>[argument 4; litteral](str){/}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){query_params_clean}<LEND>[call](){}<LSEP>[](symbol){compact}<LSEP>[](symbol){query_params}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){query_params_string}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){query_params_clean}<LEND>[argument 1; call](){}<LSEP>[](symbol){vapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){vapply}<LSEP>[](symbol){query_params_clean}<LSEP>[](symbol){as.character}<LSEP>[argument 2; litteral](str){}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){URLencode}<LEND>[argument 2; litteral](str){}<LSEP>[argument 3; litteral](logical){TRUE}<LEND>[argument 2; litteral](str){=}<LEND>[argument 1; litteral](str){&}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){query_params_string}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){url}<LSEP>[](symbol){query_params_string}<LSEP>[argument 2; litteral](str){?}<LEND>[](symbol){url}<LEND>[assign](){<-}<LSEP>[](symbol){compact}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){l}<LEND>[body; call](){}<LSEP>[](symbol){Filter}<LEND>[argument 0; call](){}<LSEP>[](symbol){Negate}<LSEP>[](symbol){is.null}<LEND>[](symbol){l}<LEND>[assign](){<-}<LSEP>[](symbol){construct_newline_pairs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){params}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){params_clean}<LEND>[call](){}<LSEP>[](symbol){compact}<LSEP>[](symbol){params}<LEND>[statement 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){params_clean}<LEND>[](symbol){params_clean}<LSEP>[argument 2; litteral](str){: }<LSEP>[argument 3; litteral](str){\n}<LEND>[assign](){<-}<LSEP>[](symbol){rt_GET}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){url}<LSEP>[](symbol){raw}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){GET}<LEND>[](symbol){url}<LSEP>[](symbol){...}<LEND>[argument 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){user_agent}<LEND>[argument 0; call](){}<LSEP>[](symbol){rt_user_agent}<LEND>[statement 1; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){raw}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){response}<LEND>[statement 3; call](){}<LSEP>[](symbol){rt_parse_response}<LSEP>[](symbol){response}<LEND>[assign](){<-}<LSEP>[](symbol){rt_POST}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){url}<LSEP>[](symbol){raw}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){POST}<LEND>[](symbol){url}<LSEP>[](symbol){...}<LEND>[argument 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){httr}<LSEP>[](symbol){user_agent}<LEND>[argument 0; call](){}<LSEP>[](symbol){rt_user_agent}<LEND>[statement 1; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){raw}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){response}<LEND>[statement 3; call](){}<LSEP>[](symbol){rt_parse_response}<LSEP>[](symbol){response}<LEND>[assign](){<-}<LSEP>[](symbol){print.rt_api}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){<RT }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){path}<LEND>[argument 2; litteral](str){>\n}<LSEP>[argument 3; litteral](str){}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Status: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){status}<LEND>[argument 2; litteral](str){\n}<LSEP>[argument 3; litteral](str){}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Message: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){message}<LEND>[argument 2; litteral](str){\n}<LSEP>[argument 3; litteral](str){}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){head}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){body}<LEND>[argument 1; litteral](str){\n}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){...}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){parse_rt_properties}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){body}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lines}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LSEP>[](symbol){body}<LSEP>[argument 1; litteral](str){\\n}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){lines}<LEND>[call](){}<LSEP>[](symbol){Filter}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){line}<LEND>[body; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){line}<LEND>[argument 1; litteral](real){0.000000}<LEND>[](symbol){lines}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){properties}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){last_key}<LSEP>[litteral](logical){NA}<LEND>[statement 4; control flow](){for}<LSEP>[](symbol){line}<LSEP>[](symbol){lines}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){^ }<LSEP>[](symbol){line}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){parts}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stringr}<LSEP>[](symbol){str_split}<LEND>[](symbol){line}<LSEP>[argument 1; litteral](str){(: ?)}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){parts}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){properties}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){properties}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){parts}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){properties}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){parts}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){parts}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){last_key}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){parts}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){properties}<LSEP>[](symbol){last_key}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){properties}<LSEP>[](symbol){last_key}<LEND>[](symbol){line}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){properties}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){properties}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){property}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){property}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; litteral](logical){NA}<LEND>[false branch; block](){}<LSEP>[](symbol){property}<LEND>[](symbol){properties}<LEND>[assign](){<-}<LSEP>[](symbol){rt_version_string}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){path}<LEND>[call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){DESCRIPTION}<LSEP>[argument 1; litteral](str){rt}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){path}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){description}<LEND>[call](){}<LSEP>[](symbol){readLines}<LSEP>[](symbol){path}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){Version}<LSEP>[](symbol){description}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){index}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){version_string}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){Version: }<LSEP>[argument 1; litteral](str){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){description}<LSEP>[](symbol){index}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){version_string}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){}<LEND>[](symbol){version_string}<LEND>[assign](){<-}<LSEP>[](symbol){rt_user_agent}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){https://github.com/nceas/rt (v}<LEND>[argument 1; call](){}<LSEP>[](symbol){rt_version_string}<LEND>[argument 2; litteral](str){)} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){utils.pa.ind}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){unknown}<LSEP>[](symbol){nmin}<LSEP>[](symbol){threshold}<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; assign](){<-}<LSEP>[](symbol){test}<LEND>[call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){unknown}<LEND>[argument 1; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LSEP>[](symbol){test}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: nominated focal i...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){nmin}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: the minimum size ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nmin}<LSEP>[litteral](real){10.000000}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: the threshold for...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){threshold}<LSEP>[litteral](real){0.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){hard.min}<LSEP>[litteral](real){10.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){vec}<LEND>[call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vec}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[](symbol){unknown}<LEND>[litteral](str){unknown}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){vec}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){unknowns}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){unknown}<LEND>[](symbol){}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){knowns}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){unknown}<LEND>[](symbol){}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){pop.keep}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[](symbol){nmin}<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){ Retaining}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pop.keep}<LEND>[argument 2; litteral](str){populations with sample size g...}<LSEP>[](symbol){nmin}<LSEP>[argument 4; litteral](str){:}<LSEP>[](symbol){pop.keep}<LSEP>[argument 6; litteral](str){\n\n}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){pop.toss}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[](symbol){nmin}<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){ Discarding}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pop.toss}<LEND>[argument 2; litteral](str){populations with sample size l...}<LSEP>[](symbol){nmin}<LSEP>[argument 4; litteral](str){:}<LSEP>[](symbol){pop.toss}<LSEP>[argument 6; litteral](str){\n\n}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){knowns}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){knowns}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[](symbol){pop.keep}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){pop.warn}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[](symbol){hard.min}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){pop.warn}<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){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Some retained popul...}<LSEP>[](symbol){hard.min}<LSEP>[argument 2; litteral](str){:}<LSEP>[](symbol){pop.warn}<LSEP>[argument 4; litteral](str){\n}<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){ Substantial risk of privat...}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){unknowns}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){n}<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){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Fatal Error: Number of unkno...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Terminating execution}<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}<LSEP>[argument 0; litteral](str){ Assigning}<LSEP>[](symbol){n}<LSEP>[argument 2; litteral](str){unknown individual(s) to}<LSEP>[](symbol){N}<LSEP>[argument 4; litteral](str){target populations\n}<LEND>[statement 28; 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){unknown.ind}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){unknowns}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){count}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){N}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){count.NA}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){N}<LEND>[statement 3; 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>[](symbol){known.pop}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){knowns}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[](symbol){j}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){k}<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){unknown.ind}<LSEP>[](symbol){k}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count.NA}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count.NA}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){unknown.ind}<LSEP>[](symbol){k}<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){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known.pop}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){unknown.ind}<LSEP>[](symbol){k}<LEND>[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){known.pop}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){unknown.ind}<LSEP>[](symbol){k}<LEND>[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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known.pop}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](logical){TRUE}<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){[}<LSEP>[](symbol){known.pop}<LSEP>[](symbol){}<LSEP>[](symbol){k}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){count}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; 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){ Unknown individual:}<LSEP>[](symbol){unknown}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Total number of SNP loci: }<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Table showing number of loci...}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){m}<LEND>[range; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){count}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ }<LSEP>[](symbol){m}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){count}<LSEP>[](symbol){m}<LEND>[argument 3; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 29; 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){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){knowns}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){count}<LSEP>[](symbol){threshold}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){unknown}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){gl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){index}<LSEP>[](symbol){}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){gl}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){gl}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 32; 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){threshold}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Data retained for the unknow...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gl}<LEND>[argument 2; litteral](str){\n\n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Data retained for the unknow...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){or less loci with private alle...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gl}<LEND>[argument 2; litteral](str){\n\n}<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}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 34; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){gl} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){DCdensity}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){runvar}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){bin}<LSEP>[](symbol){bw}<LSEP>[](symbol){verbose}<LSEP>[](symbol){plot}<LSEP>[](symbol){ext.out}<LSEP>[](symbol){htest}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){runvar}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){runvar}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){runvar}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rn}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){runvar}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rsd}<LEND>[call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){runvar}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){rmin}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){runvar}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){rmax}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){runvar}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[](symbol){cutpoint}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Assuming cutpoint of zero.\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cutpoint}<LSEP>[litteral](real){0.000000}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){rmin}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){rmax}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Cutpoint must lie within range...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){bin}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bin}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){rsd}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){rn}<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 1; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Using calculated bin size: }<LEND>[argument 1; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){%.3f}<LSEP>[](symbol){bin}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){rmin}<LSEP>[](symbol){cutpoint}<LEND>[](symbol){bin}<LEND>[](symbol){bin}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bin}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){cutpoint}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){rmax}<LSEP>[](symbol){cutpoint}<LEND>[](symbol){bin}<LEND>[](symbol){bin}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bin}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){cutpoint}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){lc}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bin}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){rc}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bin}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){rmax}<LSEP>[](symbol){rmin}<LEND>[](symbol){bin}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){binnum}<LEND>[call](){}<LSEP>[](symbol){round}<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){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){runvar}<LSEP>[](symbol){cutpoint}<LEND>[](symbol){bin}<LEND>[](symbol){bin}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bin}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){cutpoint}<LEND>[](symbol){l}<LEND>[](symbol){bin}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){cellval}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){j}<LEND>[statement 15; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){rn}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cnum}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){binnum}<LSEP>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellval}<LSEP>[](symbol){cnum}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellval}<LSEP>[](symbol){cnum}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){cellval}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){cellval}<LSEP>[](symbol){rn}<LEND>[](symbol){bin}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){cellmp}<LEND>[call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){cellmp}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<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){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cellmp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){bin}<LEND>[](symbol){cutpoint}<LEND>[](symbol){bin}<LEND>[](symbol){bin}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bin}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){cutpoint}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){bw}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){leftofc}<LEND>[call](){}<LSEP>[](symbol){round}<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){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){lc}<LSEP>[](symbol){cutpoint}<LEND>[](symbol){bin}<LEND>[](symbol){bin}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bin}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){cutpoint}<LEND>[](symbol){l}<LEND>[](symbol){bin}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){rightofc}<LEND>[call](){}<LSEP>[](symbol){round}<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){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){rc}<LSEP>[](symbol){cutpoint}<LEND>[](symbol){bin}<LEND>[](symbol){bin}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bin}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){cutpoint}<LEND>[](symbol){l}<LEND>[](symbol){bin}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){rightofc}<LSEP>[](symbol){leftofc}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error occurred in bandwidth ca...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){cellmpleft}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){leftofc}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){cellmpright}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){rightofc}<LSEP>[](symbol){j}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){P.lm}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){cellval}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){cellmp}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){cutpoint}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mse4}<LEND>[call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){P.lm}<LEND>[](symbol){sigma}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){lcoef}<LEND>[call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){P.lm}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){fppleft}<LEND>[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){lcoef}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lcoef}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[](symbol){cellmpleft}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){12.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lcoef}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[](symbol){cellmpleft}<LEND>[](symbol){cellmpleft}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){hleft}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.348000}<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){mse4}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){fppleft}<LSEP>[](symbol){fppleft}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){P.lm}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){cellval}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){cellmp}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){cutpoint}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){mse4}<LEND>[call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){summary}<LSEP>[](symbol){P.lm}<LEND>[](symbol){sigma}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){rcoef}<LEND>[call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){P.lm}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){fppright}<LEND>[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){rcoef}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rcoef}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[](symbol){cellmpright}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){12.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rcoef}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[](symbol){cellmpright}<LEND>[](symbol){cellmpright}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){hright}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.348000}<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){mse4}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){r}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){fppright}<LSEP>[](symbol){fppright}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 15; assign](){=}<LSEP>[](symbol){bw}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){hleft}<LSEP>[](symbol){hright}<LEND>[statement 16; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Using calculated bandwidth: }<LEND>[argument 1; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){%.3f}<LSEP>[](symbol){bw}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 20; control flow](){if}<LSEP>[condition; 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){runvar}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){runvar}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; litteral](real){0.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){runvar}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){runvar}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Insufficient data within the b...}<LEND>[statement 21; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){d.l}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellval}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){cutpoint}<LEND>[argument 2; litteral](logical){NA}<LSEP>[argument 3; litteral](logical){NA}<LSEP>[argument 4; litteral](logical){NA}<LSEP>[argument 5; litteral](logical){NA}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pmin}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){rsd}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){pmax}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){rsd}<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}<LSEP>[](symbol){d.l}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d.l}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){cellmp}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){kernelwts}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){dist}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){bw}<LSEP>[argument 3; litteral](str){triangular}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){newd}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){cellval}<LSEP>[](symbol){dist}<LEND>[](symbol){w}<LSEP>[](symbol){d.l}<LEND>[argument 1; litteral](str){confidence}<LSEP>[](symbol){newd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){est}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){lwr}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){upr}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){d.r}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellval}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){cutpoint}<LEND>[argument 2; litteral](logical){NA}<LSEP>[argument 3; litteral](logical){NA}<LSEP>[argument 4; litteral](logical){NA}<LSEP>[argument 5; litteral](logical){NA}<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){nrow}<LSEP>[](symbol){d.r}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){d.r}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){cellmp}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){kernelwts}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){dist}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[](symbol){bw}<LSEP>[argument 3; litteral](str){triangular}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){newd}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){pred}<LEND>[call](){}<LSEP>[](symbol){predict}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){cellval}<LSEP>[](symbol){dist}<LEND>[](symbol){w}<LSEP>[](symbol){d.r}<LEND>[argument 1; litteral](str){confidence}<LSEP>[](symbol){newd}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){est}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){lwr}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){upr}<LEND>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pred}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 6; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){est}<LEND>[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>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){pmin}<LSEP>[](symbol){pmax}<LEND>[argument 7; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellval}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){pmax}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){pmin}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cellval}<LEND>[argument 1; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){pmax}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){pmin}<LEND>[argument 8; litteral](logical){NA}<LSEP>[argument 9; litteral](logical){NA}<LSEP>[argument 10; litteral](logical){NA}<LEND>[statement 7; call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){lwr}<LEND>[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 8; call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.l}<LSEP>[](symbol){upr}<LEND>[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 9; call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){est}<LEND>[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 10; call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){lwr}<LEND>[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 11; call](){}<LSEP>[](symbol){lines}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){cellmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d.r}<LSEP>[](symbol){upr}<LEND>[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 12; call](){}<LSEP>[](symbol){points}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){cellval}<LSEP>[argument 2; litteral](str){p}<LSEP>[argument 3; litteral](real){20.000000}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){cmp}<LSEP>[](symbol){cellmp}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){cval}<LSEP>[](symbol){cellval}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){padzeros}<LEND>[call](){}<LSEP>[](symbol){ceiling}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){bw}<LSEP>[](symbol){bin}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){jp}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){padzeros}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){padzeros}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){cval}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){padzeros}<LEND>[](symbol){cellval}<LEND>[argument 2; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){padzeros}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cmp}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){l}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){padzeros}<LSEP>[](symbol){bin}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){l}<LSEP>[](symbol){bin}<LEND>[](symbol){bin}<LEND>[](symbol){cellmp}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){r}<LSEP>[](symbol){bin}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){padzeros}<LSEP>[](symbol){bin}<LEND>[](symbol){bin}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){cmp}<LSEP>[](symbol){cutpoint}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){w}<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){dist}<LSEP>[](symbol){bw}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){w}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){cmp}<LSEP>[](symbol){cutpoint}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[](symbol){jp}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){fhatl}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){cval}<LSEP>[](symbol){dist}<LEND>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){w}<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){dist}<LSEP>[](symbol){bw}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){w}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){cmp}<LSEP>[](symbol){cutpoint}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[](symbol){jp}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){fhatr}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){predict}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){cval}<LSEP>[](symbol){dist}<LEND>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){thetahat}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){fhatr}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){fhatl}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){sethetahat}<LEND>[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){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){rn}<LSEP>[](symbol){bw}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){24.000000}<LSEP>[argument 1; litteral](real){5.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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){fhatr}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){fhatl}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){thetahat}<LSEP>[](symbol){sethetahat}<LEND>[statement 39; assign](){<-}<LSEP>[](symbol){p}<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}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 40; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Log difference in heights is }<LEND>[argument 1; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){%.3f}<LSEP>[](symbol){thetahat}<LEND>[argument 2; litteral](str){ with SE }<LEND>[argument 3; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){%.3f}<LSEP>[](symbol){sethetahat}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ this gives a z-stat of }<LEND>[argument 1; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){%.3f}<LSEP>[](symbol){z}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ and a p value of }<LEND>[argument 1; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){%.3f}<LSEP>[](symbol){p}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 41; control flow](){if}<LSEP>[](symbol){ext.out}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){thetahat}<LSEP>[](symbol){sethetahat}<LSEP>[](symbol){z}<LSEP>[](symbol){p}<LSEP>[](symbol){bin}<LSEP>[](symbol){bw}<LSEP>[](symbol){cutpoint}<LEND>[argument 7; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){cellmp}<LSEP>[](symbol){cellval}<LEND>[false branch; control flow](){if}<LSEP>[](symbol){htest}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){z}<LEND>[](symbol){p}<LSEP>[argument 2; litteral](str){McCrary (2008) sorting test}<LEND>[argument 3; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){bin}<LSEP>[](symbol){bw}<LSEP>[](symbol){cutpoint}<LEND>[argument 4; litteral](str){no apparent sorting}<LEND>[argument 1; litteral](str){htest}<LEND>[false branch; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){p} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){readDWD}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){type}<LSEP>[](symbol){varnames}<LSEP>[](symbol){fread}<LSEP>[](symbol){format}<LSEP>[](symbol){tz}<LSEP>[](symbol){dividebyten}<LSEP>[](symbol){var}<LSEP>[](symbol){progbar}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){len}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file}<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){missing}<LSEP>[](symbol){progbar}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){len}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){binary}<LEND>[argument 1; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){asc}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){progbar}<LSEP>[litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){data}<LSEP>[](symbol){type}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){anyNA}<LSEP>[](symbol){fread}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){haspack}<LEND>[call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){data.table}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LSEP>[](symbol){haspack}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.which}<LSEP>[argument 0; litteral](str){unzip}<LEND>[argument 1; litteral](str){}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){R package 'data.table' availab...}<LSEP>[argument 1; litteral](str){but system command 'unzip' cou...}<LSEP>[argument 2; litteral](str){See https://bookdown.org/brr...}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fread}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){fread}<LEND>[call](){}<LSEP>[](symbol){&&}<LSEP>[](symbol){haspack}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.which}<LSEP>[argument 0; litteral](str){unzip}<LEND>[argument 1; litteral](str){}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){fread}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){data.table}<LSEP>[argument 1; litteral](str){rdwd::readDWD with fread=TRUE}<LEND>[statement 1; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){bit64}<LSEP>[argument 1; litteral](str){rdwd::readDWD with fread=TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.which}<LSEP>[argument 0; litteral](str){unzip}<LEND>[argument 1; litteral](str){}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){system command 'unzip' could n...}<LSEP>[argument 1; litteral](str){Expect trouble with data.table...}<LSEP>[argument 2; litteral](str){See https://bookdown.org/brr...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){len}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fread}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){fread}<LSEP>[](symbol){len}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){varnames}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){varnames}<LSEP>[](symbol){len}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){var}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){var}<LSEP>[](symbol){len}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){format}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){format}<LSEP>[](symbol){len}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){tz}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){tz}<LSEP>[](symbol){len}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){dividebyten}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){dividebyten}<LSEP>[](symbol){len}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){type}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){type}<LSEP>[](symbol){len}<LEND>[statement 4; 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 5; call](){}<LSEP>[](symbol){checkFile}<LSEP>[](symbol){file}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){meta}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lct}<LEND>[call](){}<LSEP>[](symbol){Sys.getlocale}<LSEP>[argument 0; litteral](str){LC_CTYPE}<LEND>[statement 1; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.setlocale}<LSEP>[argument 0; litteral](str){LC_CTYPE}<LSEP>[](symbol){lct}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){german}<LSEP>[](symbol){lct}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lctry}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){German}<LSEP>[argument 1; litteral](str){de_DE}<LSEP>[argument 2; litteral](str){de_DE.UTF-8}<LSEP>[argument 3; litteral](str){de_DE.utf8}<LSEP>[argument 4; litteral](str){de}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){lc}<LSEP>[](symbol){lctry}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.setlocale}<LSEP>[argument 0; litteral](str){LC_CTYPE}<LSEP>[](symbol){lc}<LEND>[argument 1; litteral](str){}<LEND>[true branch; control flow](){break}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nt}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){pre}<LSEP>[](symbol){post}<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){unique}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){pre}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){post}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){ (}<LSEP>[](symbol){x}<LSEP>[argument 3; litteral](str){)}<LEND>[statement 3; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){pre}<LSEP>[](symbol){x}<LSEP>[argument 2; litteral](str){ / }<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){msg}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Reading }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file}<LEND>[argument 2; litteral](str){ file}<LEND>[argument 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; litteral](str){s}<LEND>[argument 4; litteral](str){ with }<LEND>[argument 5; call](){}<LSEP>[](symbol){nt}<LSEP>[](symbol){type}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){data}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){msg}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){msg}<LSEP>[argument 1; litteral](str){ and fread=}<LEND>[argument 2; call](){}<LSEP>[](symbol){nt}<LSEP>[](symbol){fread}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){}<LEND>[statement 3; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){msg}<LSEP>[argument 1; litteral](str){ ...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_along}<LSEP>[](symbol){file}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){multia}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.multia}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){stand}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.stand}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){meta}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.meta}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){binary}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.binary}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LSEP>[](symbol){progbar}<LSEP>[](symbol){...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){raster}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.raster}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dividebyten}<LSEP>[](symbol){i}<LEND>[](symbol){...}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){nc}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.nc}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){var}<LSEP>[](symbol){i}<LEND>[](symbol){...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){radar}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.radar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){asc}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.asc}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LSEP>[](symbol){progbar}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dividebyten}<LSEP>[](symbol){i}<LEND>[](symbol){...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){grib2}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.grib2}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){data}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){readDWD.data}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[](symbol){quiet}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fread}<LSEP>[](symbol){i}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){varnames}<LSEP>[](symbol){i}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){format}<LSEP>[](symbol){i}<LEND>[argument 5; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tz}<LSEP>[](symbol){i}<LEND>[](symbol){...}<LEND>[statement 10; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){invalid type (}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){type}<LSEP>[](symbol){i}<LEND>[argument 2; litteral](str){) given for file '}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){file}<LSEP>[](symbol){i}<LEND>[argument 4; litteral](str){'. See ?fileType}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){file_path_sans_ext}<LEND>[argument 0; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){file}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){output}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){file}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){output}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){output}<LEND>[statement 11; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){output}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.data}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){fread}<LSEP>[](symbol){varnames}<LSEP>[](symbol){format}<LSEP>[](symbol){tz}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){fread}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fp}<LEND>[call](){}<LSEP>[](symbol){unzip}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fp}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fp}<LSEP>[](symbol){Name}<LEND>[argument 1; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){produkt}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){fp}<LSEP>[](symbol){Name}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){data.table}<LSEP>[](symbol){fread}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){unzip -p}<LSEP>[](symbol){file}<LSEP>[](symbol){fp}<LEND>[argument 1; call](){}<LSEP>[](symbol){na9}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){;}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[argument 5; litteral](logical){FALSE}<LSEP>[](symbol){...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fn}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){file_path_sans_ext}<LEND>[argument 0; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){file}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){exdir}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){tempdir}<LEND>[argument 1; litteral](str){/}<LSEP>[](symbol){fn}<LEND>[statement 2; call](){}<LSEP>[](symbol){unzip}<LSEP>[](symbol){file}<LSEP>[](symbol){exdir}<LEND>[statement 3; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlink}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){dir}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](str){produkt*}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){There should be a single 'prod...}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[argument 2; litteral](str){ in\n }<LSEP>[](symbol){file}<LSEP>[argument 4; litteral](str){\n Consider re-downloading (w...}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){na9}<LEND>[argument 2; litteral](logical){TRUE}<LSEP>[argument 3; litteral](str){;}<LSEP>[argument 4; litteral](logical){FALSE}<LSEP>[](symbol){...}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){varnames}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){newColumnNames}<LSEP>[](symbol){dat}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){dat}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){File contains no rows: }<LSEP>[](symbol){file}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){dat}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){format}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){MESS_DATUM_BEGINN}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dat}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dat}<LSEP>[](symbol){MESS_DATUM_BEGINN}<LEND>[argument 1; litteral](real){14.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){MESS_DATUM}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){dat}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){There is no column 'MESS_DATUM...}<LSEP>[](symbol){file}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nch}<LEND>[call](){}<LSEP>[](symbol){nchar}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dat}<LSEP>[](symbol){MESS_DATUM}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){format}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){format}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nch}<LSEP>[argument 1; litteral](real){8.000000}<LEND>[true branch; litteral](str){%Y%m%d}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nch}<LSEP>[argument 1; litteral](real){12.000000}<LEND>[true branch; litteral](str){%Y%m%d%H%M}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nch}<LSEP>[argument 1; litteral](real){13.000000}<LEND>[true branch; litteral](str){%Y%m%d%H:%M}<LSEP>[false branch; litteral](str){%Y%m%d%H}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dat}<LSEP>[](symbol){MESS_DATUM}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dat}<LSEP>[](symbol){MESS_DATUM}<LEND>[](symbol){format}<LSEP>[](symbol){tz}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){dat}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.multia}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){fileEncoding}<LSEP>[](symbol){comment.char}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](str){;}<LSEP>[argument 2; litteral](logical){TRUE}<LSEP>[](symbol){fileEncoding}<LSEP>[](symbol){comment.char}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){nc}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){out}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){out}<LEND>[](symbol){nc}<LEND>[argument 1; litteral](str){X}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){out}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){nc}<LEND>[](symbol){out}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.stand}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){fast}<LSEP>[](symbol){fileEncoding}<LSEP>[](symbol){formIndex}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){musthave}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Pos}<LSEP>[argument 1; litteral](str){Fehlk}<LSEP>[argument 2; litteral](str){dividebyten}<LSEP>[argument 3; litteral](str){Label}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){has}<LEND>[call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){musthave}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){formIndex}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){has}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){formIndex must contain column(s) }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){musthave}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){has}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){width}<LEND>[call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){formIndex}<LSEP>[](symbol){Pos}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){width}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){width}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){fast}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){readr}<LSEP>[argument 1; litteral](str){readDWD.stand with fast=TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){coltypes}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){readr}<LSEP>[](symbol){cols}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){readr}<LSEP>[](symbol){col_character}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){sf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){readr}<LSEP>[](symbol){read_fwf}<LEND>[](symbol){file}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){readr}<LSEP>[](symbol){fwf_widths}<LEND>[](symbol){width}<LEND>[](symbol){coltypes}<LSEP>[](symbol){...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){sf}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){sf}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){sf}<LEND>[litteral](str){ }<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sf}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sf}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){sf}<LEND>[call](){}<LSEP>[](symbol){read.fwf}<LSEP>[](symbol){file}<LSEP>[](symbol){width}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[](symbol){fileEncoding}<LSEP>[](symbol){...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){sf}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){formIndex}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){incorrectly read file: }<LSEP>[](symbol){file}<LSEP>[argument 2; litteral](str){\n}<LEND>[argument 3; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){sf}<LEND>[argument 4; litteral](str){ columns instead of }<LEND>[argument 5; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){formIndex}<LEND>[argument 6; litteral](str){ as dictated by formIndex.}<LEND>[statement 7; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){formIndex}<LSEP>[](symbol){Fehlk}<LEND>[argument 1; litteral](str){}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){isNA}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sf}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){formIndex}<LSEP>[](symbol){Fehlk}<LEND>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){anyNA}<LSEP>[](symbol){isNA}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){NAs in comparison in column }<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](str){ of file }<LSEP>[](symbol){file}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sf}<LSEP>[](symbol){isNA}<LSEP>[](symbol){i}<LEND>[litteral](logical){NA}<LEND>[statement 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){formIndex}<LSEP>[](symbol){dividebyten}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sf}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){sf}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){10.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){cn}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){formIndex}<LSEP>[](symbol){Label}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){Qind}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){cn}<LSEP>[argument 1; litteral](str){Q}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cn}<LSEP>[](symbol){Qind}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cn}<LSEP>[](symbol){Qind}<LEND>[argument 1; litteral](str){_}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cn}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){Qind}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){cn}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){cn}<LSEP>[argument 1; litteral](str){}<LEND>[litteral](str){Leer}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){sf}<LEND>[](symbol){cn}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf}<LSEP>[](symbol){Date}<LEND>[call](){}<LSEP>[](symbol){as.Date}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf}<LSEP>[](symbol){JA}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf}<LSEP>[](symbol){MO}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){sf}<LSEP>[](symbol){TA}<LEND>[argument 3; litteral](str){-}<LEND>[argument 1; litteral](str){%F}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){sf}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.meta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){oneline}<LEND>[call](){}<LSEP>[](symbol){readLines}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](real){60.000000}<LSEP>[argument 2; litteral](str){latin1}<LEND>[statement 1; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oneline}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oneline}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){ }<LSEP>[argument 1; litteral](str){ }<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oneline}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){cnames}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oneline}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](str){ }<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){choehe}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){grep}<LSEP>[argument 0; litteral](str){hoehe}<LSEP>[](symbol){cnames}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){spaces}<LEND>[call](){}<LSEP>[](symbol){Reduce}<LSEP>[](symbol){intersect}<LEND>[argument 1; call](){}<LSEP>[](symbol){gregexpr}<LSEP>[argument 0; litteral](str){ }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oneline}<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>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){breaks}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){spaces}<LEND>[argument 1; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LSEP>[](symbol){spaces}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){breaks}<LSEP>[](symbol){choehe}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){breaks}<LSEP>[](symbol){choehe}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){widths}<LEND>[call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){breaks}<LSEP>[argument 2; litteral](real){200.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){stats}<LEND>[call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[](symbol){read.fwf}<LSEP>[](symbol){file}<LSEP>[](symbol){widths}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){TRUE}<LSEP>[argument 4; litteral](str){latin1}<LSEP>[](symbol){...}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){stats}<LEND>[](symbol){cnames}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){grepl}<LSEP>[argument 0; litteral](str){subdaily_standard_format}<LSEP>[](symbol){file}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){stats}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){}<LSEP>[argument 1; litteral](str){ST_KE}<LSEP>[argument 2; litteral](str){-----}<LEND>[](symbol){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tf}<LEND>[call](){}<LSEP>[](symbol){tempfile}<LEND>[statement 2; call](){}<LSEP>[](symbol){write.table}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){tf}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](str){\t}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){stats}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[](symbol){tf}<LSEP>[argument 1; litteral](str){\t}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){stats}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Stations_id}<LSEP>[argument 1; litteral](str){von_datum}<LSEP>[argument 2; litteral](str){bis_datum}<LSEP>[argument 3; litteral](str){Stationshoehe}<LSEP>[argument 4; litteral](str){geoBreite}<LSEP>[argument 5; litteral](str){geoLaenge}<LSEP>[argument 6; litteral](str){Stationsname}<LSEP>[argument 7; litteral](str){Bundesland}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){stats}<LEND>[argument 1; litteral](real){8.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){stats}<LEND>[argument 1; litteral](str){ columns detected instead of 8...}<LSEP>[](symbol){file}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){classes}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){integer}<LSEP>[argument 1; litteral](str){integer}<LSEP>[argument 2; litteral](str){integer}<LSEP>[argument 3; litteral](str){integer}<LSEP>[argument 4; litteral](str){numeric}<LSEP>[argument 5; litteral](str){numeric}<LSEP>[argument 6; litteral](str){character}<LSEP>[argument 7; litteral](str){character}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){actual}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){stats}<LSEP>[](symbol){class}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){actual}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; litteral](str){numeric}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classes}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[litteral](str){numeric}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){actual}<LSEP>[](symbol){classes}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){msg}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){actual}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){actual}<LSEP>[](symbol){classes}<LEND>[argument 1; litteral](str){: }<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){actual}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){actual}<LSEP>[](symbol){classes}<LEND>[argument 3; litteral](str){ instead of }<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classes}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){actual}<LSEP>[](symbol){classes}<LEND>[argument 5; litteral](str){.}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){msg}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){msg}<LSEP>[argument 1; litteral](str){ }<LEND>[statement 2; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){reading file '}<LSEP>[](symbol){file}<LSEP>[argument 3; litteral](str){' did not give the correct col...}<LSEP>[](symbol){msg}<LSEP>[argument 5; litteral](logical){FALSE}<LEND>[](symbol){stats}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.binary}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){exdir}<LSEP>[](symbol){toraster}<LSEP>[](symbol){quiet}<LSEP>[](symbol){progbar}<LSEP>[](symbol){selection}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){dwdradar}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.binary}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pmessage}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){...}<LEND>[statement 2; call](){}<LSEP>[](symbol){pmessage}<LSEP>[argument 0; litteral](str){\nChecking which files need to...}<LSEP>[](symbol){exdir}<LSEP>[argument 2; litteral](str){...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){untar}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){selection}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LSEP>[](symbol){selection}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){tountar}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){dir}<LSEP>[](symbol){exdir}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){tountar}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){pmessage}<LSEP>[argument 0; litteral](str){Unpacking }<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){tountar}<LEND>[argument 2; litteral](str){ of }<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[argument 4; litteral](str){ files from }<LSEP>[](symbol){file}<LSEP>[argument 6; litteral](str){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ufiles}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){tountar}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){selection}<LEND>[true branch; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LSEP>[](symbol){tountar}<LEND>[false branch; litteral](NULL){NULL}<LEND>[statement 2; call](){}<LSEP>[](symbol){untar}<LSEP>[](symbol){file}<LSEP>[](symbol){ufiles}<LSEP>[](symbol){exdir}<LEND>[false branch; call](){}<LSEP>[](symbol){pmessage}<LSEP>[argument 0; litteral](str){All files were already untarred.}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){fd}<LEND>[call](){}<LSEP>[](symbol){dir}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fd}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){fd}<LEND>[](symbol){f}<LEND>[statement 9; call](){}<LSEP>[](symbol){pmessage}<LSEP>[argument 0; litteral](str){Reading }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[argument 2; litteral](str){ binary files...}<LEND>[statement 10; 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 11; assign](){<-}<LSEP>[](symbol){rb}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dwdradar}<LSEP>[](symbol){readRadarFile}<LEND>[](symbol){...}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){time}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){rb}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){meta}<LEND>[](symbol){date}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){rb}<LEND>[](symbol){time}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){toraster}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){rb}<LEND>[statement 15; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){raster}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.binary with tor...}<LEND>[statement 16; call](){}<LSEP>[](symbol){pmessage}<LSEP>[argument 0; litteral](str){Converting to raster...}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){rbmat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){lapply}<LEND>[](symbol){rb}<LSEP>[argument 1; litteral](str){[[}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){rbmat}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){rbmat}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){raster}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){rbmat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){stack}<LEND>[](symbol){rbmat}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){rbmeta}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){rb}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){meta}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rbmeta}<LSEP>[](symbol){filename}<LEND>[](symbol){file}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rbmeta}<LSEP>[](symbol){date}<LEND>[call](){}<LSEP>[](symbol){as.POSIXct}<LSEP>[](symbol){time}<LEND>[statement 23; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){rbmat}<LSEP>[](symbol){rbmeta}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.raster}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){gargs}<LSEP>[](symbol){dividebyten}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){R.utils}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.raster}<LEND>[statement 1; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){raster}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.raster}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gdef}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){gfinal}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){owa}<LEND>[](symbol){gdef}<LSEP>[](symbol){gargs}<LSEP>[argument 2; litteral](str){filename}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){rdata}<LEND>[call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){R.utils}<LSEP>[](symbol){gunzip}<LEND>[](symbol){gfinal}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){raster}<LEND>[](symbol){rdata}<LSEP>[](symbol){...}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){dividebyten}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){r}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){r}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.nc}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){gargs}<LSEP>[](symbol){var}<LSEP>[](symbol){toraster}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){ncdf4}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.nc}<LEND>[statement 1; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){R.utils}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.nc}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gdef}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){gfinal}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){owa}<LEND>[](symbol){gdef}<LSEP>[](symbol){gargs}<LSEP>[argument 2; litteral](str){filename}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ncfile}<LEND>[call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){R.utils}<LSEP>[](symbol){gunzip}<LEND>[](symbol){gfinal}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){toraster}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){raster}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.nc with toraste...}<LEND>[statement 1; call](){}<LSEP>[](symbol){capture.output}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){brick}<LEND>[](symbol){ncfile}<LSEP>[](symbol){...}<LEND>[statement 2; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){out}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mycdf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ncdf4}<LSEP>[](symbol){nc_open}<LEND>[](symbol){ncfile}<LSEP>[](symbol){...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){unit}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mycdf}<LSEP>[](symbol){dim}<LEND>[](symbol){time}<LEND>[](symbol){units}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){unit}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Time could not be read from cd...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){time}<LSEP>[litteral](real){1.000000}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LSEP>[](symbol){unit}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](str){days}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){days since}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){unit}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){removeSpace}<LEND>[](symbol){start}<LEND>[argument 1; litteral](str){ }<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){as.Date}<LSEP>[](symbol){start}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){time}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ncdf4}<LSEP>[](symbol){ncvar_get}<LEND>[](symbol){mycdf}<LSEP>[argument 1; litteral](str){time}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){removeSpace}<LEND>[argument 0; call](){}<LSEP>[](symbol){sub}<LSEP>[argument 0; litteral](str){hours since}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){unit}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){strptime}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](str){%F %T}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){time}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ncdf4}<LSEP>[](symbol){ncvar_get}<LEND>[](symbol){mycdf}<LSEP>[argument 1; litteral](str){time}<LEND>[argument 1; litteral](real){3600.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){varnames}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mycdf}<LSEP>[](symbol){var}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){var}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){var}<LEND>[call](){}<LSEP>[](symbol){tail}<LSEP>[](symbol){varnames}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 11; control flow](){while}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){var}<LSEP>[](symbol){varnames}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pos}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){varnames}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){varnames}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){pos}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){var}<LSEP>[](symbol){pos}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){var}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pos}<LEND>[argument 1; call](){}<LSEP>[](symbol){menu}<LSEP>[](symbol){pos}<LSEP>[argument 1; litteral](str){Which variable do you want?}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){LAT}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ncdf4}<LSEP>[](symbol){ncvar_get}<LEND>[](symbol){mycdf}<LSEP>[argument 1; litteral](str){lat}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){LON}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ncdf4}<LSEP>[](symbol){ncvar_get}<LEND>[](symbol){mycdf}<LSEP>[argument 1; litteral](str){lon}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){VAR}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ncdf4}<LSEP>[](symbol){ncvar_get}<LEND>[](symbol){mycdf}<LSEP>[](symbol){var}<LEND>[statement 15; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){time}<LSEP>[](symbol){LAT}<LSEP>[](symbol){LON}<LSEP>[](symbol){VAR}<LSEP>[](symbol){var}<LEND>[argument 5; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mycdf}<LSEP>[](symbol){filename}<LEND>[](symbol){mycdf}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.radar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){gargs}<LSEP>[](symbol){toraster}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){dwdradar}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.radar}<LEND>[statement 1; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){R.utils}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.radar}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gdef}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){gfinal}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){owa}<LEND>[](symbol){gdef}<LSEP>[](symbol){gargs}<LSEP>[argument 2; litteral](str){filename}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){rdata}<LEND>[call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){R.utils}<LSEP>[](symbol){gunzip}<LEND>[](symbol){gfinal}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){rf}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){dwdradar}<LSEP>[](symbol){readRadarFile}<LEND>[](symbol){rdata}<LSEP>[](symbol){...}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){toraster}<LEND>[true branch; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){raster}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.radar with tora...}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){toraster}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rf}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){raster}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){rf}<LSEP>[](symbol){dat}<LEND>[statement 8; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){rf}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.asc}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){exdir}<LSEP>[](symbol){dividebyten}<LSEP>[](symbol){selection}<LSEP>[](symbol){quiet}<LSEP>[](symbol){progbar}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){raster}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.asc}<LEND>[statement 1; 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 2; assign](){<-}<LSEP>[](symbol){fn}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){file_path_sans_ext}<LEND>[argument 0; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){file}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){exdir}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){exdir}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){tempdir}<LEND>[argument 1; litteral](str){/}<LSEP>[](symbol){fn}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){daydir}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](str){/dayfiles}<LEND>[statement 5; call](){}<LSEP>[](symbol){untar}<LSEP>[](symbol){file}<LSEP>[](symbol){daydir}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){dayfiles}<LEND>[call](){}<LSEP>[](symbol){dir}<LSEP>[](symbol){daydir}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){\nChecking if already unpacked: }<LSEP>[](symbol){file}<LSEP>[argument 2; litteral](str){...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){to_untar}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){dayfiles}<LSEP>[](symbol){untar}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){untarred}<LEND>[call](){}<LSEP>[](symbol){dir}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](str){.asc$}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){to_untar}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){to_untar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){x}<LSEP>[](symbol){untarred}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LSEP>[](symbol){to_untar}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Unpacking tar files into }<LSEP>[](symbol){exdir}<LSEP>[argument 2; litteral](str){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dayfiles}<LSEP>[](symbol){to_untar}<LEND>[](symbol){untar}<LSEP>[](symbol){exdir}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Tar file was already unpacked ...}<LSEP>[](symbol){exdir}<LSEP>[argument 2; litteral](str){ :)}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){dir}<LSEP>[](symbol){exdir}<LSEP>[argument 1; litteral](str){.asc$}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){selection}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){f}<LSEP>[](symbol){selection}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Reading }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){f}<LEND>[argument 2; litteral](str){ files...}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){raster}<LEND>[](symbol){...}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[](symbol){dividebyten}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Dividing values by ten...}<LEND>[statement 17; control flow](){if}<LSEP>[](symbol){dividebyten}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){dat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){stack}<LEND>[](symbol){dat}<LEND>[statement 19; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){dat}<LEND>[assign](){<-}<LSEP>[](symbol){readDWD.grib2}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){file}<LSEP>[](symbol){bargs}<LSEP>[](symbol){toraster}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){R.utils}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.grib2}<LEND>[statement 1; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){rgdal}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.grib2}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){bdef}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){file}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){bfinal}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){berryFunctions}<LSEP>[](symbol){owa}<LEND>[](symbol){bdef}<LSEP>[](symbol){bargs}<LSEP>[argument 2; litteral](str){filename}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){bdata}<LEND>[call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){R.utils}<LSEP>[](symbol){bunzip2}<LEND>[](symbol){bfinal}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){out}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rgdal}<LSEP>[](symbol){readGDAL}<LEND>[](symbol){bdata}<LSEP>[](symbol){...}<LEND>[false branch; call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rgdal}<LSEP>[](symbol){readGDAL}<LEND>[](symbol){bdata}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){...}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){toraster}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){raster}<LSEP>[argument 1; litteral](str){rdwd:::readDWD.grib2 with tora...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){raster}<LEND>[](symbol){out}<LEND>[statement 7; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){out} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){pairs.ada}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){train.data}<LSEP>[](symbol){vars}<LSEP>[](symbol){maxvar}<LSEP>[](symbol){test.x}<LSEP>[](symbol){test.y}<LSEP>[](symbol){test.only}<LSEP>[](symbol){col}<LSEP>[](symbol){pch}<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){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){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){train.data}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test.x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Note: The train.data must cor...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){maxvar}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){Note: maxvar must be greater t...}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){maxvar}<LSEP>[litteral](real){10.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){iter}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){iter}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.vector}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){actual}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){lev}<LEND>[call](){}<LSEP>[](symbol){levels}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){y}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){train.data}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){ptrain}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){x}<LSEP>[](symbol){train.data}<LSEP>[argument 2; litteral](str){both}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){ptest}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[argument 0; litteral](NULL){NULL}<LSEP>[argument 1; litteral](NULL){NULL}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test.x}<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){train.data}<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){dim}<LSEP>[](symbol){train.data}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){test.x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Error: The test data set must...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ptest}<LEND>[call](){}<LSEP>[](symbol){predict}<LSEP>[](symbol){x}<LSEP>[](symbol){test.x}<LSEP>[argument 2; litteral](str){both}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test.y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){test.y}<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){test.x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){test.y}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){test.y}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lev}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){test.y}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptrain}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptrain}<LSEP>[](symbol){class}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptest}<LSEP>[](symbol){class}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptrain}<LSEP>[](symbol){probs}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptrain}<LSEP>[](symbol){probs}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptest}<LSEP>[](symbol){probs}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){test.only}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test.x}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptrain}<LSEP>[](symbol){class}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptest}<LSEP>[](symbol){class}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptrain}<LSEP>[](symbol){probs}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ptest}<LSEP>[](symbol){probs}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){test.y}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){train.data}<LSEP>[litteral](NULL){NULL}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tr}<LSEP>[](symbol){y}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){mat}<LSEP>[](symbol){ptrain}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){train.data}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LSEP>[](symbol){train.data}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){vars}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){test.only}<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){dim}<LSEP>[](symbol){train.data}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){maxvar}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){train.data}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ train.data must be of type da...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){varplot}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){scores}<LSEP>[](symbol){maxvar}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){vars}<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){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LSEP>[](symbol){test.only}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){vars}<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){dim}<LSEP>[](symbol){test.x}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){maxvar}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.data.frame}<LSEP>[](symbol){test.x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ test.x must be of type data.f...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){varplot}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](str){scores}<LSEP>[](symbol){maxvar}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){vars}<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){$}<LSEP>[](symbol){x}<LSEP>[](symbol){dim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){panel.up}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){tr}<LEND>[statement 1; call](){}<LSEP>[](symbol){points}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){col}<LSEP>[](symbol){val}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pch}<LSEP>[](symbol){val}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){panel.low}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat}<LSEP>[](symbol){class}<LEND>[statement 1; call](){}<LSEP>[](symbol){points}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){col}<LSEP>[](symbol){val}<LEND>[argument 3; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mat}<LSEP>[](symbol){probs}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){max}<LEND>[argument 4; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pch}<LSEP>[](symbol){val}<LEND>[statement 19; call](){}<LSEP>[](symbol){pairs}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){train.data}<LSEP>[](symbol){test.x}<LEND>[](symbol){}<LSEP>[](symbol){vars}<LEND>[](symbol){panel.low}<LSEP>[](symbol){panel.up}<LSEP>[](symbol){...} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.refsymbolsearchurl}<LSEP>[litteral](str){https://api.twelvedata.com/sym...}<LEND>[assign](){<-}<LSEP>[](symbol){ref_symbol_search}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sym}<LSEP>[](symbol){as}<LSEP>[](symbol){output_size}<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; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){output_size}<LSEP>[argument 1; litteral](real){120.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Max output size is 120.}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){qry}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){.refsymbolsearchurl}<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){accessed}<LEND>[call](){}<LSEP>[](symbol){format}<LEND>[argument 0; call](){}<LSEP>[](symbol){Sys.time}<LEND>[argument 1; litteral](str){UTC}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RcppSimdJson}<LSEP>[](symbol){fload}<LEND>[](symbol){qry}<LEND>[statement 7; 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 8; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){res}<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 data.}<LSEP>[argument 1; litteral](logical){FALSE}<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>[assign](){<-}<LSEP>[](symbol){logistic5_new}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LSEP>[](symbol){start}<LSEP>[](symbol){max_iter}<LSEP>[](symbol){lower_bound}<LSEP>[](symbol){upper_bound}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){start}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){start}<LEND>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'start' must be of length 5}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'beta' cannot be sma...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'eta' cannot be init...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'nu' cannot be negat...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[argument 4; call](){}<LSEP>[](symbol){suff_stats}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LEND>[argument 5; litteral](logical){FALSE}<LSEP>[](symbol){start}<LSEP>[](symbol){max_iter}<LEND>[argument 1; litteral](str){logistic5}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lower_bound}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){upper_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){constrained}<LEND>[litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lower_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){inf}<LEND>[argument 1; litteral](real){5.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lower_bound}<LEND>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'lower_bound' must be of length 5}<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){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<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>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){inf}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){upper_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){inf}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){upper_bound}<LEND>[argument 1; litteral](real){5.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'upper_bound' must be of length 5}<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){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<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){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'upper_bound[5]' cannot be neg...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){lower_bound}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){upper_bound}<LEND>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){logistic5_fn}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 5; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<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){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[assign](){<-}<LSEP>[](symbol){fn.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){logistic5_fn}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){fn.logistic5_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){logistic5_fn}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){gradient_hessian.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){b}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){g}<LEND>[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>[argument 0; litteral](real){1.000000}<LEND>[](symbol){nu}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){g}<LSEP>[](symbol){f}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){f}<LEND>[](symbol){nu}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](real){5.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){hessian}<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){length}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){g}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){g}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){t}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){u}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){v}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){u}<LEND>[statement 27; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){v}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){t}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){u}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){v}<LEND>[statement 33; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 34; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 35; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){q}<LEND>[](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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 36; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){eta}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){f}<LSEP>[](symbol){b}<LEND>[](symbol){t}<LEND>[](symbol){g}<LEND>[](symbol){u}<LEND>[statement 37; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){nu}<LSEP>[](symbol){u}<LEND>[](symbol){eta}<LEND>[](symbol){v}<LEND>[](symbol){t}<LEND>[](symbol){g}<LEND>[statement 38; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 40; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[](symbol){r}<LEND>[](symbol){u}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){nu}<LSEP>[](symbol){u}<LEND>[](symbol){eta}<LEND>[](symbol){v}<LEND>[](symbol){u}<LEND>[](symbol){g}<LEND>[statement 43; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 45; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 46; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[statement 47; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){v}<LSEP>[](symbol){g}<LEND>[](symbol){g}<LEND>[statement 48; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){gradient}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 49; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[litteral](real){0.000000}<LEND>[statement 50; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){gradient}<LSEP>[](symbol){hessian}<LEND>[assign](){<-}<LSEP>[](symbol){rss.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 2; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; 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){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rss_fixed.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){known_param}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){known_param}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[](symbol){idx}<LEND>[](symbol){z}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known_param}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 6; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; 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){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rss_gradient_hessian.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mu_gradient_hessian}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){G}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){H}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){r}<LEND>[](symbol){G}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){hessian}<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){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){G}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){G}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[](symbol){G}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[](symbol){G}<LEND>[statement 13; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){gradient}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){rss_gradient_hessian_fixed.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){known_param}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){known_param}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[](symbol){idx}<LEND>[](symbol){z}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known_param}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mu_gradient_hessian}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){G}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){H}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){r}<LEND>[](symbol){G}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){hessian}<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){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){G}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){G}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[](symbol){G}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[](symbol){G}<LEND>[statement 17; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[](symbol){idx}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){idx}<LSEP>[](symbol){idx}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){mle_asy.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){log_nu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){g}<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){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){log_nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){log_nu}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){t1}<LSEP>[litteral](real){0.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){t2}<LSEP>[litteral](real){0.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){t3}<LSEP>[litteral](real){0.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){t4}<LSEP>[litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){t5}<LSEP>[litteral](real){0.000000}<LEND>[statement 13; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){t1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t1}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){t2}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<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>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){t3}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t3}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){t4}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t4}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){t5}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t5}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){denom}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){t1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t2}<LSEP>[](symbol){t3}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){denom}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alpha}<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){t1}<LSEP>[](symbol){t5}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t3}<LSEP>[](symbol){t4}<LEND>[](symbol){denom}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t1}<LSEP>[](symbol){t4}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t2}<LSEP>[](symbol){t5}<LEND>[](symbol){denom}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){alpha}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){beta}<LEND>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){init.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){stats}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rss_fn}<LEND>[call](){}<LSEP>[](symbol){rss}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){linear_fit}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){linear_coef}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){linear_fit}<LSEP>[](symbol){coefficients}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){min_value}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){max_value}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){zv}<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){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){min_value}<LEND>[argument 1; litteral](real){0.000010}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){max_value}<LSEP>[](symbol){min_value}<LEND>[argument 1; litteral](real){0.000020}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){zv}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){zv}<LEND>[argument 1; call](){}<LSEP>[](symbol){log1p}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){zv}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){zv}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){eta}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){min_value}<LSEP>[](symbol){max_value}<LSEP>[](symbol){eta}<LSEP>[](symbol){phi}<LSEP>[argument 4; litteral](real){0.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){theta}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){niter}<LSEP>[litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){linear_coef}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](real){0.200000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){weighted_mean}<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){object}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.900000}<LSEP>[](symbol){weighted_mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[](symbol){min_value}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.900000}<LSEP>[](symbol){weighted_mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[](symbol){max_value}<LEND>[argument 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){linear_coef}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.001000}<LEND>[false branch; litteral](real){0.001000}<LEND>[argument 3; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){m}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 4; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){theta}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){delta}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){v1}<LSEP>[litteral](integer){20}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){v2}<LSEP>[litteral](integer){20}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){v3}<LSEP>[litteral](integer){5}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v1}<LSEP>[](symbol){v2}<LEND>[](symbol){v3}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){eta_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[](symbol){v1}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){phi_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){delta}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){delta}<LEND>[](symbol){v2}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){log_nu_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.500000}<LSEP>[](symbol){v3}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){theta_tmp}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){5.000000}<LSEP>[](symbol){v}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){rss_tmp}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LSEP>[](symbol){v}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){theta_eta_1}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v2}<LSEP>[](symbol){v3}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){rss_eta_1}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v2}<LSEP>[](symbol){v3}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){theta_eta_2}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v2}<LSEP>[](symbol){v3}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){rss_eta_2}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v2}<LSEP>[](symbol){v3}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){0.000000}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){j}<LSEP>[litteral](real){0.000000}<LEND>[statement 32; control flow](){for}<LSEP>[](symbol){phi}<LSEP>[](symbol){phi_set}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){log_nu}<LSEP>[](symbol){log_nu_set}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){eta}<LSEP>[](symbol){eta_set}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){eta}<LSEP>[](symbol){phi}<LSEP>[](symbol){log_nu}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){current_par}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_tmp}<LSEP>[](symbol){i}<LEND>[](symbol){current_rss}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[](symbol){phi}<LSEP>[](symbol){log_nu}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){current_par}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_eta_1}<LSEP>[](symbol){j}<LEND>[](symbol){current_rss}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){20.000000}<LSEP>[](symbol){phi}<LSEP>[](symbol){log_nu}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){current_par}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_eta_2}<LSEP>[](symbol){j}<LEND>[](symbol){current_rss}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_tmp}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){theta_1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){theta_2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){theta_3}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){v}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){theta_4}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_eta_1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){theta_5}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_2}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_eta_2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 39; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){constrained}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta_1}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){theta_2}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){theta_3}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_3}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){theta_4}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_4}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){theta_5}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_5}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){theta}<LSEP>[](symbol){theta_1}<LSEP>[](symbol){theta_2}<LSEP>[](symbol){theta_3}<LSEP>[](symbol){theta_4}<LSEP>[](symbol){theta_5}<LEND>[statement 41; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){fit_nlminb}<LSEP>[](symbol){object}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){start}<LEND>[statement 42; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[](symbol){best_rss}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){theta}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){niter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){niter}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){niter}<LEND>[statement 43; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){theta}<LEND>[litteral](NULL){NULL}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){niter}<LEND>[litteral](NULL){NULL}<LEND>[statement 45; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){theta}<LSEP>[](symbol){niter}<LEND>[assign](){<-}<LSEP>[](symbol){fit.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){find_optimum}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){optimum}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){iterations}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[](symbol){theta}<LEND>[argument 5; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){minimum}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){logistic5_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){fitted.values}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){param_names}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){alpha}<LSEP>[argument 1; litteral](str){beta}<LSEP>[argument 2; litteral](str){eta}<LSEP>[argument 3; litteral](str){phi}<LSEP>[argument 4; litteral](str){nu}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){coefficients}<LEND>[](symbol){param_names}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){estimated}<LEND>[](symbol){param_names}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){result}<LEND>[litteral](str){logistic5_fit}<LEND>[](symbol){result}<LEND>[assign](){<-}<LSEP>[](symbol){fit_constrained.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){constraint}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lb_is_inf}<LEND>[call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ub_is_inf}<LEND>[call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){i}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[litteral](logical){TRUE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){lb_is_inf}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){ub_is_inf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){known_param}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](real){nan}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){find_optimum_constrained}<LSEP>[](symbol){object}<LSEP>[](symbol){constraint}<LSEP>[](symbol){known_param}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){optimum}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){estimated}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){iterations}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){estimated}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){estimated}<LSEP>[](symbol){theta}<LEND>[argument 5; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){minimum}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){estimated}<LEND>[argument 7; call](){}<LSEP>[](symbol){logistic5_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){fitted.values}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){param_names}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){alpha}<LSEP>[argument 1; litteral](str){beta}<LSEP>[argument 2; litteral](str){eta}<LSEP>[argument 3; litteral](str){phi}<LSEP>[argument 4; litteral](str){nu}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){coefficients}<LEND>[](symbol){param_names}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){estimated}<LEND>[](symbol){param_names}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){result}<LEND>[litteral](str){logistic5_fit}<LEND>[](symbol){result}<LEND>[assign](){<-}<LSEP>[](symbol){fisher_info.logistic5}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LSEP>[](symbol){sigma}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){b}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){g}<LEND>[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>[argument 0; litteral](real){1.000000}<LEND>[](symbol){nu}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){g}<LSEP>[](symbol){f}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){f}<LEND>[](symbol){nu}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[](symbol){y}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[argument 2; litteral](real){5.000000}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){g}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){g}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){t}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){u}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){v}<LEND>[](symbol){nu}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){gradient}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[argument 2; litteral](real){5.000000}<LEND>[statement 27; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){G}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){hessian}<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){object}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 34; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 35; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 36; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[statement 37; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){u}<LEND>[statement 38; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){v}<LEND>[](symbol){nu}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 40; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){t}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){u}<LEND>[statement 43; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v}<LSEP>[](symbol){nu}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 45; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 46; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){q}<LEND>[](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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 47; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){eta}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){f}<LSEP>[](symbol){b}<LEND>[](symbol){t}<LEND>[](symbol){g}<LEND>[](symbol){u}<LEND>[statement 48; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){nu}<LSEP>[](symbol){u}<LEND>[](symbol){eta}<LEND>[](symbol){v}<LEND>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){g}<LEND>[statement 49; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 50; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 51; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 52; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[](symbol){r}<LEND>[](symbol){u}<LEND>[statement 53; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){nu}<LSEP>[](symbol){u}<LEND>[](symbol){eta}<LEND>[](symbol){v}<LEND>[](symbol){u}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){g}<LEND>[statement 54; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 55; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 56; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 57; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[statement 58; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){nu}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){g}<LEND>[statement 59; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[litteral](real){0.000000}<LEND>[statement 60; assign](){<-}<LSEP>[](symbol){H}<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){object}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 61; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){gradient}<LEND>[statement 62; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){gradient}<LEND>[statement 63; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){gradient}<LEND>[statement 64; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[](symbol){gradient}<LEND>[statement 65; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[](symbol){gradient}<LEND>[statement 66; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){H}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[statement 67; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[statement 68; assign](){<-}<LSEP>[](symbol){z}<LEND>[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){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<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){object}<LSEP>[](symbol){y}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[statement 69; assign](){<-}<LSEP>[](symbol){fim}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){H}<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}<LEND>[](symbol){G}<LEND>[](symbol){sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<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>[](symbol){G}<LEND>[](symbol){sigma}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 70; assign](){<-}<LSEP>[](symbol){lab}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){theta}<LEND>[argument 1; litteral](str){sigma}<LEND>[statement 71; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){fim}<LEND>[](symbol){lab}<LEND>[statement 72; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){fim}<LEND>[](symbol){lab}<LEND>[](symbol){fim}<LEND>[assign](){<-}<LSEP>[](symbol){curve_variance.logistic5_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){V}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){vcov}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){V}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){nan}<LSEP>[](symbol){m}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){5.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){b}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){g}<LEND>[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>[argument 0; litteral](real){1.000000}<LEND>[](symbol){nu}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){g}<LSEP>[](symbol){f}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){f}<LEND>[](symbol){nu}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){g}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){g}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){t}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){u}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){v}<LEND>[](symbol){nu}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){G}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){variance}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){nan}<LSEP>[](symbol){m}<LEND>[statement 26; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){variance}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){V}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){variance}<LEND>[assign](){<-}<LSEP>[](symbol){nauc.logistic5_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xlim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){xlim}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim' must be a numeric vecto...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim[1]' cannot be larger or ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ylim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){ylim}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim' must be a numeric vecto...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<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>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim[1]' cannot be larger or ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim[1]' cannot be negative}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){5.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){I}<LSEP>[litteral](real){0.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){xlim_new}<LSEP>[](symbol){xlim}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<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>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){alpha}<LEND>[](symbol){nu}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nu}<LEND>[](symbol){eta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){eta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tmp}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<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>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){alpha}<LEND>[](symbol){nu}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){nu}<LEND>[](symbol){eta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){eta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){I}<LEND>[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){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<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){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){+}<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>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){f}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[false branch; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){I}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){integrate}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){value}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){nauc}<LEND>[call](){}<LSEP>[](symbol){/}<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){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<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){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nauc}<LEND>[litteral](NULL){NULL}<LEND>[](symbol){nauc}<LEND>[assign](){<-}<LSEP>[](symbol){naac.logistic5_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nauc}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim} |
[](){expression}<LSEP>[litteral](str){NJM_WC} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plotRadar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){layer}<LSEP>[](symbol){main}<LSEP>[](symbol){land}<LSEP>[](symbol){sea}<LSEP>[](symbol){de}<LSEP>[](symbol){eu}<LSEP>[](symbol){col}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LSEP>[](symbol){zlim}<LSEP>[](symbol){axes}<LSEP>[](symbol){las}<LSEP>[](symbol){mar}<LSEP>[](symbol){keeppar}<LSEP>[](symbol){project}<LSEP>[](symbol){proj}<LSEP>[](symbol){extent}<LSEP>[](symbol){adjust05}<LSEP>[](symbol){targetproj}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){raster}<LSEP>[argument 1; litteral](str){plotRadar}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){dat}<LSEP>[argument 1; litteral](str){meta}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){plotRadar needs the 'dat' elem...}<LEND>[statement 2; call](){}<LSEP>[](symbol){force}<LSEP>[](symbol){main}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){layer}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){layer}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){main}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){project}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){- projecting:}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){projectRasterDWD}<LSEP>[](symbol){x}<LSEP>[](symbol){proj}<LSEP>[](symbol){extent}<LSEP>[](symbol){adjust05}<LSEP>[](symbol){targetproj}<LSEP>[](symbol){quiet}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){- preparing plots...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){ext}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){extent}<LEND>[](symbol){x}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){xlim}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){xlim}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){ext}<LSEP>[](symbol){xmin}<LEND>[argument 1; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){ext}<LSEP>[](symbol){xmax}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){ylim}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){ylim}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){ext}<LSEP>[](symbol){ymin}<LEND>[argument 1; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){ext}<LSEP>[](symbol){ymax}<LEND>[statement 10; call](){}<LSEP>[](symbol){load}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/DEU.rda}<LSEP>[argument 1; litteral](str){rdwd}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LEND>[statement 11; call](){}<LSEP>[](symbol){load}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/EUR.rda}<LSEP>[argument 1; litteral](str){rdwd}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){singlemap}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x_i}<LSEP>[](symbol){main_i}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){plot}<LEND>[](symbol){DEU}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LSEP>[](symbol){axes}<LSEP>[](symbol){las}<LEND>[statement 1; call](){}<LSEP>[](symbol){rect}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](str){usr}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](str){usr}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](str){usr}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[argument 0; litteral](str){usr}<LEND>[argument 1; litteral](real){4.000000}<LEND>[](symbol){sea}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){plot}<LEND>[](symbol){EUR}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){land}<LEND>[statement 3; call](){}<LSEP>[](symbol){box}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){plot}<LEND>[](symbol){x_i}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){zlim}<LSEP>[](symbol){col}<LSEP>[](symbol){...}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){plot}<LEND>[](symbol){DEU}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){de}<LEND>[statement 6; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){plot}<LEND>[](symbol){EUR}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){eu}<LEND>[statement 7; call](){}<LSEP>[](symbol){title}<LSEP>[](symbol){main_i}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){lay}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){nlayers}<LEND>[](symbol){x}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){lay2}<LSEP>[](symbol){lay}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){main}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){main}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lay}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){layer}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){lay}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lay}<LSEP>[](symbol){layer}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){nn}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){lay}<LSEP>[](symbol){lay2}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nn}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[](symbol){nn}<LSEP>[argument 1; litteral](str){ layer}<LEND>[argument 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nn}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; litteral](str){s}<LEND>[argument 3; litteral](str){ selected that do}<LEND>[argument 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nn}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; litteral](str){es}<LEND>[argument 5; litteral](str){ not exist.}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){zlim}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){zlim}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){cellStats}<LEND>[](symbol){x}<LSEP>[](symbol){range}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.matrix}<LSEP>[](symbol){zlim}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){zlim}<LEND>[call](){}<LSEP>[](symbol){range}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){zlim}<LSEP>[](symbol){}<LSEP>[](symbol){lay}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){identical}<LSEP>[](symbol){zlim}<LSEP>[argument 1; litteral](str){ind}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){zlim}<LSEP>[litteral](NULL){NULL}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){op}<LEND>[call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){mar}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){keeppar}<LEND>[true branch; call](){}<LSEP>[](symbol){on.exit}<LEND>[argument 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){op}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){lapply}<LEND>[call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){pbapply}<LSEP>[](symbol){pblapply}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){- plotting }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lay}<LEND>[argument 2; litteral](str){ layer}<LEND>[argument 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lay}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; litteral](str){s}<LEND>[argument 4; litteral](str){:}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){dummy}<LEND>[call](){}<LSEP>[](symbol){lapply}<LSEP>[](symbol){lay}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; call](){}<LSEP>[](symbol){singlemap}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){main}<LSEP>[](symbol){i}<LEND>[statement 27; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2sa}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){verbose}<LSEP>[](symbol){installed}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sa}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){installed}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){This function requires the pac...} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){target_diagram}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){data}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){type}<LSEP>[](symbol){cuts}<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){labels}<LEND>[call](){}<LSEP>[](symbol){data.frame}<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>[statement 4; 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}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_point}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes_string}<LSEP>[argument 0; litteral](str){nrmsec*sign(difSD)}<LSEP>[argument 1; litteral](str){nmbe}<LSEP>[](symbol){...}<LEND>[argument 2; litteral](str){black}<LSEP>[argument 3; litteral](real){21.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_path}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes_string}<LSEP>[argument 0; litteral](str){x}<LSEP>[argument 1; litteral](str){y}<LEND>[](symbol){circle}<LSEP>[argument 2; litteral](str){gray}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_vline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){gray}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_hline}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){gray}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_text}<LEND>[argument 0; call](){}<LSEP>[](symbol){aes_string}<LSEP>[argument 0; litteral](str){x}<LSEP>[argument 1; litteral](str){y}<LSEP>[argument 2; litteral](str){lbs}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){labels}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[](symbol){xlab}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[](symbol){ylab}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_fixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme_bw} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){matddjeffreys}<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){ddjeffreys}<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>[](symbol){mrdwt}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){h}<LSEP>[](symbol){L}<LEND>[body; block](){}<LSEP>[statement 0; call](){.Call}<LSEP>[call name; litteral](str){do_mrdwt}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<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){.pkgenv}<LEND>[call](){}<LSEP>[](symbol){new.env}<LEND>[argument 0; call](){}<LSEP>[](symbol){emptyenv}<LEND>[assign](){<-}<LSEP>[](symbol){.defaultFile}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){getRversion}<LEND>[argument 1; litteral](str){4.0.0}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tddir}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){tools}<LSEP>[](symbol){R_user_dir}<LEND>[argument 0; litteral](str){td}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){dir.exists}<LSEP>[](symbol){tddir}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fname}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){tddir}<LSEP>[argument 1; litteral](str){api.dcf}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){fname}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fname}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){}<LEND>[assign](){<-}<LSEP>[](symbol){.getKeyIntoPkgEnv}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){silent}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){.pkgenv}<LSEP>[argument 1; litteral](str){api}<LEND>[litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fname}<LEND>[call](){}<LSEP>[](symbol){.defaultFile}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){fname}<LSEP>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){read.dcf}<LSEP>[](symbol){fname}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LSEP>[argument 0; litteral](str){key}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){res}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){.pkgenv}<LSEP>[argument 1; litteral](str){api}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){res}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](str){key}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){silent}<LEND>[true branch; call](){}<LSEP>[](symbol){packageStartupMessage}<LSEP>[argument 0; litteral](str){Setting API key from config file.}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){silent}<LEND>[true branch; call](){}<LSEP>[](symbol){packageStartupMessage}<LSEP>[argument 0; litteral](str){API key file found but no api ...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; assign](){<-}<LSEP>[](symbol){ev}<LEND>[call](){}<LSEP>[](symbol){Sys.getenv}<LSEP>[argument 0; litteral](str){TWELVEDATA_API_KEY}<LEND>[argument 1; litteral](str){}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){.pkgenv}<LSEP>[argument 1; litteral](str){api}<LEND>[](symbol){ev}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){silent}<LEND>[true branch; call](){}<LSEP>[](symbol){packageStartupMessage}<LSEP>[argument 0; litteral](str){Setting API key from environme...}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){silent}<LEND>[true branch; call](){}<LSEP>[](symbol){packageStartupMessage}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){No config file or environment ...}<LSEP>[argument 1; litteral](str){found: API access unlikely.}<LEND>[assign](){<-}<LSEP>[](symbol){.onLoad}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){libname}<LSEP>[](symbol){pkgname}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){.getKeyIntoPkgEnv}<LSEP>[argument 0; litteral](logical){TRUE}<LEND>[assign](){<-}<LSEP>[](symbol){.onAttach}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){libname}<LSEP>[](symbol){pkgname}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){packageStartupMessage}<LSEP>[argument 0; litteral](str){Attaching td version }<LEND>[argument 1; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){packageVersion}<LEND>[argument 0; litteral](str){td}<LEND>[argument 2; litteral](str){. }<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 1; call](){}<LSEP>[](symbol){.getKeyIntoPkgEnv}<LSEP>[argument 0; litteral](logical){FALSE} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){nearbyStations}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){lat}<LSEP>[](symbol){lon}<LSEP>[](symbol){radius}<LSEP>[](symbol){res}<LSEP>[](symbol){var}<LSEP>[](symbol){per}<LSEP>[](symbol){mindate}<LSEP>[](symbol){hasfileonly}<LSEP>[](symbol){statname}<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){length}<LSEP>[](symbol){lat}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){lat mus be a single value, not }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lat}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lon}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){lon mus be a single value, not }<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lon}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){lon}<LSEP>[](symbol){lat}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){lon>lat, but lon should be sma...}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mindate}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){mindate mus be a single value,...}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mindate}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){radius}<LSEP>[argument 1; litteral](real){1000.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){radius is supposed to be given...}<LSEP>[argument 1; litteral](str){Your value seems irreasonably ...}<LSEP>[](symbol){radius}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Selecting stations...}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){m}<LSEP>[](symbol){metaIndex}<LEND>[statement 7; control flow](){if}<LSEP>[](symbol){hasfileonly}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){hasfile}<LEND>[](symbol){}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){res}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){res}<LEND>[](symbol){res}<LEND>[](symbol){}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){var}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){var}<LEND>[](symbol){var}<LEND>[](symbol){}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){per}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){per}<LEND>[](symbol){per}<LEND>[](symbol){}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){mindate}<LEND>[true branch; 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){m}<LSEP>[](symbol){bis_datum}<LEND>[](symbol){mindate}<LEND>[](symbol){}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[](symbol){m}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){geoBreite}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){lat}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){geoLaenge}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){lon}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){Stationsname}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){statname}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){res}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){z}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){1.000000}<LEND>[litteral](str){Target}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){dist}<LEND>[call](){}<LSEP>[](symbol){lldist}<LSEP>[argument 0; litteral](str){geoBreite}<LSEP>[argument 1; litteral](str){geoLaenge}<LSEP>[](symbol){m}<LEND>[statement 19; 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){m}<LSEP>[](symbol){dist}<LEND>[](symbol){radius}<LEND>[](symbol){}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){sortDF}<LSEP>[](symbol){m}<LSEP>[argument 1; litteral](str){dist}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){No data was found for this que...}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Preparing URLs...}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){url}<LEND>[litteral](str){}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){m}<LSEP>[](symbol){url}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){with}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){m}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){selectDWD}<LSEP>[](symbol){Stations_id}<LSEP>[](symbol){res}<LSEP>[](symbol){var}<LSEP>[](symbol){per}<LSEP>[argument 4; litteral](logical){TRUE}<LSEP>[](symbol){...}<LEND>[statement 25; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){m} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.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){cat}<LSEP>[argument 0; litteral](str){ Detected Presence/Absence (S...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Cannot identify overshoot aris...}<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; 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; 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 15; 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 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}<LSEP>[argument 0; litteral](str){Completed:}<LSEP>[](symbol){funname}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 17; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){xx} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){update.RRRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){newy}<LSEP>[](symbol){newx}<LSEP>[](symbol){newz}<LSEP>[](symbol){addon}<LSEP>[](symbol){method}<LSEP>[](symbol){SAAmethod}<LSEP>[](symbol){...}<LSEP>[](symbol){ProgressBar}<LEND>[body; 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){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){data}<LEND>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){newy}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The dimension of the new data ...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){data}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){newx}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The dimension of the new data ...}<LEND>[statement 2; 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){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){data}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){newz}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){New data z not supplied.}<LEND>[statement 3; 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){object}<LSEP>[](symbol){data}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){newz}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){New data z ignored.}<LEND>[statement 4; 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){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){data}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){identical}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){data}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){newz}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The dimension of the new data ...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){newy}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){data}<LEND>[](symbol){y}<LEND>[](symbol){newy}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){newx}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){data}<LEND>[](symbol){x}<LEND>[](symbol){newx}<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){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){data}<LEND>[](symbol){z}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){newz}<LEND>[call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){data}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){newz}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){newz}<LSEP>[litteral](NULL){NULL}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){ORRRR}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){addon}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){addon}<LSEP>[litteral](real){10.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){method}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){method}<LSEP>[litteral](str){SMM}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){ORRRR}<LSEP>[](symbol){newy}<LSEP>[](symbol){newx}<LSEP>[](symbol){newz}<LEND>[argument 3; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){object}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){spec}<LEND>[](symbol){r}<LEND>[argument 5; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){spec}<LEND>[](symbol){N}<LEND>[](symbol){addon}<LEND>[](symbol){addon}<LSEP>[](symbol){method}<LSEP>[](symbol){SAAmethod}<LSEP>[](symbol){...}<LEND>[argument 10; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){A}<LEND>[argument 11; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){B}<LEND>[argument 12; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){D}<LEND>[argument 13; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){mu}<LEND>[argument 14; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Sigma}<LEND>[](symbol){ProgressBar}<LSEP>[argument 16; litteral](logical){TRUE}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){history}<LEND>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){mu}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){history}<LEND>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){A}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){history}<LEND>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){B}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){history}<LEND>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){D}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){Sigma}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){history}<LEND>[](symbol){Sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){Sigma}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){history}<LEND>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){obj}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){runtime}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){history}<LEND>[](symbol){runtime}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){history}<LEND>[](symbol){runtime}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){history}<LEND>[](symbol){runtime}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){history}<LEND>[](symbol){runtime}<LEND>[statement 17; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){new_ORRRR}<LSEP>[](symbol){res} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){ada.machine}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){test.x}<LSEP>[](symbol){test.y}<LSEP>[](symbol){iter}<LSEP>[](symbol){nu}<LSEP>[](symbol){bag.frac}<LSEP>[](symbol){lossObj}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){na.action}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){kapstat}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tab}<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){tab}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){tab}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){tab}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){rs}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cs}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){tab}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){sum}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){rs}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){E}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){rs}<LSEP>[](symbol){cs}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){O}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){tab}<LEND>[](symbol){N}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){O}<LSEP>[](symbol){E}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){E}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){y}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){a2}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ind}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){a1}<LSEP>[](symbol){a2}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){setdiff}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[](symbol){ind}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n}<LSEP>[](symbol){val}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[](symbol){ind}<LEND>[statement 2; 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 3; assign](){=}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){y}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[](symbol){n}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){oobm.mat}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){fits}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LEND>[statement 9; assign](){=}<LSEP>[](symbol){atmp}<LEND>[assign](){=}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[](symbol){iter}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){oobm.err}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){iter}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){train.err}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){iter}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){train.kap}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){iter}<LEND>[statement 13; assign](){=}<LSEP>[](symbol){start}<LSEP>[litteral](real){0.000000}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test.y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){trees}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){test.err}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){iter}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){test.kap}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){iter}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){test.n}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){dim}<LSEP>[](symbol){test.x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){fits.test}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){test.n}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){oldObj}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){fit}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){trees}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){lw}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){oobm.mat}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){oob.str}<LEND>[](symbol){oobm.mat}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){fits}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){F}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){iter}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){alpha}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.err}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){err}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.kap}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){err}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oobm.err}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){oob.str}<LEND>[](symbol){oobm.err}<LEND>[statement 9; assign](){=}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){nu}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){bag.frac}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){bag.frac}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test.y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.err}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){err}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.kap}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){err}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){fits.test}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){oldObj}<LSEP>[](symbol){model}<LEND>[](symbol){F}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){val}<LEND>[call](){}<LSEP>[](symbol){floor}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){bag.frac}<LSEP>[](symbol){n}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){a}<LSEP>[litteral](NULL){NULL}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){val}<LSEP>[](symbol){n}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){iter}<LEND>[](symbol){tmp}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.vector}<LSEP>[](symbol){a}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){a}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 21; assign](){=}<LSEP>[](symbol){wfun}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lossObj}<LSEP>[](symbol){wfun}<LEND>[statement 22; assign](){=}<LSEP>[](symbol){coefs}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lossObj}<LSEP>[](symbol){coefs}<LEND>[statement 23; assign](){=}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lossObj}<LSEP>[](symbol){method}<LEND>[statement 24; assign](){=}<LSEP>[](symbol){predict.type}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lossObj}<LSEP>[](symbol){predict.type}<LEND>[statement 25; assign](){=}<LSEP>[](symbol){shift}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){lossObj}<LSEP>[](symbol){shift}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){f1}<LEND>[assign](){<-}<LSEP>[](symbol){f2}<LSEP>[litteral](real){0.000000}<LEND>[statement 27; control flow](){for}<LSEP>[](symbol){m}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[](symbol){start}<LSEP>[](symbol){iter}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){xval}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){a}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){xval}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){a}<LSEP>[](symbol){}<LSEP>[](symbol){m}<LEND>[statement 2; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fit}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){rpart}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){y}<LSEP>[](symbol){.}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dat}<LSEP>[](symbol){xval}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){xval}<LEND>[](symbol){method}<LSEP>[argument 4; litteral](logical){FALSE}<LSEP>[argument 5; litteral](logical){TRUE}<LSEP>[](symbol){na.action}<LSEP>[](symbol){...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){predict.type}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fit}<LSEP>[](symbol){m}<LEND>[](symbol){dat}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){errm}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){f}<LEND>[](symbol){y}<LEND>[statement 5; 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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){errm}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){errm}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){errm}<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){1.000000}<LSEP>[](symbol){errm}<LEND>[argument 1; litteral](real){0.000100}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){errm}<LSEP>[argument 1; litteral](real){0.999900}<LEND>[statement 6; assign](){=}<LSEP>[](symbol){alp}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.500000}<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){errm}<LEND>[](symbol){errm}<LEND>[statement 7; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alpha}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){coefs}<LSEP>[](symbol){w}<LSEP>[](symbol){f}<LSEP>[](symbol){y}<LSEP>[](symbol){alp}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){fits}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){fits}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alpha}<LSEP>[](symbol){m}<LEND>[](symbol){f}<LEND>[statement 9; control flow](){if}<LSEP>[](symbol){shift}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){f1}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[](symbol){fits}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){atmp}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alpha}<LSEP>[](symbol){m}<LEND>[statement 10; assign](){=}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){wfun}<LSEP>[](symbol){y}<LSEP>[](symbol){fits}<LEND>[statement 11; assign](){=}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){w}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){fits}<LEND>[](symbol){y}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.err}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){tab}<LEND>[](symbol){n}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){train.kap}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){kapstat}<LSEP>[](symbol){tab}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){indx}<LEND>[call](){}<LSEP>[](symbol){setdiff}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){n}<LEND>[](symbol){xval}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){btmp}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){fits}<LEND>[](symbol){indx}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){btmp}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oobm.mat}<LSEP>[](symbol){indx}<LSEP>[](symbol){btmp}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oobm.mat}<LSEP>[](symbol){indx}<LSEP>[](symbol){btmp}<LEND>[argument 1; 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){oobm.mat}<LSEP>[](symbol){indx}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){btmp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oobm.mat}<LSEP>[](symbol){indx}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){btmp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oobm.mat}<LSEP>[](symbol){indx}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){btmp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oobm.mat}<LSEP>[](symbol){indx}<LSEP>[](symbol){}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){btmp}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){denom}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){oobm.mat}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){sum}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){vals}<LEND>[call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){denom}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){vals}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ytr}<LEND>[call](){}<LSEP>[](symbol){[}<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){which.max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oobm.mat}<LSEP>[](symbol){vals}<LSEP>[](symbol){}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ytr}<LEND>[call](){}<LSEP>[](symbol){[}<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){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oobm.mat}<LSEP>[](symbol){vals}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){which.max}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){oobm.err}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){ytr}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){vals}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){vals}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test.y}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){next}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){fit1}<LEND>[call](){}<LSEP>[](symbol){predict.type}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){fit}<LSEP>[](symbol){m}<LEND>[](symbol){test.x}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){fits.test}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){fits.test}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){alpha}<LSEP>[](symbol){m}<LEND>[](symbol){fit1}<LEND>[statement 21; control flow](){if}<LSEP>[](symbol){shift}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){f2}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){fit1}<LEND>[](symbol){fits.test}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){tab}<LEND>[call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){fits.test}<LEND>[](symbol){test.y}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.err}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){tab}<LEND>[](symbol){test.n}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){test.kap}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){kapstat}<LSEP>[](symbol){tab}<LEND>[statement 28; control flow](){if}<LSEP>[](symbol){shift}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){alpha}<LSEP>[](symbol){atmp}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fits}<LSEP>[](symbol){f1}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){fits.test}<LSEP>[](symbol){f2}<LEND>[statement 29; assign](){=}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){fits}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 30; 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){fits}<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 31; assign](){<-}<LSEP>[](symbol){errs}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){train.err}<LSEP>[](symbol){train.kap}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){ans}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 33; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ans}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){fits}<LEND>[statement 34; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){test.y}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){errs}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){errs}<LSEP>[](symbol){test.err}<LSEP>[](symbol){test.kap}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ans}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){fits.test}<LEND>[statement 35; assign](){=}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){fit}<LSEP>[](symbol){alpha}<LSEP>[](symbol){ans}<LSEP>[](symbol){errs}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){oobm.err}<LSEP>[](symbol){oobm.mat}<LEND>[](symbol){w}<LSEP>[](symbol){shift}<LSEP>[](symbol){lossObj}<LEND>[statement 36; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){obj} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){logistic}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){exp}<LSEP>[](symbol){x}<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){exp}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){rrreg.bayes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){formula}<LSEP>[](symbol){p}<LSEP>[](symbol){p0}<LSEP>[](symbol){p1}<LSEP>[](symbol){design}<LSEP>[](symbol){data}<LSEP>[](symbol){group.mixed}<LSEP>[](symbol){formula.mixed}<LSEP>[](symbol){verbose}<LSEP>[](symbol){n.draws}<LSEP>[](symbol){burnin}<LSEP>[](symbol){thin}<LSEP>[](symbol){beta.start}<LSEP>[](symbol){beta.mu0}<LSEP>[](symbol){beta.A0}<LSEP>[](symbol){beta.tune}<LSEP>[](symbol){Psi.start}<LSEP>[](symbol){Psi.df}<LSEP>[](symbol){Psi.scale}<LSEP>[](symbol){Psi.tune}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ictreg.call}<LEND>[call](){}<LSEP>[](symbol){match.call}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){match.call}<LSEP>[argument 0; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){p}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){p0}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){p1}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){q}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){design}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){group.mixed}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){formula.mixed}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){start}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){maxIter}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){verbose}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){optim}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){em.converge}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){n.draws}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){beta.start}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){beta.mu0}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){beta.A0}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){beta.tune}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){Psi.start}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){Psi.df}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){Psi.scale}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){Psi.tune}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){burnin}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){thin}<LEND>[litteral](NULL){NULL}<LEND>[statement 3; 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 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mf}<LSEP>[](symbol){na.action}<LEND>[litteral](str){na.pass}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mf}<LEND>[call](){}<LSEP>[](symbol){eval.parent}<LSEP>[](symbol){mf}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n.draws}<LSEP>[](symbol){burnin}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input burnin must be set t...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){burnin}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){burnin}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){burnin}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input burnin must be great...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){thin}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){n.draws}<LSEP>[](symbol){burnin}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input thin must be greater...}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){model.matrix.default}<LEND>[argument 0; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){mf}<LSEP>[argument 1; litteral](str){terms}<LEND>[](symbol){mf}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){model.response}<LSEP>[](symbol){mf}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){mixed}<LEND>[call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){missing}<LSEP>[argument 0; litteral](str){group.mixed}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mixed}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){model.matrix}<LSEP>[](symbol){formula.mixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){model.frame}<LSEP>[](symbol){formula.mixed}<LSEP>[](symbol){data}<LSEP>[argument 2; litteral](str){na.pass}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){na.x}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){sum}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){na.y}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){y}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mixed}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){na.z}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){sum}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){na.cond}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.y}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.z}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){na.cond}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.y}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.cond}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.cond}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mixed}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.cond}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[](symbol){}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mixed}<LSEP>[argument 1; litteral](logical){TRUE}<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){%in%}<LSEP>[](symbol){group.mixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){data}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The covariate named in group.m...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){grp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){data}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){na.cond}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){group.mixed}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){grp}<LEND>[argument 1; litteral](str){character}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){grp}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LSEP>[](symbol){grp}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){grp.labels}<LEND>[call](){}<LSEP>[](symbol){sort}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){grp}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){z.grp}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){grp}<LSEP>[](symbol){z}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){z.grp}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){grp}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){Some or all of the variables s...}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){nPar}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[argument 0; litteral](str){beta.start}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta.start}<LEND>[call](){}<LSEP>[](symbol){runif}<LSEP>[](symbol){nPar}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[argument 0; litteral](str){beta.mu0}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta.mu0}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){nPar}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[argument 0; litteral](str){beta.A0}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta.A0}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){nPar}<LEND>[argument 1; litteral](real){0.010000}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[argument 0; litteral](str){beta.tune}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The Metropolis tuning input ob...}<LEND>[false branch; 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){beta.tune}<LEND>[argument 1; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){beta.tune}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nPar}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta.tune}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){nPar}<LEND>[](symbol){beta.tune}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){beta.tune}<LEND>[argument 1; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){beta.tune}<LEND>[](symbol){nPar}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta.tune}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){beta.tune}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){beta.tune}<LEND>[argument 1; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){beta.tune}<LEND>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){beta.tune}<LEND>[](symbol){nPar}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){beta.tune}<LEND>[](symbol){nPar}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input beta.tune is malform...}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mixed}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[argument 0; litteral](str){Psi.start}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi.start}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){10.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){Psi.start}<LEND>[argument 1; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Psi.start}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Psi.start}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi.start}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[](symbol){Psi.start}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){Psi.start}<LEND>[argument 1; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){Psi.start}<LEND>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){Psi.start}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){Psi.start}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input Psi.start is malform...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[argument 0; litteral](str){Psi.df}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi.df}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[argument 0; litteral](str){Psi.scale}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi.scale}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){Psi.scale}<LEND>[argument 1; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Psi.scale}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Psi.scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi.scale}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[](symbol){Psi.scale}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){Psi.scale}<LEND>[argument 1; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){Psi.scale}<LEND>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){Psi.scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){Psi.scale}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input Psi.scale is malform...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){missing}<LSEP>[argument 0; litteral](str){Psi.tune}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The Metropolis tuning input ob...}<LEND>[false branch; 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){Psi.tune}<LEND>[argument 1; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Psi.tune}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){grp}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Psi.tune}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){Psi.tune}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){grp}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){Psi.tune}<LEND>[argument 1; litteral](str){matrix}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){Psi.tune}<LEND>[argument 1; litteral](str){numeric}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Psi.tune}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LSEP>[](symbol){grp}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The input Psi.tune is malforme...}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){mixed}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bayes.fit}<LEND>[call](){}<LSEP>[](symbol){rrbayes.fit}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LSEP>[](symbol){p}<LSEP>[](symbol){p1}<LSEP>[](symbol){n.draws}<LSEP>[](symbol){beta.start}<LSEP>[](symbol){beta.mu0}<LSEP>[](symbol){beta.A0}<LSEP>[](symbol){beta.tune}<LSEP>[](symbol){verbose}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta.mcmc}<LEND>[call](){}<LSEP>[](symbol){mcmc}<LSEP>[](symbol){bayes.fit}<LSEP>[](symbol){burnin}<LSEP>[](symbol){thin}<LEND>[argument 3; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){bayes.fit}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){return.object}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){beta.mcmc}<LSEP>[](symbol){df}<LEND>[argument 2; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){design}<LSEP>[](symbol){p}<LSEP>[](symbol){p1}<LSEP>[](symbol){p0}<LSEP>[](symbol){beta.tune}<LSEP>[](symbol){mixed}<LEND>[argument 11; call](){}<LSEP>[](symbol){match.call}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bayes.fit}<LEND>[call](){}<LSEP>[](symbol){rrbayesmixed.fit}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LSEP>[](symbol){z}<LSEP>[](symbol){p}<LSEP>[](symbol){p1}<LEND>[argument 5; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){grp}<LEND>[](symbol){n.draws}<LSEP>[](symbol){beta.start}<LSEP>[](symbol){Psi.start}<LSEP>[](symbol){beta.mu0}<LSEP>[](symbol){beta.A0}<LSEP>[](symbol){Psi.df}<LSEP>[](symbol){Psi.scale}<LSEP>[](symbol){beta.tune}<LSEP>[](symbol){Psi.tune}<LSEP>[](symbol){verbose}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta.mcmc}<LEND>[call](){}<LSEP>[](symbol){mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bayes.fit}<LSEP>[](symbol){beta}<LEND>[](symbol){burnin}<LSEP>[](symbol){thin}<LEND>[argument 3; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bayes.fit}<LSEP>[](symbol){beta}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gamma.mcmc}<LEND>[call](){}<LSEP>[](symbol){mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bayes.fit}<LSEP>[](symbol){gamma}<LEND>[](symbol){burnin}<LSEP>[](symbol){thin}<LEND>[argument 3; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bayes.fit}<LSEP>[](symbol){gamma}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Psi.mcmc}<LEND>[call](){}<LSEP>[](symbol){mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bayes.fit}<LSEP>[](symbol){Psi}<LEND>[](symbol){burnin}<LSEP>[](symbol){thin}<LEND>[argument 3; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){bayes.fit}<LSEP>[](symbol){Psi}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){return.object}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){beta.mcmc}<LSEP>[](symbol){gamma.mcmc}<LSEP>[](symbol){Psi.mcmc}<LSEP>[](symbol){df}<LEND>[argument 4; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){x}<LEND>[argument 5; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){z}<LEND>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){z}<LSEP>[](symbol){grp}<LSEP>[](symbol){grp.labels}<LSEP>[](symbol){design}<LSEP>[](symbol){p}<LSEP>[](symbol){p1}<LSEP>[](symbol){p0}<LSEP>[](symbol){beta.tune}<LSEP>[](symbol){Psi.tune}<LSEP>[](symbol){mixed}<LEND>[argument 18; call](){}<LSEP>[](symbol){match.call}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){return.object}<LEND>[litteral](str){rrreg.bayes}<LEND>[statement 30; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){return.object}<LEND>[assign](){<-}<LSEP>[](symbol){coef.rrreg.bayes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){ranef}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta.coef}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){mean}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){beta.coef}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){return.object}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){beta.coef}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){mixed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ranef}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){psi.label}<LEND>[call](){}<LSEP>[](symbol){c}<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}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<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>[](symbol){psi.label}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){psi.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Psi.coef}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){mean}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Psi.coef}<LEND>[](symbol){psi.label}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){return.object}<LSEP>[](symbol){Psi}<LEND>[](symbol){Psi.coef}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){gamma.label}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.names}<LEND>[argument 1; litteral](str){group}<LEND>[argument 2; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){gamma.label}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.names}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){gamma.coef}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){mean}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){gamma.coef}<LEND>[](symbol){gamma.label}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){return.object}<LSEP>[](symbol){gamma}<LEND>[](symbol){gamma.coef}<LEND>[](symbol){return.object}<LEND>[assign](){<-}<LSEP>[](symbol){coef.rrreg.bayes.list}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){ranef}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){as.mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){mixed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){as.mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ranef}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){gamma}<LEND>[call](){}<LSEP>[](symbol){as.mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){gamma}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[litteral](str){rrreg.bayes}<LEND>[statement 3; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){object}<LSEP>[](symbol){ranef}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){sd.rrreg.bayes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){ranef}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){beta.coef}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sd}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){beta.coef}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){return.object}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){beta.coef}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){mixed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){psi.label}<LEND>[call](){}<LSEP>[](symbol){c}<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}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<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>[](symbol){psi.label}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){psi.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Psi.coef}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sd}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){Psi.coef}<LEND>[](symbol){psi.label}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){return.object}<LSEP>[](symbol){Psi}<LEND>[](symbol){Psi.coef}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ranef}<LSEP>[argument 1; litteral](logical){TRUE}<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){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){gamma.label}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.names}<LEND>[argument 1; litteral](str){group}<LEND>[argument 2; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coef.names.mixed}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){gamma.label}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){group.names}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gamma.coef}<LEND>[call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){gamma}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sd}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){gamma.coef}<LEND>[](symbol){gamma.label}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){return.object}<LSEP>[](symbol){gamma}<LEND>[](symbol){gamma.coef}<LEND>[](symbol){return.object}<LEND>[assign](){<-}<LSEP>[](symbol){sd.rrreg.bayes.list}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){ranef}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){as.mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){mixed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){as.mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ranef}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){gamma}<LEND>[call](){}<LSEP>[](symbol){as.mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){gamma}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[litteral](str){rrreg.bayes}<LEND>[statement 3; call](){}<LSEP>[](symbol){sd.rrreg.bayes}<LSEP>[](symbol){object}<LSEP>[](symbol){ranef}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){vcov.rrreg.bayes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){mixed}<LEND>[argument 1; litteral](logical){FALSE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cov}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cov}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){gamma}<LEND>[assign](){<-}<LSEP>[](symbol){vcov.rrreg.bayes.list}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){as.mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){beta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){mixed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[call](){}<LSEP>[](symbol){as.mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){Psi}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){gamma}<LEND>[call](){}<LSEP>[](symbol){as.mcmc}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LSEP>[](symbol){rbind}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){gamma}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[litteral](str){rrreg.bayes}<LEND>[statement 3; call](){}<LSEP>[](symbol){vcov}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[assign](){<-}<LSEP>[](symbol){print.rrreg.bayes}<LEND>[assign](){<-}<LSEP>[](symbol){print.rrreg.bayes.list}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nRandomized Response Techniqu...}<LEND>[statement 1; call](){}<LSEP>[](symbol){dput}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nCoefficient estimates\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LEND>[statement 4; call](){}<LSEP>[](symbol){summarize.design}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){design}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){p}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){p0}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){p1}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){q}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){as.list.rrreg.bayes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta.list}<LEND>[call](){}<LSEP>[](symbol){list}<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){x}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){beta.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LEND>[](symbol){beta}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){beta.list}<LEND>[call](){}<LSEP>[](symbol){as.mcmc.list}<LSEP>[](symbol){beta.list}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mixed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gamma.list}<LEND>[call](){}<LSEP>[](symbol){list}<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){x}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){gamma.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LEND>[](symbol){gamma}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gamma.list}<LEND>[call](){}<LSEP>[](symbol){as.mcmc.list}<LSEP>[](symbol){gamma.list}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Psi.list}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[statement 4; 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){x}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Psi.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[](symbol){i}<LEND>[](symbol){Psi}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Psi.list}<LEND>[call](){}<LSEP>[](symbol){as.mcmc.list}<LSEP>[](symbol){Psi.list}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){return.object}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){return.object}<LSEP>[](symbol){beta}<LEND>[](symbol){beta.list}<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){x}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){mixed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){return.object}<LSEP>[](symbol){gamma}<LEND>[](symbol){gamma.list}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){return.object}<LSEP>[](symbol){Psi}<LEND>[](symbol){Psi.list}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){return.object}<LEND>[litteral](str){rrreg.bayes.list}<LEND>[](symbol){return.object}<LEND>[assign](){<-}<LSEP>[](symbol){summary.rrreg.bayes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){structure}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){summary.rrreg.bayes}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){print.summary.rrreg.bayes}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nRandomized Response Bayesian...}<LEND>[statement 1; call](){}<LSEP>[](symbol){dput}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nIndividual-level predictors \n}<LEND>[statement 3; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LEND>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){sd.rrreg.bayes}<LSEP>[](symbol){x}<LEND>[](symbol){beta}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Est.}<LSEP>[argument 1; litteral](str){S.E.}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mixed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nRandom effects \n}<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){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){gamma.label}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group.names}<LEND>[argument 1; litteral](str){group}<LEND>[argument 2; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){gamma.label}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group.names}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LSEP>[](symbol){T}<LEND>[](symbol){gamma}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){sd.rrreg.bayes}<LSEP>[](symbol){x}<LSEP>[](symbol){T}<LEND>[](symbol){gamma}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){gamma.label}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){gamma.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Est.}<LSEP>[argument 1; litteral](str){S.E.}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nVariance of the random effec...}<LEND>[statement 4; 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){coef}<LSEP>[](symbol){x}<LEND>[](symbol){Psi}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){psi.label}<LSEP>[litteral](str){Psi}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){psi.label}<LEND>[call](){}<LSEP>[](symbol){c}<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}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<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>[](symbol){psi.label}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){psi.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[](symbol){j}<LEND>[statement 5; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LEND>[](symbol){Psi}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){sd.rrreg.bayes}<LSEP>[](symbol){x}<LEND>[](symbol){Psi}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){psi.label}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){psi.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Est.}<LSEP>[argument 1; litteral](str){S.E.}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){summarize.design}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){design}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){p}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){p0}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){p1}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){q}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\n}<LEND>[statement 8; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){summary.rrreg.bayes.list}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){structure}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){summary.rrreg.bayes.list}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){print.summary.rrreg.bayes.list}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nRandomized Response Bayesian...}<LEND>[statement 1; call](){}<LSEP>[](symbol){dput}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){call}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nSummary from}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){beta}<LEND>[argument 2; litteral](str){chains}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\nIndividual-level predictors\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LEND>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){sd.rrreg.bayes.list}<LSEP>[](symbol){x}<LEND>[](symbol){beta}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Est.}<LSEP>[argument 1; litteral](str){S.E.}<LEND>[statement 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nGelman-Rubin statistics:\n}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){gelmanrubin}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){gelman.diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){beta}<LEND>[](symbol){psrf}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){gelmanrubin}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names}<LEND>[statement 8; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){gelmanrubin}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){mixed}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\nRandom effects\n}<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){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){gamma.label}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group.names}<LEND>[argument 2; litteral](str){group}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group.names}<LEND>[argument 4; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[false branch; assign](){<-}<LSEP>[](symbol){gamma.label}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){group.names}<LEND>[statement 2; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LSEP>[](symbol){T}<LEND>[](symbol){gamma}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){sd.rrreg.bayes.list}<LSEP>[](symbol){x}<LSEP>[](symbol){T}<LEND>[](symbol){gamma}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){gamma.label}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){gamma.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Est.}<LSEP>[argument 1; litteral](str){S.E.}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nGelman-Rubin statistics:\n}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gelmanrubin}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){gelman.diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){gamma}<LEND>[](symbol){psrf}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){gelmanrubin}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){groups}<LEND>[statement 6; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){gelmanrubin}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nVariance of the random effec...}<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){coef}<LSEP>[](symbol){x}<LEND>[](symbol){Psi}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){psi.label}<LSEP>[litteral](str){Psi}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){psi.label}<LEND>[call](){}<LSEP>[](symbol){c}<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}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<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>[](symbol){psi.label}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){psi.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[](symbol){j}<LEND>[statement 9; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){x}<LEND>[](symbol){Psi}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){sd.rrreg.bayes.list}<LSEP>[](symbol){x}<LEND>[](symbol){Psi}<LEND>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){psi.label}<LEND>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 4; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){psi.label}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Est.}<LSEP>[argument 1; litteral](str){S.E.}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\nGelman-Rubin statistics:\n}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){gelmanrubin}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){gelman.diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){Psi}<LEND>[](symbol){psrf}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){gelmanrubin}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){coef.names.mixed}<LEND>[statement 13; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){gelmanrubin}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n}<LEND>[statement 11; call](){}<LSEP>[](symbol){summarize.design}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){design}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){p}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){p0}<LEND>[argument 3; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){p1}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){q}<LEND>[statement 12; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x}<LEND>[assign](){<-}<LSEP>[](symbol){rrbayes.fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Y}<LSEP>[](symbol){X}<LSEP>[](symbol){p}<LSEP>[](symbol){p1}<LSEP>[](symbol){n.draws}<LSEP>[](symbol){beta.start}<LSEP>[](symbol){beta.mu0}<LSEP>[](symbol){beta.A0}<LSEP>[](symbol){beta.prop}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){X}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){.C}<LSEP>[argument 0; litteral](str){R2rrLogit}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){Y}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){X}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){beta.start}<LEND>[argument 4; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){p}<LEND>[argument 5; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){p1}<LEND>[argument 6; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){n}<LEND>[argument 7; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){k}<LEND>[argument 8; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){beta.mu0}<LEND>[argument 9; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){beta.A0}<LEND>[argument 10; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){beta.prop}<LEND>[argument 11; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){n.draws}<LEND>[argument 12; call](){}<LSEP>[](symbol){as.integer}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[](symbol){verbose}<LEND>[argument 14; call](){}<LSEP>[](symbol){double}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){k}<LSEP>[](symbol){n.draws}<LEND>[argument 15; litteral](str){rr}<LEND>[](symbol){store}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[](symbol){res}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){k}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){res}<LEND>[litteral](str){rrBayes}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res}<LEND>[assign](){<-}<LSEP>[](symbol){rrbayesmixed.fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){Y}<LSEP>[](symbol){X}<LSEP>[](symbol){Z}<LSEP>[](symbol){p}<LSEP>[](symbol){p1}<LSEP>[](symbol){grp}<LSEP>[](symbol){n.draws}<LSEP>[](symbol){beta.start}<LSEP>[](symbol){Psi}<LSEP>[](symbol){beta.mu0}<LSEP>[](symbol){beta.A0}<LSEP>[](symbol){Psi.df}<LSEP>[](symbol){Psi.scale}<LSEP>[](symbol){beta.tune}<LSEP>[](symbol){Psi.tune}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){X}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){Z}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){n.grp}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){grp}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){.C}<LSEP>[argument 0; litteral](str){R2rrLogitMixed}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){Y}<LEND>[argument 2; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){X}<LEND>[argument 3; call](){}<LSEP>[](symbol){as.double}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){Z}<LEND>[argument 4; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){p}<LEND>[argument 5; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){p1}<LEND>[argument 6; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){grp}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){beta.start}<LEND>[argument 8; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){Psi}<LEND>[argument 9; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){n}<LEND>[argument 10; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){k}<LEND>[argument 11; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){m}<LEND>[argument 12; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){n.grp}<LEND>[argument 13; call](){}<LSEP>[](symbol){as.integer}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){grp}<LEND>[argument 14; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){beta.mu0}<LEND>[argument 15; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){beta.A0}<LEND>[argument 16; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){Psi.df}<LEND>[argument 17; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){Psi.scale}<LEND>[argument 18; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){beta.tune}<LEND>[argument 19; call](){}<LSEP>[](symbol){as.double}<LSEP>[](symbol){Psi.tune}<LEND>[argument 20; call](){}<LSEP>[](symbol){as.integer}<LSEP>[](symbol){n.draws}<LEND>[argument 21; call](){}<LSEP>[](symbol){integer}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 22; call](){}<LSEP>[](symbol){integer}<LSEP>[](symbol){n.grp}<LEND>[](symbol){verbose}<LEND>[argument 24; call](){}<LSEP>[](symbol){double}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n.draws}<LSEP>[](symbol){k}<LEND>[argument 25; call](){}<LSEP>[](symbol){double}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n.draws}<LSEP>[](symbol){m}<LEND>[](symbol){n.grp}<LEND>[argument 26; call](){}<LSEP>[](symbol){double}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){n.draws}<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; litteral](real){2.000000}<LEND>[argument 27; litteral](str){rr}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){betaStore}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){gammaStore}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){m}<LSEP>[](symbol){n.grp}<LEND>[argument 2; call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){res}<LSEP>[](symbol){PsiStore}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 2; 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; litteral](real){2.000000}<LEND>[statement 6; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){res} |
[](){expression}<LSEP>[litteral](NULL){NULL} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){is.discdd.misclass}<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){discdd.misclass} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_user_properties}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){user_id}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){user_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){user_id}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){rt_url}<LSEP>[argument 0; litteral](str){user}<LSEP>[](symbol){user_id}<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){does not exist}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){User }<LSEP>[](symbol){user_id}<LSEP>[argument 2; litteral](str){ does not exist.}<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){matdistl2dnormpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){meanL}<LSEP>[](symbol){varL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){meanL}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LEND>[statement 2; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){dimnames}<LSEP>[](symbol){W}<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 3; assign](){=}<LSEP>[](symbol){W}<LEND>[call](){}<LSEP>[](symbol){matipl2dpar}<LSEP>[](symbol){meanL}<LSEP>[](symbol){varL}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){norme}<LEND>[call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){W}<LEND>[statement 5; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n}<LEND>[body; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){i}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<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 6; assign](){=}<LSEP>[](symbol){distances}<LEND>[call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){n}<LEND>[statement 7; 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 8; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){n}<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){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 9; call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){distances} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){print.fdiscd.misclass}<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; 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){\n\nmisallocation ratio: }<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){misclassed}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 9; call](){}<LSEP>[](symbol){print}<LSEP>[](symbol){alloc}<LSEP>[argument 1; litteral](str){}<LSEP>[](symbol){...}<LEND>[statement 10; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){------------------------------...}<LEND>[statement 11; call](){}<LSEP>[](symbol){print}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){classification}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){...}<LEND>[statement 12; 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 13; 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 14; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){addBorders}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){de}<LSEP>[](symbol){eu}<LSEP>[](symbol){add}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){raster}<LSEP>[argument 1; litteral](str){addBorders}<LEND>[statement 1; call](){}<LSEP>[](symbol){load}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/DEU.rda}<LSEP>[argument 1; litteral](str){rdwd}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LEND>[statement 2; call](){}<LSEP>[](symbol){load}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/EUR.rda}<LSEP>[argument 1; litteral](str){rdwd}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LEND>[statement 3; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){plot}<LEND>[](symbol){DEU}<LSEP>[](symbol){add}<LSEP>[](symbol){de}<LSEP>[](symbol){...}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){raster}<LSEP>[](symbol){plot}<LEND>[](symbol){EUR}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[](symbol){eu}<LSEP>[](symbol){...}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){DEU}<LSEP>[](symbol){EUR}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){getRversion}<LEND>[argument 1; litteral](str){2.15.1}<LEND>[true branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){globalVariables}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){DEU}<LSEP>[argument 1; litteral](str){EUR}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){sp}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){load}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/DEU.rda}<LSEP>[argument 1; litteral](str){rdwd}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){sp}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; call](){}<LSEP>[](symbol){load}<LEND>[argument 0; call](){}<LSEP>[](symbol){system.file}<LSEP>[argument 0; litteral](str){extdata/EUR.rda}<LSEP>[argument 1; litteral](str){rdwd}<LEND>[argument 1; call](){}<LSEP>[](symbol){environment} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){is.mdsdd}<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){mdsdd} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){softTh}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){thld}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){abs}<LSEP>[](symbol){y}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){sign}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){x}<LSEP>[](symbol){thld}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){thld}<LEND>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.fst.pop}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){nboots}<LSEP>[](symbol){percent}<LSEP>[](symbol){nclusters}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){fsts}<LEND>[call](){}<LSEP>[](symbol){stamppFst}<LSEP>[](symbol){x}<LSEP>[](symbol){nboots}<LSEP>[](symbol){percent}<LSEP>[](symbol){nclusters}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fsts} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){skewness.folder}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){na.rm}<LSEP>[](symbol){type}<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}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){skewness}<LSEP>[](symbol){na.rm}<LSEP>[](symbol){type} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){is.fhclustd}<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){fhclustd} |
[](){expression}<LSEP>[litteral](NULL){NULL}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){globalVariables}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){.} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){dtwDist}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mx}<LSEP>[](symbol){my}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mye}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LSEP>[](symbol){FUN}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){FUN}<LSEP>[](symbol){y}<LSEP>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){my}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){mye}<LSEP>[](symbol){mx}<LSEP>[](symbol){dtwpairdist}<LSEP>[](symbol){...} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.bases}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<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; 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){cat}<LSEP>[argument 0; litteral](str){ Processing Presence/Absence ...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){datatype}<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; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Processing a SNP dataset\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){datatype}<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){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<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){TrimmedSequence}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: Dataset does no...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){p1}<LEND>[assign](){<-}<LSEP>[](symbol){p2}<LSEP>[litteral](NULL){NULL}<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){ Counting the bases\n}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<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](str){A}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<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](str){G}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<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](str){C}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<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](str){T}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){total}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_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>[statement 15; assign](){<-}<LSEP>[](symbol){total.ATGC}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){A}<LSEP>[](symbol){G}<LSEP>[](symbol){C}<LSEP>[](symbol){T}<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; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){total}<LSEP>[](symbol){total.ATGC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Codes other than A,...}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){other}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){total}<LSEP>[](symbol){total.ATGC}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){other}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){other}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[](symbol){total}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){A}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[](symbol){total}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){G}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[](symbol){total}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){T}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){T}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[](symbol){total}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){C}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){C}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[](symbol){total}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){mn}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_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>[statement 24; assign](){<-}<LSEP>[](symbol){mx}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_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>[statement 25; assign](){<-}<LSEP>[](symbol){mi}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_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>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){datatype}<LSEP>[argument 1; litteral](str){SNP}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matrix}<LEND>[call](){}<LSEP>[](symbol){str_split_fixed}<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){SNP}<LEND>[argument 1; litteral](str){:}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){state.change}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<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){ Counting Transitions and Tra...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tv}<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){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){A>C}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){C>A}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){G>T}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){T>G}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){A>T}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){T>A}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){G>C}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){C>G}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){ts}<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){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){A>G}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){G>A}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){C>T}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){str_count}<LSEP>[](symbol){state.change}<LSEP>[argument 1; litteral](str){T>C}<LEND>[statement 5; 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){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ts}<LSEP>[](symbol){tv}<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>[](symbol){TrimmedSequence}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Sum of transitions ...}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){ts}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ts}<LSEP>[argument 1; litteral](real){100.000000}<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>[](symbol){TrimmedSequence}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){tv}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){tv}<LSEP>[argument 1; litteral](real){100.000000}<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>[](symbol){TrimmedSequence}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){ratio}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){ts}<LSEP>[](symbol){tv}<LEND>[statement 27; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Average trimmed sequence len...}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){mn}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){(}<LSEP>[](symbol){mi}<LSEP>[argument 4; litteral](str){to}<LSEP>[](symbol){mx}<LSEP>[argument 6; litteral](str){)}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 28; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Total number of trimmed sequ...}<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>[](symbol){TrimmedSequence}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 29; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Base frequencies (%)\n}<LEND>[statement 30; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ A:}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){A}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 31; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ G:}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){G}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 32; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ T:}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){T}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){\n}<LEND>[statement 33; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ C:}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){C}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](str){\n\n}<LEND>[statement 34; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){datatype}<LSEP>[argument 1; litteral](str){SilicoDArT}<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){ Tag P/A data (SilicoDArT), t...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tv}<LSEP>[litteral](logical){NA}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){ts}<LSEP>[litteral](logical){NA}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Transitions :}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){ts}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Transversions:}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){tv}<LSEP>[argument 1; litteral](real){2.000000}<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){ tv/ts ratio:}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){ratio}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){gg}<LSEP>[litteral](NULL){NULL}<LEND>[statement 36; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){datatype}<LSEP>[argument 1; litteral](str){SNP}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){SNP: Base Frequencies}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Tag P/A: Base Frequencies}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){bases}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){A}<LSEP>[argument 1; litteral](str){C}<LSEP>[argument 2; litteral](str){T}<LSEP>[argument 3; litteral](str){G}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){freq}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){A}<LSEP>[](symbol){C}<LSEP>[](symbol){T}<LSEP>[](symbol){G}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){bases}<LSEP>[](symbol){freq}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){p1}<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){ggplot}<LSEP>[](symbol){df}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){bases}<LSEP>[](symbol){freq}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){identity}<LSEP>[argument 1; litteral](str){steelblue}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){Bases}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){Frequency}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LSEP>[](symbol){title}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){datatype}<LSEP>[argument 1; litteral](str){SNP}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){bases}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Ts}<LSEP>[argument 1; litteral](str){Tv}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){freq}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){ts}<LSEP>[](symbol){tv}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){df2}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){bases}<LSEP>[](symbol){freq}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p2}<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){ggplot}<LSEP>[](symbol){df2}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){bases}<LSEP>[](symbol){freq}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_bar}<LSEP>[argument 0; litteral](str){identity}<LSEP>[argument 1; litteral](str){steelblue}<LEND>[argument 1; call](){}<LSEP>[](symbol){xlab}<LSEP>[argument 0; litteral](str){Mutation Type}<LEND>[argument 1; call](){}<LSEP>[](symbol){ylab}<LSEP>[argument 0; litteral](str){Frequency}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){SNP: Ts/Tv Rates [ratio =}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){ratio}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){]}<LEND>[statement 4; call](){}<LSEP>[](symbol){grid.arrange}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){show}<LSEP>[](symbol){p1}<LEND>[statement 37; 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){ Creating an output vector to...}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){A}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){G}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){T}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){C}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 4; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){tv}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 5; call](){}<LSEP>[](symbol){round}<LSEP>[](symbol){ts}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){A}<LSEP>[argument 1; litteral](str){G}<LSEP>[argument 2; litteral](str){T}<LSEP>[argument 3; litteral](str){C}<LSEP>[argument 4; litteral](str){tv}<LSEP>[argument 5; litteral](str){ts}<LEND>[statement 40; 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 41; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){out}<LSEP>[](symbol){p1}<LSEP>[](symbol){p2} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.propShared}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){Rcpp}<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){xx}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){glpropSharedC}<LEND>[](){function}<LSEP>[parameters; litteral](NULL){NULL}<LSEP>[body; block](){}<LEND>[statement 4; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){Rcpp}<LSEP>[](symbol){cppFunction}<LEND>[argument 0; litteral](str){NumericMatrix glpropSharedC(Nu...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){glpropSharedC}<LSEP>[](symbol){xx}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){res}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){diag}<LSEP>[](symbol){res}<LEND>[litteral](real){1.000000}<LEND>[](symbol){res} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){var.folder}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){na.rm}<LSEP>[](symbol){use}<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){var}<LSEP>[](symbol){na.rm}<LSEP>[](symbol){use} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){fmdsd}<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){add}<LSEP>[](symbol){nb.factors}<LSEP>[](symbol){nb.values}<LSEP>[](symbol){sub.title}<LSEP>[](symbol){plot.eigen}<LSEP>[](symbol){plot.score}<LSEP>[](symbol){nscore}<LSEP>[](symbol){filename}<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){fmdsd 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 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; 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 18; 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 19; 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 20; assign](){<-}<LSEP>[](symbol){moyL0}<LSEP>[](symbol){moyL}<LEND>[statement 21; 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 22; 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 23; assign](){<-}<LSEP>[](symbol){varL0}<LSEP>[](symbol){varL}<LEND>[statement 24; assign](){=}<LSEP>[](symbol){corL}<LSEP>[](symbol){varL}<LEND>[statement 25; 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 26; 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 27; 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 28; 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 29; 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 30; assign](){<-}<LSEP>[](symbol){dist.print}<LSEP>[](symbol){distance}<LEND>[statement 31; control flow](){if}<LSEP>[](symbol){gaussiand}<LEND>[true 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; 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){matjeffreys}<LSEP>[](symbol){xf}<LEND>[argument 3; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matdist}<LEND>[call](){}<LSEP>[](symbol){mathellinger}<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; 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){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 32; 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 33; assign](){<-}<LSEP>[](symbol){ep}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cmds}<LSEP>[](symbol){eig}<LEND>[statement 34; 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 35; assign](){<-}<LSEP>[](symbol){coor}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){cmds}<LSEP>[](symbol){points}<LEND>[statement 36; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){moyL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 37; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){varL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 38; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){corL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){skewnessL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 40; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){attributes}<LSEP>[](symbol){kurtosisL}<LEND>[](symbol){dimnames}<LEND>[](symbol){last.column.name}<LEND>[statement 41; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[](symbol){last.column.name}<LEND>[argument 2; 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}<LSEP>[](symbol){p}<LEND>[](symbol){dist.print}<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){levgroup}<LSEP>[](symbol){coor}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 42; 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){last.column.name}<LEND>[statement 43; assign](){<-}<LSEP>[](symbol){results}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){results}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){moyL}<LSEP>[](symbol){varL}<LSEP>[](symbol){corL}<LSEP>[](symbol){skewnessL}<LSEP>[](symbol){kurtosisL}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){results}<LEND>[litteral](str){fmdsd}<LEND>[statement 45; 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 46; 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 47; 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 48; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){results} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){logistic4_new}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LSEP>[](symbol){start}<LSEP>[](symbol){max_iter}<LSEP>[](symbol){lower_bound}<LSEP>[](symbol){upper_bound}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){start}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){start}<LEND>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'start' must be of length 4}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'beta' cannot be sma...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'eta' cannot be init...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[argument 4; call](){}<LSEP>[](symbol){suff_stats}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LEND>[argument 5; litteral](logical){FALSE}<LSEP>[](symbol){start}<LSEP>[](symbol){max_iter}<LEND>[argument 1; litteral](str){logistic4}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lower_bound}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){upper_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){constrained}<LEND>[litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lower_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){inf}<LEND>[argument 1; litteral](real){4.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lower_bound}<LEND>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'lower_bound' must be of length 4}<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){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<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>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){upper_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){inf}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){upper_bound}<LEND>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'upper_bound' must be of length 4}<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){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<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){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){lower_bound}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){upper_bound}<LEND>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){logistic4_fn}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 4; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<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){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[assign](){<-}<LSEP>[](symbol){fn.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){logistic4_fn}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){fn.logistic4_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){logistic4_fn}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){gradient_hessian.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](real){4.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){hessian}<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){length}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){b}<LSEP>[](symbol){f}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){f}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){t}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){u}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){u}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){t}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){u}<LEND>[statement 27; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){q}<LEND>[](symbol){t}<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){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){eta}<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){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){f}<LSEP>[](symbol){b}<LEND>[](symbol){t}<LEND>[](symbol){f}<LEND>[](symbol){u}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 33; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 34; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[](symbol){r}<LEND>[](symbol){u}<LEND>[statement 35; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){gradient}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 36; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[litteral](real){0.000000}<LEND>[statement 37; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){gradient}<LSEP>[](symbol){hessian}<LEND>[assign](){<-}<LSEP>[](symbol){rss.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 1; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; 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){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rss_fixed.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){known_param}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){known_param}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[](symbol){idx}<LEND>[](symbol){z}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known_param}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 5; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; 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){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rss_gradient_hessian.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){mu_gradient_hessian}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){G}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){H}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){r}<LEND>[](symbol){G}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){hessian}<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){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){G}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){G}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[](symbol){G}<LEND>[statement 11; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){gradient}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){rss_gradient_hessian_fixed.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){known_param}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){known_param}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[](symbol){idx}<LEND>[](symbol){z}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known_param}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){mu_gradient_hessian}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){G}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){H}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){r}<LEND>[](symbol){G}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){hessian}<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){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){G}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){G}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[](symbol){G}<LEND>[statement 15; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[](symbol){idx}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){idx}<LSEP>[](symbol){idx}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){mle_asy.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){g}<LEND>[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){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){t1}<LSEP>[litteral](real){0.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){t2}<LSEP>[litteral](real){0.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){t3}<LSEP>[litteral](real){0.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){t4}<LSEP>[litteral](real){0.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){t5}<LSEP>[litteral](real){0.000000}<LEND>[statement 12; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){t1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t1}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){t2}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<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>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){t3}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t3}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){t4}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t4}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){t5}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t5}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){denom}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){t1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t2}<LSEP>[](symbol){t3}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){denom}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alpha}<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){t1}<LSEP>[](symbol){t5}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t3}<LSEP>[](symbol){t4}<LEND>[](symbol){denom}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t1}<LSEP>[](symbol){t4}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t2}<LSEP>[](symbol){t5}<LEND>[](symbol){denom}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){alpha}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){beta}<LEND>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){init.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){stats}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rss_fn}<LEND>[call](){}<LSEP>[](symbol){rss}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){linear_fit}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){linear_coef}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){linear_fit}<LSEP>[](symbol){coefficients}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){min_value}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){max_value}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){zv}<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){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){min_value}<LEND>[argument 1; litteral](real){0.000010}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){max_value}<LSEP>[](symbol){min_value}<LEND>[argument 1; litteral](real){0.000020}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){zv}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){zv}<LEND>[argument 1; call](){}<LSEP>[](symbol){log1p}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){zv}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){zv}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){eta}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){min_value}<LSEP>[](symbol){max_value}<LSEP>[](symbol){eta}<LSEP>[](symbol){phi}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){theta}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){niter}<LSEP>[litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){linear_coef}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](real){0.200000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){weighted_mean}<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){object}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.900000}<LSEP>[](symbol){weighted_mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[](symbol){min_value}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.900000}<LSEP>[](symbol){weighted_mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[](symbol){max_value}<LEND>[argument 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){linear_coef}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.001000}<LEND>[false branch; litteral](real){0.001000}<LEND>[argument 3; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){m}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){theta}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){delta}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){v1}<LSEP>[litteral](integer){20}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){v2}<LSEP>[litteral](integer){20}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v1}<LSEP>[](symbol){v2}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){eta_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[](symbol){v1}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){phi_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){delta}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){delta}<LEND>[](symbol){v2}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){theta_tmp}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){v}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){rss_tmp}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LSEP>[](symbol){v}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){theta_eta_1}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){v2}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){rss_eta_1}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LSEP>[](symbol){v2}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){theta_eta_2}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[](symbol){v2}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){rss_eta_2}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LSEP>[](symbol){v2}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){0.000000}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){j}<LSEP>[litteral](real){0.000000}<LEND>[statement 30; control flow](){for}<LSEP>[](symbol){phi}<LSEP>[](symbol){phi_set}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){eta}<LSEP>[](symbol){eta_set}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){eta}<LSEP>[](symbol){phi}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){current_par}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_tmp}<LSEP>[](symbol){i}<LEND>[](symbol){current_rss}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[](symbol){phi}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){current_par}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_eta_1}<LSEP>[](symbol){j}<LEND>[](symbol){current_rss}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){20.000000}<LSEP>[](symbol){phi}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){current_par}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_eta_2}<LSEP>[](symbol){j}<LEND>[](symbol){current_rss}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_tmp}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){theta_1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){theta_2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){theta_3}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){v}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){theta_4}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_eta_1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){theta_5}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_2}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_eta_2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 37; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){constrained}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta_1}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){theta_2}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){theta_3}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_3}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){theta_4}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_4}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){theta_5}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_5}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){theta}<LSEP>[](symbol){theta_1}<LSEP>[](symbol){theta_2}<LSEP>[](symbol){theta_3}<LSEP>[](symbol){theta_4}<LSEP>[](symbol){theta_5}<LEND>[statement 39; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){fit_nlminb}<LSEP>[](symbol){object}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){start}<LEND>[statement 40; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[](symbol){best_rss}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){theta}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){niter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){niter}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){niter}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){theta}<LEND>[litteral](NULL){NULL}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){niter}<LEND>[litteral](NULL){NULL}<LEND>[statement 43; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 44; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){theta}<LSEP>[](symbol){niter}<LEND>[assign](){<-}<LSEP>[](symbol){fit.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){find_optimum}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){optimum}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){iterations}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[](symbol){theta}<LEND>[argument 5; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){minimum}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){4.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){logistic4_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){fitted.values}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){param_names}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){alpha}<LSEP>[argument 1; litteral](str){beta}<LSEP>[argument 2; litteral](str){eta}<LSEP>[argument 3; litteral](str){phi}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){coefficients}<LEND>[](symbol){param_names}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){estimated}<LEND>[](symbol){param_names}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){result}<LEND>[litteral](str){logistic4_fit}<LEND>[](symbol){result}<LEND>[assign](){<-}<LSEP>[](symbol){fit_constrained.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){constraint}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[argument 0; litteral](real){4.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lb_is_inf}<LEND>[call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ub_is_inf}<LEND>[call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){i}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[litteral](logical){TRUE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){lb_is_inf}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){ub_is_inf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){known_param}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](real){nan}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){find_optimum_constrained}<LSEP>[](symbol){object}<LSEP>[](symbol){constraint}<LSEP>[](symbol){known_param}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){optimum}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){estimated}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){iterations}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){estimated}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){estimated}<LSEP>[](symbol){theta}<LEND>[argument 5; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){minimum}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){estimated}<LEND>[argument 7; call](){}<LSEP>[](symbol){logistic4_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){fitted.values}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){param_names}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){alpha}<LSEP>[argument 1; litteral](str){beta}<LSEP>[argument 2; litteral](str){eta}<LSEP>[argument 3; litteral](str){phi}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){coefficients}<LEND>[](symbol){param_names}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){estimated}<LEND>[](symbol){param_names}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){result}<LEND>[litteral](str){logistic4_fit}<LEND>[](symbol){result}<LEND>[assign](){<-}<LSEP>[](symbol){fisher_info.logistic4}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LSEP>[](symbol){sigma}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gh}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[argument 2; litteral](real){4.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){G}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){H}<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){object}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){H}<LEND>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){H}<LEND>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){H}<LEND>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){H}<LEND>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gh}<LSEP>[](symbol){G}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){H}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){z}<LEND>[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){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<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){object}<LSEP>[](symbol){y}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){fim}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){H}<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}<LEND>[](symbol){G}<LEND>[](symbol){sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<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>[](symbol){G}<LEND>[](symbol){sigma}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){lab}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){theta}<LEND>[argument 1; litteral](str){sigma}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){fim}<LEND>[](symbol){lab}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){fim}<LEND>[](symbol){lab}<LEND>[](symbol){fim}<LEND>[assign](){<-}<LSEP>[](symbol){curve_variance.logistic4_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){V}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){vcov}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){V}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){nan}<LSEP>[](symbol){m}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){b}<LSEP>[](symbol){f}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){f}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){t}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){u}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){G}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){variance}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){nan}<LSEP>[](symbol){m}<LEND>[statement 22; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){variance}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){V}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){variance}<LEND>[assign](){<-}<LSEP>[](symbol){nauc.logistic4_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xlim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){xlim}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim' must be a numeric vecto...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim[1]' cannot be larger or ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ylim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){ylim}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim' must be a numeric vecto...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<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>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim[1]' cannot be larger or ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim[1]' cannot be negative}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){I}<LSEP>[litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){xlim_new}<LSEP>[](symbol){xlim}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<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){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){eta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){eta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tmp}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<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){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){eta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){eta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){I}<LEND>[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){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<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){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){+}<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>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){t1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){phi}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){t2}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){phi}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<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>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<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){beta}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){t1}<LSEP>[](symbol){t2}<LEND>[](symbol){eta}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){nauc}<LEND>[call](){}<LSEP>[](symbol){/}<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){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<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){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nauc}<LEND>[litteral](NULL){NULL}<LEND>[](symbol){nauc}<LEND>[assign](){<-}<LSEP>[](symbol){naac.logistic4_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nauc}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){warp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){d}<LSEP>[](symbol){index.reference}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.dtw}<LSEP>[](symbol){d}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){dtw object required}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){index.reference}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){iset}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){jset}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){iset}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){jset}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){d}<LSEP>[](symbol){index1}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){jmax}<LEND>[call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){jset}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){ii}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){approx}<LEND>[](symbol){jset}<LSEP>[](symbol){iset}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){jmax}<LEND>[statement 4; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){ii}<LSEP>[](symbol){y} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_ticket_links_edit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ticket_id}<LSEP>[](symbol){referred_to_by}<LSEP>[](symbol){depended_on_by}<LSEP>[](symbol){member_of}<LSEP>[](symbol){refers_to}<LSEP>[](symbol){depends_on}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stopifnot}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.character}<LSEP>[](symbol){ticket_id}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){ticket_id}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){params}<LEND>[call](){}<LSEP>[](symbol){compact}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){referred_to_by}<LSEP>[](symbol){depended_on_by}<LSEP>[](symbol){member_of}<LSEP>[](symbol){refers_to}<LSEP>[](symbol){depends_on}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){links_edit}<LEND>[call](){}<LSEP>[](symbol){construct_newline_pairs}<LSEP>[](symbol){params}<LEND>[statement 3; 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){links}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[](symbol){rt_POST}<LSEP>[](symbol){url}<LEND>[argument 1; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){links_edit}<LEND>[](symbol){...}<LEND>[statement 5; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 6; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){ticket_id} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){logistic6_new}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LSEP>[](symbol){start}<LSEP>[](symbol){max_iter}<LSEP>[](symbol){lower_bound}<LSEP>[](symbol){upper_bound}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){start}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){start}<LEND>[argument 1; litteral](real){6.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'start' must be of length 6}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'beta' cannot be sma...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'eta' cannot be init...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'nu' cannot be negat...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){parameter 'xi' cannot be negat...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){start}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){object}<LEND>[call](){}<LSEP>[](symbol){structure}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LEND>[argument 3; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){y}<LEND>[argument 4; call](){}<LSEP>[](symbol){suff_stats}<LSEP>[](symbol){x}<LSEP>[](symbol){y}<LSEP>[](symbol){w}<LEND>[argument 5; litteral](logical){FALSE}<LSEP>[](symbol){start}<LSEP>[](symbol){max_iter}<LEND>[argument 1; litteral](str){logistic6}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lower_bound}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){upper_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){constrained}<LEND>[litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){lower_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){inf}<LEND>[argument 1; litteral](real){6.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){lower_bound}<LEND>[argument 1; litteral](real){6.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'lower_bound' must be of length 6}<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){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<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>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){inf}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lower_bound}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){inf}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){upper_bound}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){inf}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){upper_bound}<LEND>[argument 1; litteral](real){6.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'upper_bound' must be of length 6}<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){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<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){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'upper_bound[5]' cannot be neg...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'upper_bound[6]' cannot be neg...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){upper_bound}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){lower_bound}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){upper_bound}<LEND>[](symbol){object}<LEND>[assign](){<-}<LSEP>[](symbol){logistic6_fn}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 6; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[assign](){<-}<LSEP>[](symbol){fn.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){logistic6_fn}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){fn.logistic6_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){logistic6_fn}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){gradient_hessian.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){b}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){g}<LEND>[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>[argument 0; litteral](real){1.000000}<LEND>[](symbol){nu}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){g}<LSEP>[](symbol){f}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){f}<LEND>[](symbol){nu}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](real){6.000000}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){hessian}<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){length}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){6.000000}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){g}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){g}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){t}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){u}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){v}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.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){omega}<LEND>[](symbol){xi}<LEND>[](symbol){s}<LEND>[](symbol){nu}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 27; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[statement 28; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){u}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){v}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){xi}<LSEP>[](symbol){s}<LEND>[](symbol){nu}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 33; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){t}<LEND>[statement 34; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){u}<LEND>[statement 35; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){v}<LEND>[statement 36; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){xi}<LEND>[](symbol){s}<LEND>[](symbol){nu}<LEND>[statement 37; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 38; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){q}<LEND>[](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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 40; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){eta}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){f}<LSEP>[](symbol){b}<LEND>[](symbol){t}<LEND>[](symbol){g}<LEND>[](symbol){u}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){nu}<LSEP>[](symbol){u}<LEND>[](symbol){eta}<LEND>[](symbol){v}<LEND>[](symbol){t}<LEND>[](symbol){g}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){3.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){omega}<LEND>[](symbol){xi}<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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){t}<LEND>[](symbol){f}<LEND>[statement 43; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 45; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 46; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[](symbol){r}<LEND>[](symbol){u}<LEND>[statement 47; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){nu}<LSEP>[](symbol){u}<LEND>[](symbol){eta}<LEND>[](symbol){v}<LEND>[](symbol){u}<LEND>[](symbol){g}<LEND>[statement 48; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){4.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){omega}<LEND>[](symbol){xi}<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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){u}<LEND>[](symbol){f}<LEND>[statement 49; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 50; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 51; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 52; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[statement 53; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){v}<LSEP>[](symbol){g}<LEND>[](symbol){g}<LEND>[statement 54; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){5.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){omega}<LEND>[](symbol){xi}<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){nu}<LSEP>[](symbol){u}<LEND>[](symbol){eta}<LEND>[](symbol){v}<LEND>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){f}<LEND>[statement 55; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 56; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 57; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 58; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[statement 59; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[statement 60; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){6.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){omega}<LSEP>[](symbol){xi}<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){xi}<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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){s}<LEND>[](symbol){nu}<LEND>[statement 61; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){gradient}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 62; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[litteral](real){0.000000}<LEND>[statement 63; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){gradient}<LSEP>[](symbol){hessian}<LEND>[assign](){<-}<LSEP>[](symbol){rss.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 3; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; 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){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rss_fixed.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){known_param}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){known_param}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[](symbol){idx}<LEND>[](symbol){z}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known_param}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 7; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; 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){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[assign](){<-}<LSEP>[](symbol){rss_gradient_hessian.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mu_gradient_hessian}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){G}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){H}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){r}<LEND>[](symbol){G}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){hessian}<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){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[argument 1; litteral](real){6.000000}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){G}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[statement 11; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){G}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[](symbol){G}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[](symbol){G}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[](symbol){G}<LEND>[statement 15; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){gradient}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){rss_gradient_hessian_fixed.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){known_param}<LEND>[body; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){z}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){known_param}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[](symbol){idx}<LEND>[](symbol){z}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){known_param}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){idx}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){theta}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){mu_gradient_hessian}<LEND>[call](){}<LSEP>[](symbol){gradient_hessian}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){G}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mu_gradient_hessian}<LSEP>[](symbol){H}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){r}<LEND>[](symbol){G}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){hessian}<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){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[argument 1; litteral](real){6.000000}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){G}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){G}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){G}<LEND>[statement 16; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[](symbol){G}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[](symbol){G}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[](symbol){G}<LEND>[statement 19; call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[](symbol){idx}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[argument 1; call](){}<LSEP>[](symbol){apply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){idx}<LSEP>[](symbol){idx}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[assign](){<-}<LSEP>[](symbol){mle_asy.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){log_nu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){log_xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){g}<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){exp}<LSEP>[](symbol){log_xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){log_nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){log_nu}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){t1}<LSEP>[litteral](real){0.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){t2}<LSEP>[litteral](real){0.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){t3}<LSEP>[litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){t4}<LSEP>[litteral](real){0.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){t5}<LSEP>[litteral](real){0.000000}<LEND>[statement 14; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){t1}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t1}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){t2}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t2}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<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>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){t3}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t3}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){t4}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t4}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){t5}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){t5}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){w}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){y}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){g}<LSEP>[](symbol){i}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){denom}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){t1}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t2}<LSEP>[](symbol){t3}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){denom}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){alpha}<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){t1}<LSEP>[](symbol){t5}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t3}<LSEP>[](symbol){t4}<LEND>[](symbol){denom}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t1}<LSEP>[](symbol){t4}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){t2}<LSEP>[](symbol){t5}<LEND>[](symbol){denom}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){alpha}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){beta}<LEND>[](symbol){theta}<LEND>[assign](){<-}<LSEP>[](symbol){init.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){stats}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rss_fn}<LEND>[call](){}<LSEP>[](symbol){rss}<LSEP>[](symbol){object}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){linear_fit}<LEND>[call](){}<LSEP>[](symbol){summary}<LEND>[argument 0; call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){linear_coef}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){linear_fit}<LSEP>[](symbol){coefficients}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){min_value}<LEND>[call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){max_value}<LEND>[call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){zv}<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){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){min_value}<LEND>[argument 1; litteral](real){0.000010}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){max_value}<LSEP>[](symbol){min_value}<LEND>[argument 1; litteral](real){0.000020}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){zv}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){zv}<LEND>[argument 1; call](){}<LSEP>[](symbol){log1p}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){zv}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){zv}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){eta}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){min_value}<LSEP>[](symbol){max_value}<LSEP>[](symbol){eta}<LSEP>[](symbol){phi}<LSEP>[argument 4; litteral](real){0.000000}<LSEP>[argument 5; litteral](real){0.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){theta}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){niter}<LSEP>[litteral](real){1.000000}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){linear_coef}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; litteral](real){0.200000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){weighted_mean}<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){object}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.900000}<LSEP>[](symbol){weighted_mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[](symbol){min_value}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.900000}<LSEP>[](symbol){weighted_mean}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){0.100000}<LSEP>[](symbol){max_value}<LEND>[argument 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){linear_coef}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.001000}<LEND>[false branch; litteral](real){0.001000}<LEND>[argument 3; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){m}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 4; litteral](real){0.000000}<LSEP>[argument 5; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){theta}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){delta}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){v1}<LSEP>[litteral](integer){20}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){v2}<LSEP>[litteral](integer){20}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){v3}<LSEP>[litteral](integer){3}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){v4}<LSEP>[litteral](integer){3}<LEND>[statement 21; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v1}<LSEP>[](symbol){v2}<LEND>[](symbol){v3}<LEND>[](symbol){v4}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){eta_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){5.000000}<LEND>[argument 1; litteral](real){5.000000}<LSEP>[](symbol){v1}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){phi_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){delta}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){stats}<LSEP>[](symbol){m}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){delta}<LEND>[](symbol){v2}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){log_nu_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.500000}<LSEP>[](symbol){v3}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){log_xi_set}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.500000}<LSEP>[](symbol){v4}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){theta_tmp}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){6.000000}<LSEP>[](symbol){v}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){rss_tmp}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LSEP>[](symbol){v}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){theta_eta_1}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v2}<LSEP>[](symbol){v3}<LEND>[](symbol){v4}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){rss_eta_1}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v2}<LSEP>[](symbol){v3}<LEND>[](symbol){v4}<LEND>[statement 30; assign](){<-}<LSEP>[](symbol){theta_eta_2}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v2}<LSEP>[](symbol){v3}<LEND>[](symbol){v4}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){rss_eta_2}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){10000.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v2}<LSEP>[](symbol){v3}<LEND>[](symbol){v4}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){i}<LSEP>[litteral](real){0.000000}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){j}<LSEP>[litteral](real){0.000000}<LEND>[statement 34; control flow](){for}<LSEP>[](symbol){phi}<LSEP>[](symbol){phi_set}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){log_nu}<LSEP>[](symbol){log_nu_set}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){for}<LSEP>[](symbol){log_xi}<LSEP>[](symbol){log_xi_set}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){j}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){eta}<LSEP>[](symbol){eta_set}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){eta}<LSEP>[](symbol){phi}<LSEP>[](symbol){log_nu}<LSEP>[](symbol){log_xi}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[](symbol){current_par}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_tmp}<LSEP>[](symbol){i}<LEND>[](symbol){current_rss}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){20.000000}<LEND>[](symbol){phi}<LSEP>[](symbol){log_nu}<LSEP>[](symbol){log_xi}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_1}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){current_par}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_eta_1}<LSEP>[](symbol){j}<LEND>[](symbol){current_rss}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){current_par}<LEND>[call](){}<LSEP>[](symbol){mle_asy}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){20.000000}<LSEP>[](symbol){phi}<LSEP>[](symbol){log_nu}<LSEP>[](symbol){log_xi}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){current_rss}<LEND>[call](){}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){current_par}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_2}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[](symbol){current_par}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){rss_eta_2}<LSEP>[](symbol){j}<LEND>[](symbol){current_rss}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_tmp}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){theta_1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){theta_2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){theta_3}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_tmp}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ord}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){v}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 39; assign](){<-}<LSEP>[](symbol){theta_4}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_1}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_eta_1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){theta_5}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta_eta_2}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){order}<LSEP>[](symbol){rss_eta_2}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 41; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){constrained}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta_1}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){theta_2}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_2}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){theta_3}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_3}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){theta_4}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_4}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){theta_5}<LEND>[call](){}<LSEP>[](symbol){pmax}<LEND>[argument 0; call](){}<LSEP>[](symbol){pmin}<LSEP>[](symbol){theta_5}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 42; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){theta}<LSEP>[](symbol){theta_1}<LSEP>[](symbol){theta_2}<LSEP>[](symbol){theta_3}<LSEP>[](symbol){theta_4}<LSEP>[](symbol){theta_5}<LEND>[statement 43; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){fit_nlminb}<LSEP>[](symbol){object}<LSEP>[](symbol){rss_fn}<LSEP>[](symbol){start}<LEND>[statement 44; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[](symbol){best_rss}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){theta}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){best_rss}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){rss}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){niter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){niter}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tmp}<LSEP>[](symbol){niter}<LEND>[statement 45; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){theta}<LEND>[litteral](NULL){NULL}<LEND>[statement 46; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){niter}<LEND>[litteral](NULL){NULL}<LEND>[statement 47; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){theta}<LSEP>[](symbol){niter}<LEND>[assign](){<-}<LSEP>[](symbol){fit.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){find_optimum}<LSEP>[](symbol){object}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){optimum}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){iterations}<LEND>[argument 2; litteral](logical){FALSE}<LEND>[argument 3; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[](symbol){theta}<LEND>[argument 5; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){minimum}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[argument 1; litteral](real){6.000000}<LEND>[argument 7; call](){}<LSEP>[](symbol){logistic6_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){fitted.values}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){param_names}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){alpha}<LSEP>[argument 1; litteral](str){beta}<LSEP>[argument 2; litteral](str){eta}<LSEP>[argument 3; litteral](str){phi}<LSEP>[argument 4; litteral](str){nu}<LSEP>[argument 5; litteral](str){xi}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){coefficients}<LEND>[](symbol){param_names}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){estimated}<LEND>[](symbol){param_names}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){result}<LEND>[litteral](str){logistic6_fit}<LEND>[](symbol){result}<LEND>[assign](){<-}<LSEP>[](symbol){fit_constrained.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){constraint}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](logical){FALSE}<LSEP>[argument 1; litteral](real){6.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 1; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lb_is_inf}<LEND>[call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){i}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){ub_is_inf}<LEND>[call](){}<LSEP>[](symbol){is.infinite}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){i}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){upper_bound}<LEND>[](symbol){i}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[litteral](logical){TRUE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){lb_is_inf}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){ub_is_inf}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[litteral](logical){TRUE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){i}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){known_param}<LEND>[call](){}<LSEP>[](symbol){ifelse}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[argument 2; litteral](real){nan}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){solution}<LEND>[call](){}<LSEP>[](symbol){find_optimum_constrained}<LSEP>[](symbol){object}<LSEP>[](symbol){constraint}<LSEP>[](symbol){known_param}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){theta}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){lower_bound}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){optimum}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){estimated}<LEND>[call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){converged}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){iterations}<LEND>[argument 2; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){constraint}<LSEP>[](symbol){estimated}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){estimated}<LSEP>[](symbol){theta}<LEND>[argument 5; 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){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){solution}<LSEP>[](symbol){minimum}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){estimated}<LEND>[argument 7; call](){}<LSEP>[](symbol){logistic6_fn}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){residuals}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){fitted.values}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){param_names}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){alpha}<LSEP>[argument 1; litteral](str){beta}<LSEP>[argument 2; litteral](str){eta}<LSEP>[argument 3; litteral](str){phi}<LSEP>[argument 4; litteral](str){nu}<LSEP>[argument 5; litteral](str){xi}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){coefficients}<LEND>[](symbol){param_names}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){result}<LSEP>[](symbol){estimated}<LEND>[](symbol){param_names}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){result}<LEND>[litteral](str){logistic6_fit}<LEND>[](symbol){result}<LEND>[assign](){<-}<LSEP>[](symbol){fisher_info.logistic6}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){theta}<LSEP>[](symbol){sigma}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){w}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){stats}<LEND>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){theta}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){b}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){g}<LEND>[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>[argument 0; litteral](real){1.000000}<LEND>[](symbol){nu}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){g}<LSEP>[](symbol){f}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){f}<LEND>[](symbol){nu}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LSEP>[](symbol){theta}<LEND>[](symbol){y}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){gradient}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[argument 2; litteral](real){6.000000}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){g}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){g}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){t}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){u}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){v}<LEND>[](symbol){nu}<LEND>[statement 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){omega}<LEND>[](symbol){s}<LEND>[](symbol){nu}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){gradient}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){m}<LEND>[argument 2; litteral](real){6.000000}<LEND>[statement 29; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 32; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 33; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[statement 34; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){G}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){sum}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){hessian}<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){object}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){6.000000}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[statement 37; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 38; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 39; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){t}<LEND>[statement 40; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){u}<LEND>[statement 41; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){v}<LEND>[](symbol){nu}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){s}<LSEP>[](symbol){nu}<LEND>[statement 43; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 44; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 45; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){t}<LEND>[statement 46; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[](symbol){u}<LEND>[statement 47; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){v}<LSEP>[](symbol){nu}<LEND>[statement 48; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){s}<LEND>[](symbol){nu}<LEND>[statement 49; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 50; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 51; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){q}<LEND>[](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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[statement 52; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){eta}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){f}<LSEP>[](symbol){b}<LEND>[](symbol){t}<LEND>[](symbol){g}<LEND>[](symbol){u}<LEND>[statement 53; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){nu}<LSEP>[](symbol){u}<LEND>[](symbol){eta}<LEND>[](symbol){v}<LEND>[](symbol){t}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){g}<LEND>[statement 54; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){3.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){omega}<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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){t}<LEND>[](symbol){f}<LEND>[statement 55; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 56; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 57; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 58; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){b}<LEND>[](symbol){r}<LEND>[](symbol){u}<LEND>[statement 59; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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){nu}<LSEP>[](symbol){u}<LEND>[](symbol){eta}<LEND>[](symbol){v}<LEND>[](symbol){u}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){g}<LEND>[statement 60; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){4.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){omega}<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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){u}<LEND>[](symbol){f}<LEND>[statement 61; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 62; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 63; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 64; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[statement 65; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){v}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){nu}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){g}<LEND>[statement 66; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){omega}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){v}<LSEP>[](symbol){g}<LEND>[](symbol){nu}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){f}<LEND>[statement 67; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[statement 68; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[statement 69; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[statement 70; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[statement 71; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[statement 72; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[](symbol){s}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){f}<LEND>[statement 73; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){hessian}<LEND>[litteral](real){0.000000}<LEND>[statement 74; assign](){<-}<LSEP>[](symbol){H}<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){object}<LSEP>[](symbol){m}<LEND>[argument 1; litteral](real){6.000000}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[statement 75; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[](symbol){gradient}<LEND>[statement 76; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){gradient}<LEND>[statement 77; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){3.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[](symbol){gradient}<LEND>[statement 78; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){4.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[](symbol){gradient}<LEND>[statement 79; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[](symbol){gradient}<LEND>[statement 80; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){H}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){w}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){hessian}<LSEP>[](symbol){}<LSEP>[](symbol){}<LSEP>[argument 3; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gradient}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[](symbol){gradient}<LEND>[statement 81; assign](){<-}<LSEP>[](symbol){H}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){H}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[](symbol){sum}<LEND>[statement 82; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[](symbol){theta}<LEND>[statement 83; assign](){<-}<LSEP>[](symbol){z}<LEND>[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){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){w}<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){object}<LSEP>[](symbol){y}<LEND>[](symbol){mu}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){n}<LEND>[statement 84; assign](){<-}<LSEP>[](symbol){fim}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){rbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){H}<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}<LEND>[](symbol){G}<LEND>[](symbol){sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<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>[](symbol){G}<LEND>[](symbol){sigma}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){sigma}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 85; assign](){<-}<LSEP>[](symbol){lab}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){theta}<LEND>[argument 1; litteral](str){sigma}<LEND>[statement 86; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){fim}<LEND>[](symbol){lab}<LEND>[statement 87; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){fim}<LEND>[](symbol){lab}<LEND>[](symbol){fim}<LEND>[assign](){<-}<LSEP>[](symbol){curve_variance.logistic6_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){m}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){V}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){vcov}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){V}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){nan}<LSEP>[](symbol){m}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){5.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){6.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){omega}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nu}<LSEP>[](symbol){b}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){g}<LEND>[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>[argument 0; litteral](real){1.000000}<LEND>[](symbol){nu}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){q}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){x}<LSEP>[](symbol){phi}<LEND>[](symbol){b}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){eta}<LEND>[](symbol){b}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){s}<LEND>[call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){g}<LSEP>[](symbol){f}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){t}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){q}<LSEP>[](symbol){s}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){u}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){r}<LSEP>[](symbol){s}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){v}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){u}<LSEP>[](symbol){eta}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){g}<LEND>[argument 1; call](){}<LSEP>[](symbol){log}<LSEP>[](symbol){f}<LEND>[](symbol){nu}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){G}<LEND>[call](){}<LSEP>[](symbol){matrix}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](real){6.000000}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){g}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[](symbol){g}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){t}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){u}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){5.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){omega}<LSEP>[](symbol){v}<LEND>[](symbol){nu}<LEND>[statement 25; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){6.000000}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){omega}<LEND>[](symbol){s}<LEND>[](symbol){nu}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.nan}<LSEP>[](symbol){G}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.nan}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){2.000000}<LSEP>[argument 1; litteral](real){6.000000}<LEND>[litteral](real){0.000000}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){variance}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){nan}<LSEP>[](symbol){m}<LEND>[statement 28; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){m}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){variance}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){tcrossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){crossprod}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){V}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){G}<LSEP>[](symbol){i}<LSEP>[](symbol){}<LEND>[](symbol){variance}<LEND>[assign](){<-}<LSEP>[](symbol){nauc.logistic6_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){xlim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){xlim}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim' must be a numeric vecto...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'xlim[1]' cannot be larger or ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){ylim}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim' must be of length 2}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){ylim}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim' must be a numeric vecto...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>=}<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>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim[1]' cannot be larger or ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){'ylim[1]' cannot be negative}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){alpha}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){beta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){eta}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){phi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){4.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nu}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){5.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){xi}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; litteral](real){6.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){maximum}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){xi}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nu}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){I}<LSEP>[litteral](real){0.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){xlim_new}<LSEP>[](symbol){xlim}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<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>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){alpha}<LEND>[](symbol){nu}<LEND>[](symbol){xi}<LEND>[](symbol){nu}<LEND>[](symbol){eta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){eta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tmp}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){maximum}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){phi}<LEND>[argument 1; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<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>[](symbol){beta}<LSEP>[](symbol){alpha}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){alpha}<LEND>[](symbol){nu}<LEND>[](symbol){xi}<LEND>[](symbol){nu}<LEND>[](symbol){eta}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){eta}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){I}<LEND>[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){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<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){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tmp}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){+}<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>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){tmp}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){f}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[false branch; block](){}<LSEP>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){fn}<LSEP>[](symbol){object}<LSEP>[](symbol){x}<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){object}<LSEP>[](symbol){coefficients}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){I}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){I}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){integrate}<LSEP>[](symbol){f}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim_new}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){value}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){nauc}<LEND>[call](){}<LSEP>[](symbol){/}<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){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xlim}<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){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){ylim}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){nauc}<LEND>[litteral](NULL){NULL}<LEND>[](symbol){nauc}<LEND>[assign](){<-}<LSEP>[](symbol){naac.logistic6_fit}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nauc}<LSEP>[](symbol){object}<LSEP>[](symbol){xlim}<LSEP>[](symbol){ylim} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.daubCoeffP2}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.482963}<LSEP>[argument 1; litteral](real){0.836516}<LSEP>[argument 2; litteral](real){0.224144}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.129410}<LEND>[assign](){<-}<LSEP>[](symbol){.daubCoeffP3}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.332671}<LSEP>[argument 1; litteral](real){0.806892}<LSEP>[argument 2; litteral](real){0.459878}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.135011}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.085441}<LEND>[argument 5; litteral](real){0.035226}<LEND>[assign](){<-}<LSEP>[](symbol){.daubCoeffP4}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.230378}<LSEP>[argument 1; litteral](real){0.714847}<LSEP>[argument 2; litteral](real){0.630881}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.027984}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.187035}<LEND>[argument 5; litteral](real){0.030841}<LSEP>[argument 6; litteral](real){0.032883}<LEND>[argument 7; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.010597}<LEND>[assign](){<-}<LSEP>[](symbol){.daubCoeffP5}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.160102}<LSEP>[argument 1; litteral](real){0.603829}<LSEP>[argument 2; litteral](real){0.724309}<LSEP>[argument 3; litteral](real){0.138428}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.242295}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.032245}<LEND>[argument 6; litteral](real){0.077571}<LEND>[argument 7; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.006241}<LEND>[argument 8; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.012581}<LEND>[argument 9; litteral](real){0.003336}<LEND>[assign](){<-}<LSEP>[](symbol){.daubCoeffP6}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.111541}<LSEP>[argument 1; litteral](real){0.494624}<LSEP>[argument 2; litteral](real){0.751134}<LSEP>[argument 3; litteral](real){0.315250}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.226265}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.129767}<LEND>[argument 6; litteral](real){0.097502}<LSEP>[argument 7; litteral](real){0.027523}<LEND>[argument 8; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.031582}<LEND>[argument 9; litteral](real){0.000554}<LSEP>[argument 10; litteral](real){0.004777}<LEND>[argument 11; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.001077}<LEND>[assign](){<-}<LSEP>[](symbol){.daubCoeffP7}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.077852}<LSEP>[argument 1; litteral](real){0.396539}<LSEP>[argument 2; litteral](real){0.729132}<LSEP>[argument 3; litteral](real){0.469782}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.143906}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.224036}<LEND>[argument 6; litteral](real){0.071309}<LSEP>[argument 7; litteral](real){0.080613}<LEND>[argument 8; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.038030}<LEND>[argument 9; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.016575}<LEND>[argument 10; litteral](real){0.012551}<LSEP>[argument 11; litteral](real){0.000430}<LEND>[argument 12; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.001802}<LEND>[argument 13; litteral](real){0.000354}<LEND>[assign](){<-}<LSEP>[](symbol){.daubCoeffP8}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.054416}<LSEP>[argument 1; litteral](real){0.312872}<LSEP>[argument 2; litteral](real){0.675631}<LSEP>[argument 3; litteral](real){0.585355}<LEND>[argument 4; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.015829}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.284016}<LEND>[argument 6; litteral](real){0.000472}<LSEP>[argument 7; litteral](real){0.128747}<LEND>[argument 8; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.017369}<LEND>[argument 9; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.044088}<LEND>[argument 10; litteral](real){0.013981}<LSEP>[argument 11; litteral](real){0.008746}<LEND>[argument 12; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.004870}<LEND>[argument 13; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.000392}<LEND>[argument 14; litteral](real){0.000675}<LEND>[argument 15; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.000117}<LEND>[assign](){<-}<LSEP>[](symbol){.daubCoeffP9}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.038078}<LSEP>[argument 1; litteral](real){0.243835}<LSEP>[argument 2; litteral](real){0.604823}<LSEP>[argument 3; litteral](real){0.657288}<LSEP>[argument 4; litteral](real){0.133197}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.293274}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.096841}<LEND>[argument 7; litteral](real){0.148541}<LSEP>[argument 8; litteral](real){0.030726}<LEND>[argument 9; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.067633}<LEND>[argument 10; litteral](real){0.000251}<LSEP>[argument 11; litteral](real){0.022362}<LEND>[argument 12; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.004723}<LEND>[argument 13; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.004282}<LEND>[argument 14; litteral](real){0.001848}<LSEP>[argument 15; litteral](real){0.000230}<LEND>[argument 16; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.000252}<LEND>[argument 17; litteral](real){0.000039}<LEND>[assign](){<-}<LSEP>[](symbol){.daubCoeffP10}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.026670}<LSEP>[argument 1; litteral](real){0.188177}<LSEP>[argument 2; litteral](real){0.527201}<LSEP>[argument 3; litteral](real){0.688459}<LSEP>[argument 4; litteral](real){0.281172}<LEND>[argument 5; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.249846}<LEND>[argument 6; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.195946}<LEND>[argument 7; litteral](real){0.127369}<LSEP>[argument 8; litteral](real){0.093057}<LEND>[argument 9; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.071394}<LEND>[argument 10; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.029458}<LEND>[argument 11; litteral](real){0.033213}<LSEP>[argument 12; litteral](real){0.003607}<LEND>[argument 13; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.010733}<LEND>[argument 14; litteral](real){0.001395}<LSEP>[argument 15; litteral](real){0.001992}<LEND>[argument 16; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.000686}<LEND>[argument 17; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.000116}<LEND>[argument 18; litteral](real){0.000094}<LEND>[argument 19; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.000013}<LEND>[assign](){<-}<LSEP>[](symbol){.getDaubechiesCoefficients}<LEND>[](){function}<LSEP>[](pairlist){}<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){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){0.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 natural nu...}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){N}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){%%}<LSEP>[](symbol){N}<LSEP>[argument 1; litteral](real){2.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 even number}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){N}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){coeff}<LEND>[call](){}<LSEP>[](symbol){switch}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){N}<LEND>[](symbol){.daubCoeffP2}<LSEP>[](symbol){.daubCoeffP3}<LSEP>[](symbol){.daubCoeffP4}<LSEP>[](symbol){.daubCoeffP5}<LSEP>[](symbol){.daubCoeffP6}<LSEP>[](symbol){.daubCoeffP7}<LSEP>[](symbol){.daubCoeffP8}<LSEP>[](symbol){.daubCoeffP9}<LSEP>[](symbol){.daubCoeffP10}<LEND>[argument 10; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){implementation only supports (...}<LEND>[argument 1; call](){}<LSEP>[](symbol){sQuote}<LSEP>[argument 0; litteral](str){N}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){4.000000}<LSEP>[argument 1; litteral](real){20.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](str){|}<LEND>[](symbol){coeff} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){matipl2dpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){meanL}<LSEP>[](symbol){varL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){W}<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){W}<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; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){meanL}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){meanL}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[argument 1; litteral](real){1.000000}<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){meanL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<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){i}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){varL}<LSEP>[](symbol){i}<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){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){W}<LSEP>[](symbol){j}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){l2dpar}<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>[](symbol){W} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.basic.stats}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gl}<LSEP>[](symbol){digits}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){out}<LEND>[call](){}<LSEP>[](symbol){basic.stats}<LEND>[argument 0; call](){}<LSEP>[](symbol){genind2hierfstat}<LEND>[argument 0; call](){}<LSEP>[](symbol){gl2gi}<LSEP>[](symbol){gl}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[](symbol){digits}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){out} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plotSignalTransformation}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){s}<LSEP>[](symbol){title}<LSEP>[](symbol){col.x}<LSEP>[](symbol){col.s}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LSEP>[](symbol){x}<LSEP>[](symbol){title}<LEND>[argument 2; 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>[argument 3; litteral](str){n}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 1; call](){}<LSEP>[](symbol){box}<LEND>[statement 2; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](real){100.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){axis}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){0.200000}<LEND>[statement 4; call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){x}<LSEP>[](symbol){col.x}<LEND>[statement 5; call](){}<LSEP>[](symbol){lines}<LSEP>[](symbol){s}<LSEP>[](symbol){col.s}<LEND>[statement 6; call](){}<LSEP>[](symbol){legend}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){s}<LEND>[argument 1; litteral](real){0.000000}<LSEP>[argument 2; litteral](str){signal}<LSEP>[](symbol){col.s}<LSEP>[argument 4; litteral](str){n}<LSEP>[argument 5; litteral](real){1.000000}<LEND>[statement 7; call](){}<LSEP>[](symbol){invisible} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.reproducibility}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){threshold}<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){hold}<LSEP>[](symbol){x}<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){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 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: Threshold value for r...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){threshold}<LSEP>[litteral](real){0.990000}<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){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){is.null}<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){Reproducibility}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Dataset does not ...}<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){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){RepAvg}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Dataset does not ...}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){na.counter}<LSEP>[litteral](real){0.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){loc.list}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Identifying loci with repeat...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 15; 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){repeatability}<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){Reproducibility}<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){nLoc}<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){repeatability}<LSEP>[](symbol){i}<LEND>[](symbol){threshold}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[](symbol){i}<LEND>[statement 16; 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){repeatability}<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){RepAvg}<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){nLoc}<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){repeatability}<LSEP>[](symbol){i}<LEND>[](symbol){threshold}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[](symbol){i}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){loc.list}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){loc.list}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){loc.list}<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){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Removing loci with repeatabi...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.drop.loc}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.list}<LSEP>[argument 2; litteral](real){0.000000}<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){ No loci with repeatability l...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<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){\n Summary of filtered dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Retaining loci with repeatab...}<LSEP>[](symbol){threshold}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original no. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){hold}<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 discarded:}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){hold}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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 loci retained:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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 individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 6; 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\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){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 23; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.secondaries}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){boxplot}<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){ 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; 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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){boxplot}<LSEP>[argument 1; litteral](str){standard}<LEND>[argument 1; 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){Warning: Box-whisker plots mus...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){boxplot}<LSEP>[litteral](str){adjusted}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){a}<LEND>[call](){}<LSEP>[](symbol){strsplit}<LEND>[argument 0; 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){AlleleID}<LEND>[argument 1; litteral](str){\\|}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){b}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){a}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](logical){TRUE}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<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){Counting ....\n}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){x.secondaries}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){duplicated}<LSEP>[](symbol){b}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x.secondaries}<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.secondaries}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[](symbol){}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){nloc.with.secondaries}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LSEP>[](symbol){b}<LEND>[argument 1; litteral](real){2.000000}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){nloc.with.secondaries}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){op}<LEND>[call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){3.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 1; call](){}<LSEP>[](symbol){par}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.600000}<LSEP>[argument 1; litteral](real){0.500000}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[statement 2; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){robustbase}<LSEP>[](symbol){adjbox}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){b}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LSEP>[argument 4; litteral](str){Box and Whisker Plot}<LEND>[statement 3; 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.200000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){freqs}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){b}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){as.table}<LSEP>[](symbol){freqs}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){f}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<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){length}<LSEP>[](symbol){f}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 7; call](){}<LSEP>[](symbol){barplot}<LSEP>[](symbol){f}<LSEP>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[argument 3; litteral](str){Observed Frequency of SNPs per...}<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){Estimating parameters (lambda)...}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){freqs}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){freqs}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){tmp}<LSEP>[litteral](logical){NA}<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}<LSEP>[](symbol){freqs}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tmp}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){freqs}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){tmean}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){freqs}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){seed}<LSEP>[](symbol){tmean}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){delta}<LSEP>[litteral](real){0.000010}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){k}<LSEP>[](symbol){seed}<LEND>[statement 16; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){100.000000}<LEND>[body; 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){print}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){k.new}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){tmean}<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){exp}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LEND>[argument 0; call](){}<LSEP>[](symbol){abs}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k.new}<LSEP>[](symbol){k}<LEND>[](symbol){delta}<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){Converged on Lambda of}<LSEP>[](symbol){k.new}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fail}<LSEP>[litteral](logical){FALSE}<LEND>[statement 2; control flow](){break}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){100.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){Failed to converge: No reliabl...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){fail}<LSEP>[litteral](logical){TRUE}<LEND>[statement 2; control flow](){break}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){k}<LSEP>[](symbol){k.new}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){fail}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){n}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){freqs}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){tp}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){dpois}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){rn}<LEND>[call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){n}<LSEP>[](symbol){tp}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Estimated size of the zero class}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){dpois}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[](symbol){rn}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){reconstructed}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){dpois}<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){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){freqs}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){k}<LEND>[](symbol){rn}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){reconstructed}<LEND>[call](){}<LSEP>[](symbol){as.table}<LSEP>[](symbol){reconstructed}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){reconstructed}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq}<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){length}<LSEP>[](symbol){reconstructed}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 7; 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.200000}<LSEP>[argument 3; litteral](real){0.500000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){title}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Poisson Expectation (zero class }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){dpois}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[](symbol){rn}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){ invariant loci)}<LEND>[statement 9; call](){}<LSEP>[](symbol){barplot}<LSEP>[](symbol){reconstructed}<LSEP>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](real){0.500000}<LSEP>[](symbol){title}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: No loci with second...}<LEND>[statement 15; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Total number of SNP loci sco...}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LSEP>[](symbol){b}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of secondaries: 0 \n}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of sequence tags in ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LSEP>[](symbol){b}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; control flow](){if}<LSEP>[](symbol){fail}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of invariant sequen...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Estimated number of invaria...}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){dpois}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[](symbol){k}<LEND>[](symbol){rn}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of sequence tags wi...}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){b}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){b}<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){ Number of secondary SNP lo...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LSEP>[](symbol){b}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of SNP loci that wo...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){duplicated}<LSEP>[](symbol){b}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 5; 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){ Tabular 1 to K secondaries (r...}<LEND>[argument 1; call](){}<LSEP>[](symbol){table}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){b}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){nloc.with.secondaries}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){op}<LEND>[statement 18; 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 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){\nReturning a genlight object ...}<LEND>[statement 20; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x.secondaries} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.dist.ind}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LSEP>[](symbol){plot}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){rrBLUP}<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){poppr}<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){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 6; 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 7; 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 8; 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 9; 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 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; 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 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){data.type}<LSEP>[argument 1; litteral](str){SNP}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LSEP>[litteral](str){Euclidean}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){method}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){data.type}<LSEP>[argument 1; litteral](str){SilicoDArT}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){method}<LSEP>[litteral](str){Simple}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){method}<LEND>[call](){}<LSEP>[](symbol){tolower}<LSEP>[](symbol){method}<LEND>[statement 14; 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){euclidean}<LSEP>[argument 1; litteral](str){locus.count}<LSEP>[argument 2; litteral](str){allele.count}<LSEP>[argument 3; litteral](str){relatedness}<LSEP>[argument 4; litteral](str){simple}<LSEP>[argument 5; litteral](str){jaccard}<LSEP>[argument 6; litteral](str){dice}<LSEP>[argument 7; litteral](str){sorenson}<LSEP>[argument 8; litteral](str){czekanowski}<LSEP>[argument 9; litteral](str){phi}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Method not in the li...}<LEND>[statement 1; 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){method}<LSEP>[litteral](str){euclidean}<LEND>[statement 2; 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){method}<LSEP>[litteral](str){simple}<LEND>[statement 15; 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; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){euclidean}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){stats}<LSEP>[](symbol){dist}<LEND>[](symbol){x}<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){ Calculating Euclidean Distan...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){locus.count}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){ape}<LSEP>[](symbol){dist.gene}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](str){pairwise}<LSEP>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](logical){FALSE}<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){ Calculating number of loci f...}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){allele.count}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){poppr}<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){dd}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){poppr}<LSEP>[](symbol){diss.dist}<LEND>[argument 0; call](){}<LSEP>[](symbol){gl2gi}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<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){ Calculating number of alleli...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){relatedness}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){rrBLUP}<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){G}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rrBLUP}<LSEP>[](symbol){A.mat}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<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){ Calculating relatedness amon...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){dd}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){ord}<LEND>[call](){}<LSEP>[](symbol){rank}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){dd}<LEND>[](symbol){ord}<LSEP>[](symbol){ord}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){mat}<LEND>[statement 16; 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; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){simple}<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){ Calculating the Simple Match...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){jaccard}<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){ Calculating the Jaccard Index\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){dice}<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){ Calculating the Dice Index (...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){sorenson}<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){ Calculating the Dice Index (...}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){czekanowski}<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){ Calculating the Dice Index (...}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){phi}<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){ Calculating the Pearson Phi ...}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){utils.dist.binary}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LSEP>[](symbol){verbose}<LEND>[statement 17; control flow](){if}<LSEP>[](symbol){plot}<LEND>[true branch; block](){}<LSEP>[statement 0; 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){title_plot}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){SNP data (DArTSeq)\nInter-indi...}<LSEP>[](symbol){method}<LSEP>[argument 2; litteral](str){ distance}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){title_plot}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){Presence/Absence data (SilicoD...}<LSEP>[](symbol){method}<LSEP>[argument 2; litteral](str){ distance}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){values}<LSEP>[litteral](NULL){NULL}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){df_plot}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.vector}<LSEP>[](symbol){mat}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p1}<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){ggplot}<LSEP>[](symbol){df_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_boxplot}<LSEP>[argument 0; litteral](str){red}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 1; call](){}<LSEP>[](symbol){coord_flip}<LEND>[argument 1; call](){}<LSEP>[](symbol){ggtitle}<LSEP>[](symbol){title_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){theme}<LEND>[argument 0; call](){}<LSEP>[](symbol){element_text}<LSEP>[argument 0; litteral](real){0.500000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){p2}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){ggplot}<LSEP>[](symbol){df_plot}<LEND>[argument 1; call](){}<LSEP>[](symbol){aes}<LSEP>[](symbol){values}<LEND>[argument 1; call](){}<LSEP>[](symbol){geom_histogram}<LSEP>[argument 0; litteral](real){50.000000}<LSEP>[argument 1; litteral](str){red}<LEND>[statement 5; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){gridExtra}<LSEP>[](symbol){grid.arrange}<LEND>[](symbol){p1}<LSEP>[](symbol){p2}<LEND>[statement 18; 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 Reporting inter-individual...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Distance measure:}<LSEP>[](symbol){method}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<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 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Average no. of individuals...}<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; 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 5; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Miniumum Distance: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){dd}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Maximum Distance: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){dd}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 7; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Average Distance: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){dd}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 2; litteral](str){\n\n}<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>[](symbol){dd} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.nhybrids}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){gl}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){p0}<LSEP>[](symbol){p1}<LSEP>[](symbol){threshold}<LSEP>[](symbol){method}<LSEP>[](symbol){plot}<LSEP>[](symbol){pprob}<LSEP>[](symbol){nhyb.directory}<LSEP>[](symbol){BurnIn}<LSEP>[](symbol){sweeps}<LSEP>[](symbol){GtypFile}<LSEP>[](symbol){AFPriorFile}<LSEP>[](symbol){PiPrior}<LSEP>[](symbol){ThetaPrior}<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){x}<LSEP>[](symbol){gl}<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; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Detected Tag Presence/Absenc...}<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){!}<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){method}<LSEP>[argument 1; litteral](str){random}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){AvgPic}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){avgPic}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){AvgPIC}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: method must be ei...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){method}<LSEP>[litteral](str){random}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){pprob}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){pprob}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: threshold posteri...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){pprob}<LSEP>[litteral](real){0.990000}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){gl.tmp}<LSEP>[](symbol){gl}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){thold}<LSEP>[](symbol){threshold}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){loc.limit}<LSEP>[litteral](real){200.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){outfile}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){outfile.win}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){/}<LSEP>[argument 1; litteral](str){\\\\}<LSEP>[](symbol){outfile}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nhyb.directory}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){nhyb.directory.win}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){/}<LSEP>[argument 1; litteral](str){\\\\}<LSEP>[](symbol){nhyb.directory}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){wd.hold}<LEND>[call](){}<LSEP>[](symbol){getwd}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){wd.hold.win}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){/}<LSEP>[argument 1; litteral](str){\\\\}<LSEP>[](symbol){wd.hold}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){p0}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){p1}<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){ Both parental populations ha...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[call](){}<LSEP>[](symbol){replace}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.element}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gl.tmp}<LEND>[](symbol){p0}<LEND>[argument 2; litteral](str){z0}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[call](){}<LSEP>[](symbol){replace}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.element}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gl.tmp}<LEND>[](symbol){p1}<LEND>[argument 2; litteral](str){z1}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; litteral](str){z0}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; litteral](str){z1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error [gl2nhyb]: One or ...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){par.names}<LEND>[call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){par.names}<LEND>[call](){}<LSEP>[](symbol){replace}<LSEP>[](symbol){par.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){par.names}<LSEP>[argument 1; litteral](str){z0}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){par.names}<LSEP>[argument 1; litteral](str){z1}<LEND>[argument 2; litteral](str){ }<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){gl.tmp}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; litteral](str){z0}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; litteral](str){z1}<LEND>[](symbol){}<LEND>[statement 7; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gl.tmp}<LEND>[call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){gl2}<LEND>[call](){}<LSEP>[](symbol){gl.percent.freq}<LSEP>[](symbol){gl.tmp}<LSEP>[](symbol){verbose}<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){Identifying loci with fixed di...}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){npops}<LSEP>[litteral](real){2.000000}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){nloci}<LEND>[call](){}<LSEP>[](symbol){nlevels}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gl2}<LSEP>[](symbol){locus}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){fixed.loci}<LSEP>[litteral](logical){NA}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fixed.loci}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nloci}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[statement 14; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){seq}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){nloci}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){2.000000}<LEND>[body; block](){}<LSEP>[statement 0; 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){gl2}<LSEP>[](symbol){locus}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gl2}<LSEP>[](symbol){locus}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Loci do not agree f...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.fixed}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gl2}<LSEP>[](symbol){frequency}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gl2}<LSEP>[](symbol){frequency}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){thold}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.fixed}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gl2}<LSEP>[](symbol){frequency}<LEND>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gl2}<LSEP>[](symbol){frequency}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){thold}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fixed.loci}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){gl2}<LSEP>[](symbol){locus}<LEND>[](symbol){i}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){fixed.loci}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){fixed.loci}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){fixed.loci}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){nloci}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){fixed.loci}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nloci}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](str){bothparnonefixed}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](str){bothpar}<LEND>[statement 18; 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 fixed loci identified:}<LSEP>[](symbol){nloci}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){nloci}<LSEP>[](symbol){loc.limit}<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){ Selecting}<LSEP>[](symbol){loc.limit}<LSEP>[argument 2; litteral](str){loci showing fixed differences...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gl.fixed.used}<LEND>[call](){}<LSEP>[](symbol){gl.subsample.loci}<LSEP>[](symbol){gl}<LSEP>[](symbol){loc.limit}<LSEP>[argument 2; litteral](str){random}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gl.fixed.all}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl}<LEND>[](symbol){fixed.loci}<LEND>[statement 3; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl.fixed.all}<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){gl}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl}<LEND>[](symbol){fixed.loci}<LEND>[](symbol){}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gl2nhyb}<LSEP>[](symbol){gl.fixed.used}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){random}<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){ Selecting}<LSEP>[](symbol){nloci}<LSEP>[argument 2; litteral](str){loci showing fixed differences...}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){loc.limit}<LSEP>[](symbol){nloci}<LEND>[argument 4; litteral](str){other loci selected at random\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gl.fixed.all}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl}<LEND>[](symbol){fixed.loci}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gl.fixed.used}<LSEP>[](symbol){gl.fixed.all}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.subsample.loci}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){200.000000}<LSEP>[](symbol){nloci}<LEND>[argument 2; litteral](str){random}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gl2nhyb}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){gl.fixed.used}<LSEP>[](symbol){tmp}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl2nhyb}<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){gl}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl2nhyb}<LEND>[](symbol){}<LEND>[false 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){ Selecting}<LSEP>[](symbol){nloci}<LSEP>[argument 2; litteral](str){loci showing fixed differences...}<LEND>[argument 3; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){loc.limit}<LSEP>[](symbol){nloci}<LEND>[argument 4; litteral](str){other loci selected based on A...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){gl.fixed.all}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl}<LEND>[](symbol){fixed.loci}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){gl.fixed.used}<LSEP>[](symbol){gl.fixed.all}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.subsample.loci}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){loc.limit}<LSEP>[](symbol){nloci}<LEND>[argument 2; litteral](str){AvgPic}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){gl2nhyb}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){gl.fixed.used}<LSEP>[](symbol){tmp}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl2nhyb}<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){gl}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl2nhyb}<LEND>[](symbol){}<LEND>[statement 17; 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.null}<LSEP>[](symbol){p0}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){p1}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){p0}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){p1}<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 parental population...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){p0}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[call](){}<LSEP>[](symbol){replace}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.element}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gl.tmp}<LEND>[](symbol){p0}<LEND>[argument 2; litteral](str){z0}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){p1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[call](){}<LSEP>[](symbol){replace}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.element}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gl.tmp}<LEND>[](symbol){p1}<LEND>[argument 2; litteral](str){z1}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; litteral](str){z0}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[argument 1; litteral](str){z1}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error [gl2nhyb]: Specifi...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){par.names}<LEND>[call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl.tmp}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){par.names}<LEND>[call](){}<LSEP>[](symbol){replace}<LSEP>[](symbol){par.names}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){par.names}<LSEP>[argument 1; litteral](str){z0}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){par.names}<LSEP>[argument 1; litteral](str){z1}<LEND>[argument 2; litteral](str){ }<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){random}<LEND>[argument 1; 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){ Selecting}<LSEP>[](symbol){loc.limit}<LSEP>[argument 2; litteral](str){random loci\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){avgpic}<LEND>[argument 1; 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){ Selecting}<LSEP>[](symbol){loc.limit}<LSEP>[argument 2; litteral](str){loci with most information con...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){gl2nhyb}<LEND>[call](){}<LSEP>[](symbol){gl.subsample.loci}<LSEP>[](symbol){gl}<LSEP>[](symbol){loc.limit}<LSEP>[](symbol){method}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[statement 9; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl2nhyb}<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){gl}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl2nhyb}<LEND>[](symbol){}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](str){onepar}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){p0}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){p1}<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){ No parental population speci...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){random}<LEND>[argument 1; 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){ Selecting}<LSEP>[](symbol){loc.limit}<LSEP>[argument 2; litteral](str){random loci\n}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](str){avgpic}<LEND>[argument 1; 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){ Selecting}<LSEP>[](symbol){loc.limit}<LSEP>[argument 2; litteral](str){loci with most information con...}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){gl2nhyb}<LEND>[call](){}<LSEP>[](symbol){gl.subsample.loci}<LSEP>[](symbol){gl}<LSEP>[](symbol){loc.limit}<LSEP>[](symbol){method}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){gl2nhyb}<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){gl}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){gl2nhyb}<LEND>[](symbol){}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){flag}<LSEP>[litteral](str){nopar}<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){\nConverting data to NewHybrid...}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){gl2}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){gl2nhyb}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){gl2}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[litteral](real){22.000000}<LEND>[statement 22; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){gl2}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[litteral](real){12.000000}<LEND>[statement 23; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl2}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){gl2}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[litteral](real){11.000000}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl2}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){gl2}<LEND>[litteral](real){0.000000}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){n.loci}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){gl2}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){rownum}<LEND>[call](){}<LSEP>[](symbol){seq}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){gl2}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){gl2}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){gl2}<LEND>[statement 28; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](str){bothpar}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](str){onepar}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](str){bothparnonefixed}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gl2}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){rownum}<LSEP>[](symbol){par.names}<LSEP>[](symbol){gl2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){metarows}<LSEP>[litteral](real){2.000000}<LEND>[statement 2; 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){ Adding sequential number and...}<LEND>[statement 29; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](str){nopar}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){gl2}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){rownum}<LSEP>[](symbol){gl2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){metarows}<LSEP>[litteral](real){1.000000}<LEND>[statement 2; 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){ Adding sequential number\n}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){gl2}<LEND>[litteral](NULL){NULL}<LEND>[statement 31; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){gl2}<LEND>[litteral](NULL){NULL}<LEND>[statement 32; 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){ Writing the NewHybrids input...}<LSEP>[](symbol){outfile}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ NumIndivs }<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){gl2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ NumLoci }<LSEP>[](symbol){n.loci}<LSEP>[argument 2; litteral](str){ \n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){ Digits 1\n Format Lumped \n}<LEND>[statement 33; call](){}<LSEP>[](symbol){sink}<LSEP>[](symbol){outfile}<LEND>[statement 34; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){NumIndivs }<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){gl2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 35; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){NumLoci }<LSEP>[](symbol){n.loci}<LSEP>[argument 2; litteral](str){ \n}<LEND>[statement 36; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Digits 1\nFormat Lumped \n}<LEND>[statement 37; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){MASS}<LSEP>[](symbol){write.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){gl2}<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){ncol}<LSEP>[](symbol){gl2}<LEND>[argument 1; litteral](str){ }<LEND>[statement 38; call](){}<LSEP>[](symbol){sink}<LEND>[statement 39; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){nhyb.directory}<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){Copying New Hybrids input file}<LSEP>[](symbol){outfile}<LSEP>[argument 2; litteral](str){to}<LSEP>[](symbol){nhyb.directory.win}<LSEP>[argument 4; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Passing control to New Hybrids...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){copy}<LSEP>[](symbol){outfile.win}<LSEP>[](symbol){nhyb.directory.win}<LEND>[statement 2; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 3; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){nhyb.directory}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){GtypFile}<LSEP>[argument 1; litteral](str){TwoGensGtypFreq.txt}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){GtypFile}<LSEP>[litteral](str){0}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){AFPriorFile}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){AFPriorFile}<LSEP>[litteral](str){0}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){PiPrior}<LSEP>[argument 1; litteral](str){Jeffreys}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){PiPrior}<LSEP>[argument 1; litteral](str){jeffreys}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){PiPrior}<LSEP>[litteral](str){0}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){PiPrior}<LSEP>[argument 1; litteral](str){Uniform}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){PiPrior}<LSEP>[argument 1; litteral](str){uniform}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){PiPrior}<LSEP>[litteral](str){1}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error: PiPrior parameter...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ThetaPrior}<LSEP>[argument 1; litteral](str){Jeffreys}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ThetaPrior}<LSEP>[argument 1; litteral](str){jeffreys}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ThetaPrior}<LSEP>[litteral](str){0}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ThetaPrior}<LSEP>[argument 1; litteral](str){Uniform}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){ThetaPrior}<LSEP>[argument 1; litteral](str){uniform}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ThetaPrior}<LSEP>[litteral](str){1}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Fatal Error: ThetaPrior parame...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){rand1}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){10.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){rand2}<LEND>[call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){11.000000}<LSEP>[argument 1; litteral](real){20.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 10; call](){}<LSEP>[](symbol){sink}<LSEP>[argument 0; litteral](str){nhyb.cmd}<LEND>[statement 11; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){(\n}<LEND>[statement 12; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){echo}<LSEP>[](symbol){outfile}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 13; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){echo}<LSEP>[](symbol){GtypFile}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 14; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){echo}<LSEP>[](symbol){AFPriorFile}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){echo}<LSEP>[](symbol){rand1}<LSEP>[](symbol){rand2}<LSEP>[argument 3; litteral](str){\n}<LEND>[statement 16; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){echo}<LSEP>[](symbol){PiPrior}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 17; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){echo}<LSEP>[](symbol){ThetaPrior}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 18; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){echo}<LSEP>[](symbol){BurnIn}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 19; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){echo}<LSEP>[](symbol){sweeps}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 20; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){) | NewHybrids_PC_1_1_WOG.exe}<LEND>[statement 21; call](){}<LSEP>[](symbol){sink}<LEND>[statement 22; call](){}<LSEP>[](symbol){shell}<LSEP>[argument 0; litteral](str){nhyb.cmd}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){tbl}<LEND>[call](){}<LSEP>[](symbol){read.table}<LSEP>[argument 0; litteral](str){aa-PofZ.txt}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 24; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tbl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tbl}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){tbl}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){tbl}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){tbl}<LEND>[call](){}<LSEP>[](symbol){cbind}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){gl}<LEND>[argument 1; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){gl}<LEND>[](symbol){tbl}<LEND>[statement 27; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){tbl}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){id}<LSEP>[argument 1; litteral](str){pop}<LSEP>[argument 2; litteral](str){P0}<LSEP>[argument 3; litteral](str){P1}<LSEP>[argument 4; litteral](str){F1}<LSEP>[argument 5; litteral](str){F2}<LSEP>[argument 6; litteral](str){F1xP0}<LSEP>[argument 7; litteral](str){F1xP1}<LEND>[statement 28; call](){}<LSEP>[](symbol){write.csv}<LSEP>[](symbol){tbl}<LSEP>[argument 1; litteral](str){aa-pofZ.csv}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){copy aa-LociAndAlleles.txt}<LSEP>[](symbol){wd.hold.win}<LEND>[statement 30; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){del aa-LociAndAlleles.txt}<LEND>[statement 32; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){copy aa-ProcessedPriors.txt}<LSEP>[](symbol){wd.hold.win}<LEND>[statement 34; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){del aa-ProcessedPriors.txt}<LEND>[statement 36; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 37; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){copy aa-Pi.hist}<LSEP>[](symbol){wd.hold.win}<LEND>[statement 38; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 39; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){del aa-Pi.hist}<LEND>[statement 40; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 41; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){copy aa-PofZ.csv}<LSEP>[](symbol){wd.hold.win}<LEND>[statement 42; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 43; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){del aa-PofZ.csv}<LEND>[statement 44; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 45; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){del aa-PofZ.txt}<LEND>[statement 46; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 47; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){copy aa-Theta.hist}<LSEP>[](symbol){wd.hold.win}<LEND>[statement 48; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 49; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){del aa-Theta.hist}<LEND>[statement 50; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 51; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){del}<LEND>[argument 1; call](){}<LSEP>[](symbol){basename}<LSEP>[](symbol){outfile}<LEND>[statement 52; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 53; assign](){<-}<LSEP>[](symbol){cp}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){del nhyb.cmd}<LEND>[statement 54; call](){}<LSEP>[](symbol){shell}<LSEP>[](symbol){cp}<LEND>[statement 55; call](){}<LSEP>[](symbol){setwd}<LSEP>[](symbol){wd.hold}<LEND>[statement 40; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){flag}<LSEP>[argument 1; litteral](str){bothpar}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){plot}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){F1.test}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[argument 0; litteral](str){aa-Pofz.csv}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){F1.test}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){F1.test}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){F1.test}<LSEP>[](symbol){F1}<LEND>[](symbol){pprob}<LEND>[](symbol){}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){F1.only}<LEND>[call](){}<LSEP>[](symbol){gl.keep.ind}<LSEP>[](symbol){gl.fixed.used}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){F1.test}<LSEP>[](symbol){id}<LEND>[argument 2; litteral](logical){FALSE}<LSEP>[argument 3; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){mat}<LEND>[call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){F1.only}<LEND>[statement 4; 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){\nPlotting genotypes of}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){F1.test}<LSEP>[](symbol){id}<LEND>[argument 2; litteral](str){F1 individuals\n}<LEND>[statement 5; call](){}<LSEP>[](symbol){barplot}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](str){red}<LSEP>[argument 2; litteral](str){F1 Genotypes}<LEND>[statement 6; 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 F1 individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){F1.only}<LEND>[argument 2; litteral](str){[}<LEND>[argument 3; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){F1.only}<LEND>[argument 4; litteral](str){]\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci with fixed diffe...}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){F1.only}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of heterozygous loci for...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](str){1}<LEND>[argument 2; litteral](str){(}<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){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](str){1}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){%)\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of homozygous reference ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](str){0}<LEND>[argument 2; litteral](str){(}<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){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](str){0}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){%)\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of homozygous alternate ...}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](str){2}<LEND>[argument 2; litteral](str){(}<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){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](str){2}<LEND>[argument 1; litteral](real){100.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){table}<LSEP>[](symbol){mat}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 4; litteral](str){%)\n}<LEND>[statement 41; 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){\nResults are stored in file a...}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Returning data used by New Hyb...}<LEND>[statement 42; 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 43; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){gl2nhyb} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.reassign.pop}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){as.pop}<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){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; 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; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: Specified indiv...}<LSEP>[](symbol){as.pop}<LSEP>[argument 2; litteral](str){not present in the dataset\n}<LEND>[statement 8; 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 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){ Setting population assignmen...}<LSEP>[](symbol){as.pop}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 10; 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){ 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 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){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 14; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2fasta}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){method}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){probar}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){seqinr}<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){funname}<LEND>[call](){}<LSEP>[](symbol){[[}<LEND>[argument 0; call](){}<LSEP>[](symbol){match.call}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){outfilespec}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 6; 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 7; 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 8; 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 9; 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 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; 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 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){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: Dataset contains mo...}<LEND>[statement 12; 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 13; 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){position}<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 14; 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){loc.all}<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 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){1.000000}<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){Assigning ambiguity codes to h...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){2.000000}<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){Randomly allocating heterozygo...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){3.000000}<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){Assigning ambiguity codes to h...}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&&}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){4.000000}<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){Randomly allocating heterozygo...}<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){Method not properly specified\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){:}<LEND>[argument 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Replace score for heterozygoti...}<LEND>[argument 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ method=1 -- ambiguity codes,...}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ method=2 -- random assignmen...}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ method=3 -- ambiguity codes,...}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ method=4 -- random assignmen...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Parameter method ...}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){allnames}<LEND>[call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){snp}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.all}<LEND>[statement 2; 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 3; assign](){<-}<LSEP>[](symbol){snpmatrix}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){conversion}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){A}<LSEP>[argument 1; litteral](str){W}<LSEP>[argument 2; litteral](str){R}<LSEP>[argument 3; litteral](str){M}<LSEP>[argument 4; litteral](str){W}<LSEP>[argument 5; litteral](str){T}<LSEP>[argument 6; litteral](str){K}<LSEP>[argument 7; litteral](str){Y}<LSEP>[argument 8; litteral](str){R}<LSEP>[argument 9; litteral](str){K}<LSEP>[argument 10; litteral](str){G}<LSEP>[argument 11; litteral](str){S}<LSEP>[argument 12; litteral](str){M}<LSEP>[argument 13; litteral](str){Y}<LSEP>[argument 14; litteral](str){S}<LSEP>[argument 15; litteral](str){C}<LEND>[argument 1; litteral](real){4.000000}<LSEP>[argument 2; litteral](real){4.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){conversion}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){A}<LSEP>[argument 1; litteral](str){T}<LSEP>[argument 2; litteral](str){G}<LSEP>[argument 3; litteral](str){C}<LEND>[statement 6; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){conversion}<LEND>[call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){conversion}<LEND>[statement 7; assign](){=}<LSEP>[](symbol){allelepos}<LEND>[call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){position}<LEND>[statement 8; assign](){=}<LSEP>[](symbol){allele1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.)/(.)}<LSEP>[argument 1; litteral](str){\\1}<LSEP>[](symbol){snp}<LSEP>[](symbol){T}<LEND>[statement 9; assign](){=}<LSEP>[](symbol){allele2}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.)/(.)}<LSEP>[argument 1; litteral](str){\\2}<LSEP>[](symbol){snp}<LSEP>[](symbol){T}<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){ Removing loci for which snp ...}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.filter.overshoot}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){sequences}<LSEP>[litteral](logical){NA}<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){Generating haplotypes ... This...}<LEND>[statement 14; call](){}<LSEP>[](symbol){sink}<LSEP>[](symbol){outfilespec}<LEND>[statement 15; 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; assign](){<-}<LSEP>[](symbol){seq}<LSEP>[litteral](logical){NA}<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){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){snpmatrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){code}<LSEP>[litteral](str){N}<LEND>[false branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){snpmatrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allele1}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){a2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allele1}<LSEP>[](symbol){j}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){snpmatrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allele1}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){a2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allele2}<LSEP>[](symbol){j}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){snpmatrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){a1}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allele2}<LSEP>[](symbol){j}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){a2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allele2}<LSEP>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){code}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){conversion}<LSEP>[](symbol){a1}<LSEP>[](symbol){a2}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){snppos}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){allelepos}<LSEP>[](symbol){j}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){code}<LSEP>[argument 1; litteral](str){N}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){substr}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<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>[](symbol){TrimmedSequence}<LEND>[](symbol){j}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){snppos}<LEND>[](symbol){code}<LEND>[argument 2; call](){}<LSEP>[](symbol){substr}<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>[](symbol){TrimmedSequence}<LEND>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){snppos}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](real){500.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){paste}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){nchar}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<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>[](symbol){TrimmedSequence}<LEND>[](symbol){j}<LEND>[argument 1; litteral](str){}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){3.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[](symbol){code}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){seq}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){>}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[](symbol){i}<LEND>[argument 2; litteral](str){_}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){i}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){ \n}<LEND>[statement 16; call](){}<LSEP>[](symbol){sink}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){||}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){matrix}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){r}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){matrix}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){c}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){matrix}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){r}<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){c}<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){matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){sample}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){2.000000}<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){ Removing loci for which snp ...}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.filter.overshoot}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<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){Generating haplotypes ... This...}<LEND>[statement 7; call](){}<LSEP>[](symbol){sink}<LSEP>[](symbol){outfilespec}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){seq}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](str){ }<LSEP>[](symbol){c}<LEND>[statement 9; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){r}<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){c}<LEND>[body; block](){}<LSEP>[statement 0; 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){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){TrimmedSequence}<LEND>[](symbol){j}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){snp}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.all}<LEND>[](symbol){j}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){snpos}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){position}<LEND>[](symbol){j}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){snpos}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){snpos}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){2.000000}<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){[}<LSEP>[](symbol){matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[](symbol){trimmed}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){str_sub}<LSEP>[](symbol){trimmed}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){snpos}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){snpos}<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){matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){start}<LEND>[call](){}<LSEP>[](symbol){str_sub}<LSEP>[](symbol){trimmed}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){snpos}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){snpbase}<LEND>[call](){}<LSEP>[](symbol){str_sub}<LSEP>[](symbol){trimmed}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){snpos}<LEND>[argument 2; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){snpos}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){end}<LEND>[call](){}<LSEP>[](symbol){str_sub}<LSEP>[](symbol){trimmed}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){snpos}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; assign](){=}<LSEP>[](symbol){state1}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.)/(.)}<LSEP>[argument 1; litteral](str){\\1}<LSEP>[](symbol){snp}<LSEP>[](symbol){T}<LEND>[statement 4; assign](){=}<LSEP>[](symbol){state2}<LEND>[call](){}<LSEP>[](symbol){gsub}<LSEP>[argument 0; litteral](str){(.)/(.)}<LSEP>[argument 1; litteral](str){\\2}<LSEP>[](symbol){snp}<LSEP>[](symbol){T}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){snpbase}<LSEP>[](symbol){state1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){snpbase}<LSEP>[](symbol){state2}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){snpbase}<LSEP>[](symbol){state1}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){target}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){start}<LSEP>[](symbol){snpbase}<LSEP>[](symbol){end}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){str_sub}<LSEP>[](symbol){target}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 2; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){trimmed}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[](symbol){snpbase}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix}<LSEP>[](symbol){i}<LSEP>[](symbol){j}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[litteral](str){N}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){method}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){str_pad}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){seq}<LSEP>[](symbol){j}<LEND>[argument 1; call](){}<LSEP>[](symbol){nchar}<LSEP>[](symbol){trimmed}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){right}<LEND>[argument 3; litteral](str){N}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){result}<LEND>[call](){}<LSEP>[](symbol){paste}<LSEP>[](symbol){seq}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){>}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[](symbol){i}<LEND>[argument 2; litteral](str){_}<LEND>[argument 3; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){i}<LEND>[argument 4; litteral](str){\n}<LEND>[statement 3; call](){}<LSEP>[](symbol){cat}<LSEP>[](symbol){result}<LSEP>[argument 1; litteral](str){ \n}<LEND>[statement 10; call](){}<LSEP>[](symbol){sink}<LEND>[statement 18; 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 19; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](NULL){NULL} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.recode.pop}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){pop.recode}<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>[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){|}<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){stop}<LSEP>[argument 0; litteral](str){ Fatal Error: Population name...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){recode.table}<LEND>[call](){}<LSEP>[](symbol){read.csv}<LSEP>[](symbol){pop.recode}<LSEP>[argument 1; litteral](logical){FALSE}<LSEP>[argument 2; litteral](logical){FALSE}<LEND>[statement 9; 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){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){recode.table}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Population names ...}<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){ Reassigning entities to popu...}<LSEP>[](symbol){pop.recode}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){hold.nLoc}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){hold.nInd}<LEND>[call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){hold.nPop}<LEND>[call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){pop.list}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){ntr}<LEND>[call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){recode.table}<LSEP>[](symbol){}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[statement 16; 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; control flow](){for}<LSEP>[](symbol){j}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){ntr}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pop.list}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){recode.table}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){pop.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){recode.table}<LSEP>[](symbol){j}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[](symbol){pop.list}<LEND>[statement 18; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){delete}<LEND>[argument 1; call](){}<LSEP>[](symbol){popNames}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){Delete}<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){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Deleting populations flagged f...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.drop.pop}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Delete}<LSEP>[argument 1; litteral](str){delete}<LEND>[argument 2; litteral](real){0.000000}<LEND>[statement 19; 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 20; 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 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; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){\n Summary of recoded dataset\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ Original No. of loci:}<LSEP>[](symbol){hold.nLoc}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ New No. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<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){ Original No. of individuals:}<LSEP>[](symbol){hold.nInd}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ New No. of individuals:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<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){ Original No. of populations:}<LSEP>[](symbol){hold.nPop}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 6; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){ New No. of populations:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nPop}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n\n}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){recalc}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Note: Locus metrics not recalc...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){mono.rm}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Note: Resultant monomorphic lo...}<LEND>[statement 22; 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 23; 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 24; 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 25; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){hellinger}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){check}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){x1}<LEND>[statement 1; 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 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; 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 1; 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 2; 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 3; 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>[statement 4; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){x2}<LEND>[statement 5; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){hellingerpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x1}<LEND>[argument 2; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){x2}<LEND>[argument 3; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x2}<LEND>[](symbol){check}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){hellingerpar}<LEND>[argument 0; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){x1}<LEND>[argument 1; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x1}<LEND>[argument 2; call](){}<LSEP>[](symbol){colMeans}<LSEP>[](symbol){x2}<LEND>[argument 3; call](){}<LSEP>[](symbol){var}<LSEP>[](symbol){x2}<LEND>[](symbol){check} |
[](){expression}<LSEP>[litteral](NULL){NULL} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.monomorphs}<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; 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; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){na.counter}<LSEP>[litteral](real){0.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){loc.list}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<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){Identifying monomorphic loci\n}<LEND>[statement 11; 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){nL}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){matrix}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){l.names}<LEND>[call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){row}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){l.names}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){row}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){na.counter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){na.counter}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 12; 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){nL}<LEND>[call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){matrix}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){lN}<LEND>[call](){}<LSEP>[](symbol){locNames}<LSEP>[](symbol){x}<LEND>[statement 3; control flow](){for}<LSEP>[](symbol){i}<LEND>[range; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nL}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){row}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){matrix}<LSEP>[](symbol){}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){row}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[argument 1; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){row}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){lN}<LSEP>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){row}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){na.counter}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){na.counter}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){loc.list}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){loc.list}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LSEP>[](symbol){loc.list}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){length}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){loc.list}<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}<LSEP>[argument 0; litteral](str){ Removing monomorphic loci\n}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){gl.drop.loc}<LSEP>[](symbol){x}<LSEP>[](symbol){loc.list}<LSEP>[argument 2; litteral](real){0.000000}<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){ No monomorphic loci to remove\n}<LEND>[statement 15; 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){ Original No. of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){hold}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Monomorphic loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){hold}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[](symbol){na.counter}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Loci scored all NA:}<LSEP>[](symbol){na.counter}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 3; 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){nLoc}<LSEP>[](symbol){hold}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 4; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ No. of loci retained:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 5; 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 6; call](){}<LSEP>[](symbol){cat}<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 16; 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){TRUE}<LEND>[statement 17; 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 18; 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 19; 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 20; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){IKbandwidth}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){X}<LSEP>[](symbol){Y}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){verbose}<LSEP>[](symbol){kernel}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){sub}<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 1; assign](){<-}<LSEP>[](symbol){X}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LSEP>[](symbol){sub}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){Y}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){sub}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Nx}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){X}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){Ny}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){Y}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){Nx}<LSEP>[](symbol){Ny}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Running and outcome variable m...}<LEND>[statement 6; 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){Using default cutpoint of zero.\n}<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){%in%}<LEND>[argument 0; call](){}<LSEP>[](symbol){typeof}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){integer}<LSEP>[argument 1; litteral](str){double}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Cutpoint must be of a numeric ...}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){h1}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){1.840000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sd}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Nx}<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){5.000000}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){left}<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){cutpoint}<LSEP>[](symbol){h1}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){right}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){cutpoint}<LSEP>[](symbol){h1}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){Nl}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){left}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){Nr}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){right}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){Ybarl}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){left}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){Ybarr}<LEND>[call](){}<LSEP>[](symbol){mean}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){right}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){fbarx}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Nl}<LSEP>[](symbol){Nr}<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){Nx}<LEND>[](symbol){h1}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){varY}<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){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){Y}<LSEP>[](symbol){left}<LEND>[](symbol){Ybarl}<LEND>[argument 1; litteral](real){2.000000}<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){Y}<LSEP>[](symbol){right}<LEND>[](symbol){Ybarr}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){Nl}<LSEP>[](symbol){Nr}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){medXl}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){medXr}<LEND>[call](){}<LSEP>[](symbol){median}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){X}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){Nl}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){Nr}<LEND>[call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[statement 20; assign](){<-}<LSEP>[](symbol){cX}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[statement 21; control flow](){if}<LSEP>[condition; 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){X}<LSEP>[](symbol){left}<LEND>[](symbol){medXl}<LEND>[argument 1; litteral](real){0.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){X}<LSEP>[](symbol){right}<LEND>[](symbol){medXr}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Insufficient data in vicinity ...}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){mod}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){I}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){cX}<LSEP>[argument 1; litteral](real){3.000000}<LSEP>[](symbol){T}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){X}<LSEP>[](symbol){medXl}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){X}<LSEP>[](symbol){medXr}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){m3}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){6.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){mod}<LEND>[argument 1; litteral](real){5.000000}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){h2l}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.560000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Nl}<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){7.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){varY}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){fbarx}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){m3}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.010000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){h2r}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){3.560000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Nr}<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){7.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){^}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[](symbol){varY}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){fbarx}<LEND>[argument 1; call](){}<LSEP>[](symbol){max}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){m3}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; litteral](real){0.010000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){7.000000}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){left}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; 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){cutpoint}<LSEP>[](symbol){h2l}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){right}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; 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){cutpoint}<LSEP>[](symbol){h2r}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){Nl}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){left}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){Nr}<LEND>[call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){right}<LEND>[statement 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Nl}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){Nr}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Insufficient data in vicinity ...}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){mod}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){cX}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){T}<LEND>[](symbol){right}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){m2r}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){mod}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 33; assign](){<-}<LSEP>[](symbol){mod}<LEND>[call](){}<LSEP>[](symbol){lm}<LEND>[argument 0; call](){}<LSEP>[](symbol){~}<LSEP>[](symbol){Y}<LEND>[argument 1; call](){}<LSEP>[](symbol){poly}<LSEP>[](symbol){cX}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){T}<LEND>[](symbol){left}<LEND>[statement 34; assign](){<-}<LSEP>[](symbol){m2l}<LEND>[call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){coef}<LSEP>[](symbol){mod}<LEND>[argument 1; litteral](real){3.000000}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){rl}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){720.000000}<LSEP>[](symbol){varY}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Nl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){h2l}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 36; assign](){<-}<LSEP>[](symbol){rr}<LEND>[call](){}<LSEP>[](symbol){/}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){720.000000}<LSEP>[](symbol){varY}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){Nr}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){h2r}<LSEP>[argument 1; litteral](real){4.000000}<LEND>[statement 37; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){triangular}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ck}<LSEP>[litteral](real){3.437540}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){rectangular}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ck}<LSEP>[litteral](real){5.403840}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){epanechnikov}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ck}<LSEP>[litteral](real){3.199900}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){quartic}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){biweight}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ck}<LSEP>[litteral](real){3.653620}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){triweight}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ck}<LSEP>[litteral](real){4.060650}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){tricube}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ck}<LSEP>[litteral](real){3.687650}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){gaussian}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ck}<LSEP>[litteral](real){1.258640}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){kernel}<LSEP>[argument 1; litteral](str){cosine}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){ck}<LSEP>[litteral](real){3.258690}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Unrecognized kernel.}<LEND>[statement 38; assign](){<-}<LSEP>[](symbol){optbw}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){ck}<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){2.000000}<LSEP>[](symbol){varY}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[](symbol){fbarx}<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){m2r}<LSEP>[](symbol){m2l}<LEND>[argument 1; litteral](real){2.000000}<LEND>[](symbol){rr}<LEND>[](symbol){rl}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[argument 1; litteral](real){5.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){Nx}<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){5.000000}<LEND>[statement 39; assign](){<-}<LSEP>[](symbol){left}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; 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){cutpoint}<LSEP>[](symbol){optbw}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){right}<LEND>[call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){X}<LSEP>[](symbol){cutpoint}<LEND>[argument 1; 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){cutpoint}<LSEP>[](symbol){optbw}<LEND>[statement 41; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){left}<LEND>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LSEP>[](symbol){right}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Insufficient data in the calcu...}<LEND>[statement 42; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){optbw}<LEND>[litteral](NULL){NULL}<LEND>[statement 43; control flow](){if}<LSEP>[](symbol){verbose}<LEND>[true branch; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Imbens-Kalyanamaran Optimal Ba...}<LEND>[argument 1; call](){}<LSEP>[](symbol){sprintf}<LSEP>[argument 0; litteral](str){%.3f}<LSEP>[](symbol){optbw}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 44; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){optbw} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){updateRdwd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){pack}<LSEP>[](symbol){user}<LSEP>[](symbol){vignette}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){Vinst}<LEND>[call](){}<LSEP>[](symbol){suppressWarnings}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){utils}<LSEP>[](symbol){packageDescription}<LEND>[](symbol){pack}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Date}<LSEP>[argument 1; litteral](str){Version}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){repo}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){user}<LSEP>[argument 1; litteral](str){/}<LSEP>[](symbol){pack}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){https://raw.githubusercontent....}<LSEP>[](symbol){repo}<LSEP>[argument 2; litteral](str){/master/DESCRIPTION}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tf}<LEND>[call](){}<LSEP>[](symbol){tempfile}<LSEP>[argument 0; litteral](str){DESCRIPTION}<LEND>[statement 4; call](){}<LSEP>[](symbol){download.file}<LSEP>[](symbol){url}<LSEP>[](symbol){tf}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){Vsrc}<LEND>[call](){}<LSEP>[](symbol){read.dcf}<LSEP>[](symbol){tf}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Date}<LSEP>[argument 1; litteral](str){Version}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){Vsrc}<LEND>[call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){unname}<LSEP>[](symbol){Vsrc}<LEND>[argument 1; call](){}<LSEP>[](symbol){colnames}<LSEP>[](symbol){Vsrc}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vinst}<LSEP>[](symbol){Version}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vsrc}<LSEP>[](symbol){Version}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vinst}<LSEP>[](symbol){Date}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vsrc}<LSEP>[](symbol){Date}<LEND>[statement 8; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){pack}<LSEP>[argument 1; litteral](str){_}<LEND>[argument 2; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){Locally_installed}<LSEP>[argument 1; litteral](str){Github_latest}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){anyNA}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){output}<LSEP>[](symbol){Date}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Date field is missing, cannot ...}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){doinst}<LEND>[call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){compareVersion}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vsrc}<LSEP>[](symbol){Version}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vinst}<LSEP>[](symbol){Version}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vsrc}<LSEP>[](symbol){Date}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vinst}<LSEP>[](symbol){Date}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){doinst}<LEND>[true branch; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){pack}<LSEP>[argument 1; litteral](str){ is up to date, compared to gi...}<LSEP>[](symbol){repo}<LSEP>[argument 3; litteral](str){. Version }<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vinst}<LSEP>[](symbol){Version}<LEND>[argument 5; litteral](str){ (}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vinst}<LSEP>[](symbol){Date}<LEND>[argument 7; litteral](str){)}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){output}<LEND>[statement 12; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[](symbol){pack}<LSEP>[argument 1; litteral](str){ local version }<LEND>[argument 2; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vinst}<LSEP>[](symbol){Version}<LEND>[argument 3; litteral](str){ (}<LEND>[argument 4; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vinst}<LSEP>[](symbol){Date}<LEND>[argument 5; litteral](str){) is outdated.\nInstalling dev...}<LEND>[argument 6; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vsrc}<LSEP>[](symbol){Version}<LEND>[argument 7; litteral](str){ (}<LEND>[argument 8; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){Vsrc}<LSEP>[](symbol){Date}<LEND>[argument 9; litteral](str){) from github.com/}<LSEP>[](symbol){repo}<LEND>[statement 13; call](){}<LSEP>[](symbol){checkSuggestedPackage}<LSEP>[argument 0; litteral](str){remotes}<LSEP>[argument 1; litteral](str){updateRdwd}<LEND>[statement 14; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){First unloading }<LSEP>[](symbol){pack}<LSEP>[argument 2; litteral](str){ so it can be installed by rem...}<LEND>[statement 15; call](){}<LSEP>[](symbol){try}<LEND>[argument 0; call](){}<LSEP>[](symbol){detach}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){package:}<LSEP>[](symbol){pack}<LEND>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[argument 1; litteral](logical){TRUE}<LEND>[statement 16; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){remotes}<LSEP>[](symbol){install_github}<LEND>[](symbol){repo}<LSEP>[](symbol){vignette}<LSEP>[](symbol){quiet}<LSEP>[](symbol){...}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){message}<LSEP>[argument 0; litteral](str){Please re-load }<LSEP>[](symbol){pack}<LSEP>[argument 2; litteral](str){ now. library(}<LSEP>[](symbol){pack}<LSEP>[argument 4; litteral](str){) should do.}<LEND>[statement 18; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){output} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){findID}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){name}<LSEP>[](symbol){exactmatch}<LSEP>[](symbol){mindex}<LSEP>[](symbol){quiet}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){len}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){name}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){exactmatch}<LEND>[call](){}<LSEP>[](symbol){rep}<LSEP>[](symbol){exactmatch}<LSEP>[](symbol){len}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){len}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){i}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){name}<LSEP>[](symbol){i}<LEND>[argument 1; litteral](str){}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LSEP>[argument 0; litteral](str){}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){select}<LEND>[control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){exactmatch}<LSEP>[](symbol){i}<LEND>[true branch; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){tolower}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mindex}<LSEP>[](symbol){Stationsname}<LEND>[argument 1; call](){}<LSEP>[](symbol){tolower}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){name}<LSEP>[](symbol){i}<LEND>[false branch; call](){}<LSEP>[](symbol){grepl}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){name}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mindex}<LSEP>[](symbol){Stationsname}<LEND>[argument 2; litteral](logical){TRUE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){unique}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mindex}<LSEP>[](symbol){select}<LSEP>[argument 2; litteral](str){Stations_id}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){id}<LSEP>[litteral](logical){NA}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){no ID could be determined from...}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){name}<LSEP>[](symbol){i}<LEND>[argument 3; litteral](str){'.}<LSEP>[argument 4; litteral](logical){FALSE}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){id}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){quiet}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LEND>[argument 0; call](){}<LSEP>[](symbol){traceCall}<LSEP>[argument 0; litteral](real){3.000000}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){: }<LEND>[argument 1; litteral](str){ID determined from name '}<LEND>[argument 2; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){name}<LSEP>[](symbol){i}<LEND>[argument 3; litteral](str){' has }<LEND>[argument 4; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){id}<LEND>[argument 5; litteral](str){ elements (}<LEND>[argument 6; call](){}<LSEP>[](symbol){toString}<LEND>[argument 0; call](){}<LSEP>[](symbol){sort}<LSEP>[](symbol){id}<LEND>[argument 7; litteral](str){).}<LSEP>[argument 8; litteral](logical){FALSE}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){mindex}<LEND>[argument 1; call](){}<LSEP>[](symbol){match}<LSEP>[](symbol){id}<LEND>[argument 1; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){mindex}<LSEP>[](symbol){Stations_id}<LEND>[argument 2; litteral](str){Stationsname}<LEND>[](symbol){id}<LEND>[statement 3; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){unlist}<LSEP>[](symbol){output} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){l2dpar}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){mean1}<LSEP>[](symbol){var1}<LSEP>[](symbol){mean2}<LSEP>[](symbol){var2}<LSEP>[](symbol){check}<LEND>[body; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){p}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){mean1}<LEND>[statement 1; assign](){=}<LSEP>[](symbol){d}<LEND>[call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){mean1}<LSEP>[](symbol){mean2}<LEND>[statement 2; assign](){=}<LSEP>[](symbol){vars}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){var1}<LSEP>[](symbol){var2}<LEND>[statement 3; 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>[](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){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}<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 1; 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){/}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<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>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){sqrt}<LSEP>[](symbol){vars}<LEND>[argument 1; 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}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){^}<LSEP>[](symbol){d}<LSEP>[argument 1; litteral](real){2.000000}<LEND>[](symbol){vars}<LEND>[false branch; 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){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 1; call](){}<LSEP>[](symbol){return}<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){(}<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){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){t}<LSEP>[](symbol){d}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){vars}<LEND>[](symbol){d} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.filter.maf}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){threshold}<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){!=}<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 7; 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; 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){ Population assignments not d...}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](str){pop1}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){as.factor}<LEND>[argument 0; call](){}<LSEP>[](symbol){pop}<LSEP>[](symbol){x}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<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){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 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){0.500000}<LEND>[argument 1; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){threshold}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: threshold must be i...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){threshold}<LSEP>[litteral](real){0.050000}<LEND>[statement 11; 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){ Removing monomorphic loci an...}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){utils.recalc.maf}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[statement 13; 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){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){maf}<LEND>[](symbol){threshold}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){x2}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LSEP>[](symbol){index}<LEND>[statement 15; 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 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){ Initial number of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Number of loci deleted:}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 2; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Final number of loci:}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x2}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 17; 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 18; 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 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>[](symbol){x2} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl2shp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){type}<LSEP>[](symbol){proj4}<LSEP>[](symbol){outfile}<LSEP>[](symbol){outpath}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pkg}<LSEP>[litteral](str){rgdal}<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>[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; 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){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: No coordinates pr...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[argument 1; call](){}<LSEP>[](symbol){nInd}<LSEP>[](symbol){x}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Fatal Error: Number of coordin...}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){match}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[argument 1; litteral](str){long}<LEND>[](symbol){T}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Warning: Names given as lat ...}<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){latlong}<LEND>[](symbol){lon}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[](symbol){long}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){glpoints}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){ind.metrics}<LEND>[statement 12; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glpoints}<LSEP>[](symbol){lat}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[](symbol){lat}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glpoints}<LSEP>[](symbol){lon}<LEND>[call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<LEND>[](symbol){lon}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){toremove}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){complete.cases}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){latlong}<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}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Removed}<LEND>[argument 1; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){toremove}<LEND>[argument 2; litteral](str){individual(s) due to missing c...}<LEND>[statement 16; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){verbose}<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){length}<LSEP>[](symbol){toremove}<LEND>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste}<LSEP>[argument 0; litteral](str){Removed: }<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){indNames}<LSEP>[](symbol){x}<LEND>[](symbol){toremove}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 17; assign](){<-}<LSEP>[](symbol){glpoints}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){glpoints}<LEND>[argument 1; call](){}<LSEP>[](symbol){complete.cases}<LSEP>[](symbol){glpoints}<LEND>[](symbol){}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){glpoints}<LSEP>[](symbol){id}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){glpoints}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){sp}<LSEP>[](symbol){coordinates}<LEND>[](symbol){glpoints}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){lon}<LSEP>[argument 1; litteral](str){lat}<LEND>[statement 20; assign](){=}<LSEP>[](symbol){spdf}<LEND>[call](){}<LSEP>[](symbol){SpatialPointsDataFrame}<LSEP>[](symbol){glpoints}<LEND>[argument 1; call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){glpoints}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){proj4string}<LSEP>[](symbol){spdf}<LEND>[call](){}<LSEP>[](symbol){CRS}<LSEP>[](symbol){proj4}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){shp}<LEND>[true branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rgdal}<LSEP>[](symbol){writeOGR}<LEND>[](symbol){spdf}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LSEP>[argument 3; litteral](str){ESRI Shapefile}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){type}<LSEP>[argument 1; litteral](str){kml}<LEND>[true branch; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){rgdal}<LSEP>[](symbol){writeOGR}<LEND>[](symbol){spdf}<LSEP>[argument 1; litteral](str){KML}<LEND>[argument 2; call](){}<LSEP>[](symbol){paste0}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){outpath}<LSEP>[](symbol){outfile}<LEND>[argument 1; litteral](str){.kml}<LEND>[](symbol){outfile}<LSEP>[argument 4; litteral](logical){TRUE}<LEND>[statement 24; 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){Shapefile saved as:}<LEND>[argument 1; call](){}<LSEP>[](symbol){paste0}<LSEP>[](symbol){outfile}<LSEP>[argument 1; litteral](str){.}<LSEP>[](symbol){type}<LEND>[argument 2; litteral](str){\nin folder:}<LSEP>[](symbol){outpath}<LSEP>[argument 4; litteral](str){\n}<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>[argument 0; litteral](NULL){NULL} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.sexlinked}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){sex}<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; assign](){<-}<LSEP>[](symbol){tmp}<LEND>[call](){}<LSEP>[](symbol){gl.filter.monomorphs}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](real){0.000000}<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){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 10; 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 11; 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 12; 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 13; assign](){<-}<LSEP>[](symbol){sex}<LEND>[call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){sex}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){UP}<LEND>[call](){}<LSEP>[](symbol){toupper}<LSEP>[](symbol){sex}<LEND>[statement 15; 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 16; 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 17; 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 18; 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 19; 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 20; 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 24; assign](){<-}<LSEP>[](symbol){l}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){xy}<LSEP>[](symbol){zw}<LSEP>[](symbol){gg}<LEND>[statement 21; 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){l}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){xy}<LSEP>[](symbol){zw}<LSEP>[](symbol){gg}<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){l} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.print.history}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){history}<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){genlight}<LEND>[true branch; 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>[false 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 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){is.list}<LSEP>[](symbol){history}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){hist2}<LSEP>[](symbol){history}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){nh}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){hist2}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){You did not specify a history ...}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dd}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nh}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LSEP>[](symbol){hist2}<LEND>[statement 1; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){history}<LEND>[call](){}<LSEP>[](symbol){sapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){dd}<LSEP>[](symbol){history}<LEND>[](symbol){strwrap}<LSEP>[argument 2; litteral](real){80.000000}<LEND>[](symbol){paste}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){dd}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){->}<LEND>[argument 1; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LSEP>[](symbol){x}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){tt}<LEND>[call](){}<LSEP>[](symbol){ttheme_default}<LEND>[statement 4; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tt}<LSEP>[](symbol){rowhead}<LEND>[](symbol){fg_params}<LEND>[](symbol){x}<LEND>[litteral](real){0.000000}<LEND>[statement 5; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tt}<LSEP>[](symbol){core}<LEND>[](symbol){fg_params}<LEND>[](symbol){fontsize}<LEND>[litteral](real){11.000000}<LEND>[statement 6; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tt}<LSEP>[](symbol){core}<LEND>[](symbol){fg_params}<LEND>[](symbol){hjust}<LEND>[litteral](real){0.000000}<LEND>[statement 7; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tt}<LSEP>[](symbol){core}<LEND>[](symbol){fg_params}<LEND>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.500000}<LSEP>[](symbol){nh}<LEND>[argument 1; litteral](real){0.200000}<LEND>[argument 2; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){0.010000}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){nh}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 8; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tt}<LSEP>[](symbol){core}<LEND>[](symbol){fg_params}<LEND>[](symbol){fontfamily}<LEND>[litteral](str){mono}<LEND>[statement 9; assign](){=}<LSEP>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){tt}<LSEP>[](symbol){core}<LEND>[](symbol){fg_params}<LEND>[](symbol){fontface}<LEND>[litteral](str){bold}<LEND>[statement 10; call](){}<LSEP>[](symbol){plot}<LSEP>[argument 0; litteral](real){0.000000}<LSEP>[argument 1; litteral](str){n}<LSEP>[argument 2; litteral](str){}<LSEP>[argument 3; litteral](str){}<LSEP>[](symbol){F}<LEND>[statement 11; call](){}<LSEP>[](symbol){grid.table}<LSEP>[](symbol){dd}<LSEP>[](symbol){tt} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){utils.reset.flags}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){set}<LSEP>[](symbol){value}<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; 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){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){value}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){value}<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 'value' m...}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){value}<LSEP>[litteral](real){2.000000}<LEND>[statement 8; 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; 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){ Resetting flags for AvgPIC, ...}<LSEP>[](symbol){set}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Resetting SilicoDArT flags f...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; 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){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){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 2; control flow](){if}<LSEP>[condition; 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){loc.metrics.flags}<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.flags}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){AvgPIC}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){AvgPIC}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric AvgPIC does not...}<LEND>[statement 4; 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){AvgPIC}<LEND>[](symbol){set}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){OneRatioRef}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){OneRatioRef}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric OneRatioRef doe...}<LEND>[statement 6; 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){OneRatioRef}<LEND>[](symbol){set}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){OneRatioSnp}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){OneRatioSnp}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric OneRatioSnp doe...}<LEND>[statement 8; 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){OneRatioSnp}<LEND>[](symbol){set}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){PICRef}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){PICRef}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric PICRef does not...}<LEND>[statement 10; 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){PICRef}<LEND>[](symbol){set}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){PICSnp}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){PICSnp}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric PICSnp does not...}<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){loc.metrics.flags}<LEND>[](symbol){PICSnp}<LEND>[](symbol){set}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){CallRate}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric CallRate does n...}<LEND>[statement 14; 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){CallRate}<LEND>[](symbol){set}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){FreqHomRef}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){FreqHomRef}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric FreqHomRef does...}<LEND>[statement 16; 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){FreqHomRef}<LEND>[](symbol){set}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){FreqHomSnp}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){FreqHomSnp}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric FreqHomSnp does...}<LEND>[statement 18; 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){FreqHomSnp}<LEND>[](symbol){set}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){FreqHets}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){FreqHets}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric FreqHets does 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){FreqHets}<LEND>[](symbol){set}<LEND>[statement 21; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){monomorphs}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){monomorphs}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric monomorphs does...}<LEND>[statement 22; 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>[](symbol){set}<LEND>[statement 23; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){maf}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){maf}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric maf does not ex...}<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){loc.metrics.flags}<LEND>[](symbol){maf}<LEND>[](symbol){set}<LEND>[statement 25; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){OneRatio}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){OneRatio}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric OneRatio does n...}<LEND>[statement 26; 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){OneRatio}<LEND>[litteral](logical){FALSE}<LEND>[statement 27; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){PIC}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){PIC}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric PIC does not ex...}<LEND>[statement 28; 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){PIC}<LEND>[litteral](logical){FALSE}<LEND>[statement 29; 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>[](symbol){set}<LEND>[statement 30; control flow](){if}<LSEP>[condition; 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>[variable; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){@}<LSEP>[](symbol){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<LEND>[litteral](real){2.000000}<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){ Locus metric 'verbose' does ...}<LEND>[statement 9; 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; 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){ Resetting flags for CallRate...}<LSEP>[](symbol){set}<LSEP>[argument 2; litteral](str){\n}<LEND>[statement 1; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Setting SNP flags for AvgPIC...}<LEND>[statement 1; control flow](){if}<LSEP>[condition; 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){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){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[statement 2; control flow](){if}<LSEP>[condition; 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){loc.metrics.flags}<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.flags}<LEND>[call](){}<LSEP>[](symbol){as.data.frame}<LEND>[argument 0; call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){AvgPIC}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){AvgPIC}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric AvgPIC does not...}<LEND>[statement 4; 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){AvgPIC}<LEND>[litteral](logical){FALSE}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){OneRatioRef}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){OneRatioRef}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric OneRatioRef doe...}<LEND>[statement 6; 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){OneRatioRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){OneRatioSnp}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){OneRatioSnp}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric OneRatioSnp doe...}<LEND>[statement 8; 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){OneRatioSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){PICRef}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){PICRef}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric PICRef does not...}<LEND>[statement 10; 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){PICRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){PICSnp}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){PICSnp}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric PICSnp does not...}<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){loc.metrics.flags}<LEND>[](symbol){PICSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 13; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){CallRate}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){CallRate}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric CallRate does n...}<LEND>[statement 14; 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){CallRate}<LEND>[](symbol){set}<LEND>[statement 15; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){FreqHomRef}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){FreqHomRef}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric FreqHomRef does...}<LEND>[statement 16; 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){FreqHomRef}<LEND>[litteral](logical){FALSE}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){FreqHomSnp}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){FreqHomSnp}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric FreqHomSnp does...}<LEND>[statement 18; 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){FreqHomSnp}<LEND>[litteral](logical){FALSE}<LEND>[statement 19; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){FreqHets}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){FreqHets}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric FreqHets does 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){FreqHets}<LEND>[litteral](logical){FALSE}<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){loc.metrics.flags}<LEND>[](symbol){monomorphs}<LEND>[](symbol){set}<LEND>[statement 22; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){maf}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){maf}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric maf does not ex...}<LEND>[statement 23; 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){maf}<LEND>[litteral](logical){FALSE}<LEND>[statement 24; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){OneRatio}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){OneRatio}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric OneRatio does n...}<LEND>[statement 25; 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){OneRatio}<LEND>[](symbol){set}<LEND>[statement 26; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<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){PIC}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){loc.metrics}<LEND>[](symbol){PIC}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LEND>[argument 1; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<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){ Locus metric PIC does not ex...}<LEND>[statement 27; 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){PIC}<LEND>[](symbol){set}<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){x}<LSEP>[](symbol){other}<LEND>[](symbol){verbose}<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){verbose}<LEND>[litteral](real){2.000000}<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){ Locus metric 'verbose' does ...}<LEND>[statement 10; 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 11; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){x} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){matddlp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){p}<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){ddlp}<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>[](symbol){p}<LEND>[statement 4; call](){}<LSEP>[](symbol){as.dist}<LSEP>[](symbol){distances} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.RepAvg}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){boxplot}<LSEP>[](symbol){range}<LSEP>[](symbol){verbose}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){Warning: This function will be...}<LEND>[statement 1; 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 2; assign](){<-}<LSEP>[](symbol){build}<LSEP>[litteral](str){Jacob}<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){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){cat}<LSEP>[argument 0; litteral](str){Fatal Error: Ploidy must be un...}<LEND>[statement 1; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Terminating Execution!}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){hold}<LSEP>[](symbol){x}<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){x}<LSEP>[](symbol){ploidy}<LEND>[argument 1; litteral](real){2.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){repeatability}<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){RepAvg}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){repeatability}<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){Reproducibility}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){xlimit}<LEND>[call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){repeatability}<LEND>[statement 11; 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 12; 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 13; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Miniumum repeatability: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){repeatability}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 14; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Maximum repeatability: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){max}<LSEP>[](symbol){repeatability}<LEND>[argument 1; litteral](real){2.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 15; call](){}<LSEP>[](symbol){cat}<LSEP>[argument 0; litteral](str){ Mean repeatability: }<LEND>[argument 1; call](){}<LSEP>[](symbol){round}<LEND>[argument 0; call](){}<LSEP>[](symbol){mean}<LSEP>[](symbol){repeatability}<LEND>[argument 1; litteral](real){3.000000}<LEND>[argument 2; litteral](str){\n}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){retained}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 17; 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 18; assign](){<-}<LSEP>[](symbol){filtered}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 19; 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 20; assign](){<-}<LSEP>[](symbol){percentile}<LEND>[call](){}<LSEP>[](symbol){array}<LSEP>[argument 0; litteral](logical){NA}<LSEP>[argument 1; litteral](real){21.000000}<LEND>[statement 21; 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){20.000000}<LEND>[statement 1; assign](){<-}<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){i}<LSEP>[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}<LSEP>[](symbol){xlimit}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[](symbol){i}<LEND>[statement 3; 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){repeatability}<LEND>[argument 1; call](){}<LSEP>[](symbol){>=}<LSEP>[](symbol){repeatability}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){percentile}<LSEP>[](symbol){index}<LEND>[statement 4; 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){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){filtered}<LSEP>[](symbol){index}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){nLoc}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){retained}<LSEP>[](symbol){index}<LEND>[statement 6; 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 22; 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 23; assign](){<-}<LSEP>[](symbol){df}<LEND>[call](){}<LSEP>[](symbol){data.frame}<LSEP>[](symbol){df}<LEND>[statement 24; 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 25; 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 26; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){df}<LEND>[litteral](NULL){NULL}<LEND>[statement 27; 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 28; 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 29; 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)\nRepeatbili...}<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 30; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){boxplot}<LSEP>[argument 1; litteral](str){standard}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){boxplot}<LSEP>[](symbol){repeatability}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){repeatability}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){title}<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){Standard boxplot, no adjustmen...}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){robustbase}<LSEP>[](symbol){adjbox}<LEND>[](symbol){repeatability}<LSEP>[argument 1; litteral](logical){TRUE}<LSEP>[argument 2; litteral](str){red}<LSEP>[](symbol){range}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){repeatability}<LEND>[argument 1; litteral](real){1.000000}<LEND>[](symbol){title}<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){Boxplot adjusted to account fo...}<LEND>[statement 31; 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 32; call](){}<LSEP>[](symbol){hist}<LSEP>[](symbol){repeatability}<LSEP>[argument 1; litteral](str){}<LSEP>[argument 2; litteral](str){}<LSEP>[argument 3; litteral](str){red}<LEND>[argument 4; call](){}<LSEP>[](symbol){c}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LSEP>[](symbol){repeatability}<LEND>[argument 1; litteral](real){1.000000}<LEND>[argument 5; litteral](real){100.000000}<LEND>[statement 33; call](){}<LSEP>[](symbol){par}<LSEP>[](symbol){op}<LEND>[statement 34; 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 35; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){df} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){ada}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){...}<LEND>[body; call](){}<LSEP>[](symbol){UseMethod}<LSEP>[argument 0; litteral](str){ada} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){gl.report.pa}<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; block](){}<LSEP>[statement 0; 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; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){pops}<LEND>[call](){}<LSEP>[](symbol){seppop}<LSEP>[](symbol){gl1}<LEND>[false branch; block](){}<LSEP>[statement 0; 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){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 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){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>[](symbol){p1}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pops}<LSEP>[](symbol){i1}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){p2}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){pops}<LSEP>[](symbol){i2}<LEND>[statement 4; 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 5; 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 6; 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 7; 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 8; 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 9; 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 10; 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 11; 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 12; 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 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){ Table of private alleles and...}<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){pall} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_ticket_history}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){ticket_id}<LSEP>[](symbol){format}<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}<LEND>[argument 3; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){format}<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>[](symbol){response} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){foldert}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x1}<LSEP>[](symbol){x2}<LSEP>[](symbol){...}<LSEP>[](symbol){times}<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 'foldert' w...}<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 'foldert' w...}<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){nb.data.frames}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){x1}<LEND>[statement 1; 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>[statement 1; assign](){<-}<LSEP>[](symbol){nb.data.frames}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){dots}<LEND>[argument 1; litteral](real){2.000000}<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){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){times}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; 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){times}<LEND>[call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x1}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){strptime}<LSEP>[](symbol){times}<LSEP>[argument 1; litteral](str){%Y-%m-%d}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){times}<LEND>[call](){}<LSEP>[](symbol){as.Date}<LSEP>[](symbol){times}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.na}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){times}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){times}<LEND>[call](){}<LSEP>[](symbol){as.numeric}<LSEP>[](symbol){times}<LEND>[false branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){times argument missing,\nand t...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){times}<LEND>[argument 1; 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){times}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.data.frames}<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){is.null}<LSEP>[](symbol){times}<LEND>[argument 1; 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}<LEND>[argument 0; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){x1}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){=}<LSEP>[](symbol){times}<LEND>[call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){nb.data.frames}<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){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){|}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.ordered}<LSEP>[](symbol){times}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.numeric}<LSEP>[](symbol){times}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){Date}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){times}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){POSIXlt}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){times}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[argument 0; litteral](str){POSIXct}<LEND>[argument 1; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){times}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){times must be either an ordere...}<LEND>[statement 10; 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 11; 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){prod}<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){substdots}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){substitute}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){...}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){namesdots}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){substdots}<LSEP>[](symbol){deparse}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){namesfold}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){namesfold}<LSEP>[](symbol){namesdots}<LEND>[statement 8; 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){any}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<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 12; 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 13; 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 14; 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 15; 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 16; 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 17; 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 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){fold}<LEND>[](symbol){times}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){fold}<LSEP>[argument 1; litteral](str){times}<LEND>[](symbol){times}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){attr}<LSEP>[](symbol){fold}<LSEP>[argument 1; litteral](str){same.rows}<LEND>[](symbol){same.rows}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){class}<LSEP>[](symbol){fold}<LEND>[litteral](str){foldert}<LEND>[statement 22; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){fold} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){.refforexpairsurl}<LSEP>[litteral](str){https://api.twelvedata.com/for...}<LEND>[assign](){<-}<LSEP>[](symbol){ref_forex_pairs}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){sym}<LSEP>[](symbol){as}<LSEP>[](symbol){currency_base}<LSEP>[](symbol){currency_quote}<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){.refforexpairsurl}<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; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){currency_base}<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){¤cy_base=}<LSEP>[](symbol){currency_base}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LSEP>[](symbol){currency_quote}<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){¤cy_quote=}<LSEP>[](symbol){currency_quote}<LEND>[statement 6; 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 7; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){RcppSimdJson}<LSEP>[](symbol){fload}<LEND>[](symbol){qry}<LEND>[statement 8; 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 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){qry}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){res}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){res}<LEND>[statement 10; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){res}<LEND>[](symbol){sym}<LEND>[statement 11; 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; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){is.null}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[true branch; call](){}<LSEP>[](symbol){warning}<LSEP>[argument 0; litteral](str){A query returned NULL data.}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){data}<LEND>[](symbol){dat}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){dat}<LEND>[call](){}<LSEP>[](symbol){do.call}<LSEP>[argument 0; litteral](str){rbind}<LSEP>[](symbol){dat}<LEND>[statement 13; 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 ...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 14; 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](str){Hurricane} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){RRRR}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LSEP>[](symbol){z}<LSEP>[](symbol){mu}<LSEP>[](symbol){r}<LSEP>[](symbol){itr}<LSEP>[](symbol){earlystop}<LSEP>[](symbol){initial_A}<LSEP>[](symbol){initial_B}<LSEP>[](symbol){initial_D}<LSEP>[](symbol){initial_mu}<LSEP>[](symbol){initial_Sigma}<LSEP>[](symbol){return_data}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){return_data}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){returned_data}<LEND>[call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){y}<LSEP>[](symbol){x}<LSEP>[](symbol){z}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){returned_data}<LSEP>[litteral](NULL){NULL}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){N}<LEND>[call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){y}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){P}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){y}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){Q}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[statement 4; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){initial_A}<LEND>[](symbol){P}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Mismatched dimension. The row ...}<LEND>[statement 5; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){initial_mu}<LEND>[](symbol){P}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Mismatched dimension. The row ...}<LEND>[statement 6; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){initial_B}<LEND>[](symbol){Q}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Mismatched dimension. The row ...}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){initial_A}<LEND>[](symbol){r}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Mismatched dimension. The colu...}<LEND>[statement 8; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){initial_B}<LEND>[](symbol){r}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Mismatched dimension. The colu...}<LEND>[statement 9; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){z}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){z}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){R}<LEND>[call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NCOL}<LSEP>[](symbol){initial_D}<LEND>[](symbol){R}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Mismatched dimension. The colu...}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){NROW}<LSEP>[](symbol){initial_D}<LEND>[](symbol){P}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Mismatched dimension. The row ...}<LEND>[statement 4; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){z}<LEND>[statement 5; control flow](){if}<LSEP>[](symbol){mu}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){rbind}<LSEP>[](symbol){z}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){initial_D}<LEND>[call](){}<LSEP>[](symbol){cbind}<LSEP>[](symbol){initial_D}<LSEP>[](symbol){initial_mu}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){znull}<LSEP>[litteral](logical){FALSE}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R}<LSEP>[litteral](real){0.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){znull}<LSEP>[litteral](logical){TRUE}<LEND>[statement 2; control flow](){if}<LSEP>[](symbol){mu}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){z}<LEND>[call](){}<LSEP>[](symbol){matrix}<LEND>[argument 0; call](){}<LSEP>[](symbol){rep}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){initial_D}<LEND>[call](){}<LSEP>[](symbol){as.matrix}<LSEP>[](symbol){initial_mu}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){muorz}<LEND>[call](){}<LSEP>[](symbol){||}<LSEP>[](symbol){mu}<LEND>[argument 1; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){znull}<LEND>[statement 11; 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; 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){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){z}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The numbers of realizations ar...}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){A}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){itr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){B}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){itr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){Pi}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){itr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){itr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){Sigma}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){itr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){initial_A}<LEND>[statement 18; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){initial_B}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Pi}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 20; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){D}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){initial_D}<LEND>[statement 21; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){initial_Sigma}<LEND>[statement 22; assign](){<-}<LSEP>[](symbol){obj}<LEND>[call](){}<LSEP>[](symbol){numeric}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){itr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 23; assign](){<-}<LSEP>[](symbol){ybar}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){itr}<LEND>[statement 24; assign](){<-}<LSEP>[](symbol){xbar}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){itr}<LEND>[statement 25; assign](){<-}<LSEP>[](symbol){zbar}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){itr}<LEND>[statement 26; assign](){<-}<LSEP>[](symbol){Mbar}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){itr}<LEND>[statement 27; assign](){<-}<LSEP>[](symbol){xk}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){itr}<LEND>[statement 28; assign](){<-}<LSEP>[](symbol){wk}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LSEP>[](symbol){itr}<LEND>[statement 29; assign](){<-}<LSEP>[](symbol){runtime}<LEND>[call](){}<LSEP>[](symbol){vector}<LSEP>[argument 0; litteral](str){list}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){itr}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 30; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){runtime}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 31; assign](){<-}<LSEP>[](symbol){y}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){y}<LEND>[statement 32; assign](){<-}<LSEP>[](symbol){x}<LEND>[call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){x}<LEND>[statement 33; control flow](){for}<LSEP>[](symbol){k}<LEND>[range; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){itr}<LEND>[body; block](){}<LSEP>[statement 0; control flow](){if}<LSEP>[](symbol){muorz}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Pi}<LSEP>[](symbol){k}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){D}<LSEP>[](symbol){k}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){.}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Pi}<LSEP>[](symbol){k}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){.}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xk}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){temp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tem}<LEND>[body; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){tem}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){k}<LEND>[](symbol){tem}<LEND>[statement 2; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wk}<LSEP>[](symbol){k}<LEND>[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){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xk}<LSEP>[](symbol){k}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){dwk}<LEND>[call](){}<LSEP>[](symbol){diag}<LEND>[argument 0; call](){}<LSEP>[](symbol){sqrt}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){wk}<LSEP>[](symbol){k}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ybar}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){y}<LSEP>[](symbol){dwk}<LEND>[statement 5; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xbar}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){x}<LSEP>[](symbol){dwk}<LEND>[statement 6; control flow](){if}<LSEP>[](symbol){muorz}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){z}<LSEP>[](symbol){dwk}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Mbar}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){diag}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){R_0}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ybar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Mbar}<LSEP>[](symbol){k}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){R_1}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Mbar}<LSEP>[](symbol){k}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){R_0}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ybar}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){R_1}<LEND>[call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xbar}<LSEP>[](symbol){k}<LEND>[statement 7; assign](){<-}<LSEP>[](symbol){S_01}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){R_0}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R_1}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){S_10}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){R_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R_0}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){S_00}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){R_0}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R_0}<LEND>[statement 10; assign](){<-}<LSEP>[](symbol){S_11}<LEND>[call](){}<LSEP>[](symbol){*}<LEND>[argument 0; call](){}<LSEP>[](symbol){/}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){R_1}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){R_1}<LEND>[statement 11; assign](){<-}<LSEP>[](symbol){SSSSS}<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){solve}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){expm}<LSEP>[](symbol){sqrtm}<LEND>[](symbol){S_11}<LEND>[](symbol){S_10}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LSEP>[](symbol){S_00}<LEND>[](symbol){S_01}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){expm}<LSEP>[](symbol){sqrtm}<LEND>[](symbol){S_11}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){V}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LEND>[argument 0; call](){}<LSEP>[](symbol){eigen}<LSEP>[](symbol){SSSSS}<LEND>[](symbol){vectors}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){r}<LEND>[statement 13; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){expm}<LSEP>[](symbol){sqrtm}<LEND>[](symbol){S_11}<LEND>[](symbol){V}<LEND>[statement 14; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){%*%}<LSEP>[](symbol){S_01}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 15; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 16; control flow](){if}<LSEP>[](symbol){muorz}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<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){ybar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[statement 1; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<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>[argument 1; litteral](real){1.000000}<LEND>[argument 1; 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){%*%}<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){ybar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ybar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){zbar}<LSEP>[](symbol){k}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<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>[argument 1; litteral](real){1.000000}<LEND>[argument 1; 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){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ybar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xbar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){ybar}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xbar}<LSEP>[](symbol){k}<LEND>[statement 17; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj}<LSEP>[](symbol){k}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; 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){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){k}<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){P}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){xk}<LSEP>[](symbol){k}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){last}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 19; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){runtime}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){Sys.time}<LEND>[statement 20; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){k}<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){abs}<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){obj}<LSEP>[](symbol){k}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[argument 1; litteral](real){0.000010}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; control flow](){break}<LEND>[statement 34; control flow](){if}<LSEP>[](symbol){muorz}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){z}<LEND>[argument 1; call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){.}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){temp}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LSEP>[](symbol){y}<LEND>[argument 1; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Pi}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){split}<LEND>[argument 0; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){.}<LEND>[statement 35; assign](){<-}<LSEP>[](symbol){xkk}<LEND>[call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){temp}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){tem}<LEND>[body; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){%*%}<LEND>[argument 0; call](){}<LSEP>[](symbol){t}<LSEP>[](symbol){tem}<LEND>[argument 1; call](){}<LSEP>[](symbol){solve}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[](symbol){tem}<LEND>[statement 36; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[call](){}<LSEP>[](symbol){+}<LEND>[argument 0; 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){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){det}<LEND>[argument 0; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){k}<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>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){P}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){*}<LSEP>[argument 0; litteral](real){2.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LSEP>[](symbol){N}<LEND>[argument 1; call](){}<LSEP>[](symbol){sum}<LEND>[argument 0; call](){}<LSEP>[](symbol){log}<LEND>[argument 0; call](){}<LSEP>[](symbol){+}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){xkk}<LEND>[statement 37; control flow](){if}<LSEP>[](symbol){mu}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){D}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){znull}<LEND>[true branch; assign](){<-}<LSEP>[](symbol){D}<LEND>[call](){}<LSEP>[](symbol){lapply}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){D}<LEND>[argument 1; call](){}<LSEP>[](symbol){sapply}<LSEP>[](symbol){D}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){is.null}<LSEP>[](symbol){x}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LSEP>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){seq_len}<LEND>[argument 0; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LSEP>[](symbol){x}<LEND>[argument 1; litteral](real){1.000000}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){mu}<LSEP>[litteral](NULL){NULL}<LEND>[statement 38; control flow](){if}<LSEP>[](symbol){znull}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){D}<LSEP>[litteral](NULL){NULL}<LEND>[statement 39; assign](){<-}<LSEP>[](symbol){history}<LEND>[call](){}<LSEP>[](symbol){%>%}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){mu}<LSEP>[](symbol){A}<LSEP>[](symbol){B}<LSEP>[](symbol){D}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){obj}<LEND>[argument 6; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[argument 1; call](){}<LSEP>[](symbol){diff}<LEND>[argument 0; call](){}<LSEP>[](symbol){do.call}<LEND>[argument 0; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){base}<LSEP>[](symbol){c}<LEND>[](symbol){runtime}<LEND>[argument 1; call](){}<LSEP>[](symbol){lapply}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LEND>[body; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){x}<LEND>[argument 1; call](){}<LSEP>[](symbol){seq_len}<LSEP>[](symbol){last}<LEND>[statement 40; assign](){<-}<LSEP>[](symbol){output}<LEND>[call](){}<LSEP>[](symbol){list}<LEND>[argument 0; call](){}<LSEP>[](symbol){list}<LSEP>[](symbol){N}<LSEP>[](symbol){P}<LSEP>[](symbol){Q}<LSEP>[](symbol){R}<LSEP>[](symbol){r}<LEND>[](symbol){history}<LEND>[argument 2; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){mu}<LSEP>[](symbol){last}<LEND>[argument 3; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){A}<LSEP>[](symbol){last}<LEND>[argument 4; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){B}<LSEP>[](symbol){last}<LEND>[argument 5; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){D}<LSEP>[](symbol){last}<LEND>[argument 6; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){Sigma}<LSEP>[](symbol){last}<LEND>[argument 7; call](){}<LSEP>[](symbol){[[}<LSEP>[](symbol){obj}<LSEP>[](symbol){last}<LEND>[](symbol){returned_data}<LEND>[statement 41; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){new_RRRR}<LSEP>[](symbol){output} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){initRepo}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){name}<LSEP>[](symbol){basepath}<LSEP>[](symbol){location}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){haspkg}<LEND>[call](){}<LSEP>[](symbol){requireNamespace}<LSEP>[argument 0; litteral](str){git2r}<LSEP>[argument 1; litteral](logical){TRUE}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){haspkg}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){The 'initRepo' function requir...}<LSEP>[argument 1; litteral](logical){FALSE}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){basepath}<LSEP>[](symbol){name}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){file.exists}<LSEP>[](symbol){dir}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LSEP>[argument 0; litteral](str){Directory '}<LSEP>[](symbol){dir}<LSEP>[argument 2; litteral](str){' already exists.}<LSEP>[argument 3; litteral](logical){FALSE}<LEND>[statement 4; call](){}<LSEP>[](symbol){.check_location_arg}<LSEP>[](symbol){location}<LEND>[statement 5; call](){}<LSEP>[](symbol){dir.create}<LSEP>[](symbol){dir}<LEND>[statement 6; assign](){<-}<LSEP>[](symbol){repo}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){init}<LEND>[](symbol){dir}<LEND>[statement 7; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){## Drat Repo}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](str){README.md}<LEND>[statement 8; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){add}<LEND>[](symbol){repo}<LSEP>[argument 1; litteral](str){README.md}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){cmt}<LEND>[call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){commit}<LEND>[](symbol){repo}<LSEP>[argument 1; litteral](str){Initial Commit}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){location}<LSEP>[argument 1; litteral](str){gh-pages}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[call name; call](){}<LSEP>[](symbol){::}<LSEP>[](symbol){git2r}<LSEP>[](symbol){checkout}<LEND>[](symbol){repo}<LSEP>[argument 1; litteral](str){gh-pages}<LSEP>[argument 2; litteral](logical){TRUE}<LEND>[false branch; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){location}<LSEP>[argument 1; litteral](str){docs}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){dir}<LEND>[call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){dir}<LSEP>[](symbol){location}<LEND>[statement 1; call](){}<LSEP>[](symbol){dir.create}<LSEP>[](symbol){dir}<LEND>[statement 11; call](){}<LSEP>[](symbol){dir.create}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](str){src}<LEND>[statement 12; call](){}<LSEP>[](symbol){dir.create}<LEND>[argument 0; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](str){src}<LSEP>[argument 2; litteral](str){contrib}<LEND>[statement 13; call](){}<LSEP>[](symbol){writeLines}<LSEP>[argument 0; litteral](str){<!doctype html><title>empty pl...}<LEND>[argument 1; call](){}<LSEP>[](symbol){file.path}<LSEP>[](symbol){dir}<LSEP>[argument 1; litteral](str){index.html}<LEND>[statement 14; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){plot.hclustdd}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){labels}<LSEP>[](symbol){hang}<LSEP>[](symbol){check}<LSEP>[](symbol){axes}<LSEP>[](symbol){frame.plot}<LSEP>[](symbol){ann}<LSEP>[](symbol){main}<LSEP>[](symbol){sub}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){...}<LEND>[body; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){plot}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){clust}<LEND>[](symbol){labels}<LSEP>[](symbol){hang}<LSEP>[](symbol){check}<LSEP>[](symbol){axes}<LSEP>[](symbol){frame.plot}<LSEP>[](symbol){ann}<LSEP>[](symbol){main}<LSEP>[](symbol){sub}<LSEP>[](symbol){xlab}<LSEP>[](symbol){ylab}<LSEP>[](symbol){...}<LEND>[statement 1; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){invisible}<LSEP>[argument 0; litteral](NULL){NULL} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[variable; litteral](str){mvdht}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){inverted}<LEND>[body; call](){}<LSEP>[](symbol){mvdtt}<LSEP>[](symbol){x}<LSEP>[argument 1; litteral](str){dht}<LSEP>[](symbol){inverted} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){mtgcomponents}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){x}<LSEP>[](symbol){vertex}<LSEP>[](symbol){scale}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){topo}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){topology}<LEND>[argument 1; call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){topology}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){xvtx}<LEND>[call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){topology}<LEND>[](symbol){}<LEND>[argument 2; call](){}<LSEP>[](symbol){ncol}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){topology}<LEND>[statement 2; assign](){<-}<LSEP>[](symbol){matorder}<LEND>[call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){topo}<LSEP>[argument 1; litteral](real){1.000000}<LSEP>[](symbol){nchar}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 3; assign](){<-}<LSEP>[](symbol){vorder}<LEND>[call](){}<LSEP>[](symbol){apply}<LSEP>[](symbol){matorder}<LSEP>[argument 1; litteral](real){2.000000}<LSEP>[](symbol){which}<LEND>[statement 4; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){names}<LSEP>[](symbol){xvtx}<LEND>[call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){topo}<LEND>[statement 5; assign](){<-}<LSEP>[](symbol){classes}<LEND>[call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){x}<LSEP>[](symbol){classes}<LEND>[statement 6; 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){topo}<LEND>[body; assign](){<-}<LSEP>[variable; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){topo}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){topo}<LSEP>[](symbol){}<LSEP>[](symbol){j}<LEND>[statement 7; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){vertex}<LEND>[argument 1; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){topo}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){No vertex is called }<LSEP>[](symbol){vertex}<LSEP>[argument 2; litteral](str){ (See the rownames of topolog...}<LEND>[statement 8; assign](){<-}<LSEP>[](symbol){vertexclass}<LEND>[call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xvtx}<LSEP>[](symbol){vertex}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 9; assign](){<-}<LSEP>[](symbol){vertexscale}<LEND>[call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classes}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){classes}<LSEP>[](symbol){SYMBOL}<LEND>[](symbol){vertexclass}<LEND>[argument 2; litteral](str){SCALE}<LEND>[statement 10; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<=}<LSEP>[](symbol){scale}<LSEP>[](symbol){vertexscale}<LEND>[true branch; call](){}<LSEP>[](symbol){stop}<LEND>[argument 0; call](){}<LSEP>[](symbol){paste0}<LSEP>[argument 0; litteral](str){scale = }<LSEP>[](symbol){scale}<LSEP>[argument 2; litteral](str){ and the scale of }<LSEP>[](symbol){vertex}<LSEP>[argument 4; litteral](str){ is }<LSEP>[](symbol){vertexscale}<LSEP>[argument 6; litteral](str){.\n scale must be higher than...}<LEND>[statement 11; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){==}<LSEP>[](symbol){vertex}<LEND>[argument 1; call](){}<LSEP>[](symbol){tail}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){topo}<LEND>[argument 1; litteral](real){1.000000}<LEND>[true branch; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 12; assign](){<-}<LSEP>[](symbol){ivertex}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){topo}<LEND>[](symbol){vertex}<LEND>[statement 13; assign](){<-}<LSEP>[](symbol){jvertex}<LEND>[call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){>}<LEND>[argument 0; call](){}<LSEP>[](symbol){nchar}<LEND>[argument 0; call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){topo}<LSEP>[](symbol){ivertex}<LSEP>[](symbol){}<LEND>[argument 1; litteral](real){0.000000}<LEND>[statement 14; assign](){<-}<LSEP>[](symbol){components}<LEND>[call](){}<LSEP>[](symbol){character}<LSEP>[argument 0; litteral](real){0.000000}<LEND>[statement 15; assign](){<-}<LSEP>[](symbol){i}<LEND>[call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){ivertex}<LSEP>[argument 1; litteral](real){1.000000}<LEND>[statement 16; assign](){<-}<LSEP>[](symbol){j}<LSEP>[](symbol){jvertex}<LEND>[statement 17; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){!=}<LEND>[argument 0; call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){topo}<LSEP>[](symbol){i}<LSEP>[](symbol){jvertex}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[argument 1; litteral](str){^/}<LEND>[true branch; block](){}<LSEP>[statement 0; call](){}<LSEP>[](symbol){return}<LSEP>[](symbol){components}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){components}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){components}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){topo}<LEND>[](symbol){i}<LEND>[statement 1; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){<}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){nrow}<LSEP>[](symbol){topo}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){relprec}<LEND>[call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){topo}<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){i}<LEND>[](symbol){jvertex}<LEND>[argument 1; litteral](real){1.000000}<LSEP>[argument 2; litteral](real){2.000000}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){is.comp}<LEND>[call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){&}<LEND>[argument 0; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){relprec}<LEND>[argument 1; call](){}<LSEP>[](symbol){c}<LSEP>[argument 0; litteral](str){}<LSEP>[argument 1; litteral](str){^<}<LSEP>[argument 2; litteral](str){^/}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){>=}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){vorder}<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){i}<LEND>[](symbol){jvertex}<LEND>[statement 2; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){all}<LSEP>[](symbol){is.comp}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lgseq}<LEND>[call](){}<LSEP>[](symbol){length}<LSEP>[](symbol){is.comp}<LEND>[false branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){lgseq}<LEND>[call](){}<LSEP>[](symbol){-}<LEND>[argument 0; call](){}<LSEP>[](symbol){min}<LEND>[argument 0; call](){}<LSEP>[](symbol){which}<LEND>[argument 0; call](){}<LSEP>[](symbol){!}<LSEP>[](symbol){is.comp}<LEND>[argument 1; litteral](real){1.000000}<LEND>[statement 3; control flow](){if}<LSEP>[condition; call](){}<LSEP>[](symbol){>}<LSEP>[](symbol){lgseq}<LSEP>[argument 1; litteral](real){0.000000}<LEND>[true branch; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){components}<LEND>[call](){}<LSEP>[](symbol){c}<LSEP>[](symbol){components}<LEND>[argument 1; call](){}<LSEP>[](symbol){[}<LEND>[argument 0; call](){}<LSEP>[](symbol){rownames}<LSEP>[](symbol){topo}<LEND>[argument 1; call](){}<LSEP>[](symbol){+}<LSEP>[](symbol){i}<LEND>[argument 1; call](){}<LSEP>[](symbol){(}<LEND>[argument 0; call](){}<LSEP>[](symbol){:}<LSEP>[argument 0; litteral](real){1.000000}<LSEP>[](symbol){lgseq}<LEND>[statement 18; assign](){<-}<LSEP>[](symbol){compsymb}<LEND>[call](){}<LSEP>[](symbol){substring}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){xvtx}<LSEP>[](symbol){components}<LEND>[argument 1; litteral](real){3.000000}<LSEP>[argument 2; litteral](real){3.000000}<LEND>[statement 19; assign](){<-}<LSEP>[](symbol){scaleclass}<LEND>[call](){}<LSEP>[](symbol){as.character}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){classes}<LEND>[argument 1; call](){}<LSEP>[](symbol){==}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){classes}<LSEP>[](symbol){SCALE}<LEND>[](symbol){scale}<LEND>[argument 2; litteral](str){SYMBOL}<LEND>[statement 20; call](){}<LSEP>[](symbol){return}<LEND>[argument 0; call](){}<LSEP>[](symbol){[}<LSEP>[](symbol){components}<LEND>[argument 1; call](){}<LSEP>[](symbol){%in%}<LSEP>[](symbol){compsymb}<LSEP>[](symbol){scaleclass} |
[](){expression}<LSEP>[assign](){<-}<LSEP>[](symbol){rt_ticket_merge}<LEND>[](){function}<LSEP>[](pairlist){}<LSEP>[](symbol){origin}<LSEP>[](symbol){into}<LEND>[body; block](){}<LSEP>[statement 0; assign](){<-}<LSEP>[](symbol){url}<LEND>[call](){}<LSEP>[](symbol){rt_url}<LSEP>[argument 0; litteral](str){ticket}<LSEP>[](symbol){origin}<LSEP>[argument 2; litteral](str){merge}<LSEP>[](symbol){into}<LEND>[statement 1; assign](){<-}<LSEP>[](symbol){response}<LEND>[call](){}<LSEP>[](symbol){rt_POST}<LSEP>[](symbol){url}<LEND>[statement 2; call](){}<LSEP>[](symbol){stopforstatus}<LSEP>[](symbol){response}<LEND>[statement 3; call](){}<LSEP>[](symbol){message}<LEND>[argument 0; call](){}<LSEP>[](symbol){$}<LSEP>[](symbol){response}<LSEP>[](symbol){body}<LEND>[statement 4; call](){}<LSEP>[](symbol){invisible}<LSEP>[](symbol){into} |