# Articles by Di Cook

### Battery Storage ROI Analysis

December 30, 2021 |

It's been a while since my last post and I'm taking my occasional blog in a different direction.Over the years I've learned that utility tariffs, although hard to follow, vary widely. They can have a significant financial impact on behind-the-meter activities, depending on the numbers.The map below shows ... [Read more...]

### Bootstrapping the Zero Curve from IRS Swap Rates using R code

July 18, 2021 |

This post explains how to generate the zero curve from market swap rates using bootstrapping. For the same 5-Year Libor IRS which is dealt with the previous post, we use Excel illustrations for clear understanding and then make a R code. Boot...

### Correlation in R ( NA friendliness, accepting matrix as input data, returning p values, visualization and Pearson vs Spearman)

May 27, 2021 |

Many times, in our projects, we may needed to compare different factors to one another, and study whether they are linearly dependent. These information can also help us to detect covariates and define suitable design formulas for our analysis that wou...

### Maintining the data frame fromat when indexing

April 7, 2021 |

Occasionally when indexing data frames the format is converted, leading to confusing consequences. As for instance, when indexing to select a single column the result is a 'numeric' or 'integer' vector. The following  demonstrates this :&nbs...

### Measuring effect size in ALDEx2

March 1, 2021 |

I'm in the throes of submitting a paper on effect sizes in ALDEx2, and so I thought I would take a stab at a nice concise blog post to summarize and simplify. Effect sizes are standardized mean differences between groups, and are designed to conve...

### Measuring effect size in ALDEx2

March 1, 2021 |

I'm in the throes of submitting a paper on effect sizes in ALDEx2, and so I thought I would take a stab at a nice concise blog post to summarize and simplify. Effect sizes are standardized mean differences between groups, and are designed to conve...

### Speeding up aldex.effect()

February 21, 2021 |

I've been optimizing various functions in ALDEx2 on Bioconductor to make it more efficient. One bottleneck has been the aldex.effect() function which calculates an effect size for the difference between distributions. I will write a separate... [Read more...]

### New Book: "Computational Genomics with R"

February 10, 2021 |

It costs now 299\$ now to sequence your genome [https://nebula.org/whole-genome-sequencing-dna-test/]. It is getting cheaper to generate genomic data and more of it is coming through. We can't see the same trend for the people who can analyze the ...

### New Book: "Computational Genomics with R"

February 10, 2021 |

It costs now 299\$ now to sequence your genome [https://nebula.org/whole-genome-sequencing-dna-test/]. It is getting cheaper to generate genomic data and more of it is coming through. We can't see the same trend for the people who can analyze the ...

January 5, 2021 |

Sold TLT March 150 puts against my short position. [Read more...]

January 5, 2021 |

Sold TLT March 150 puts against my short position. [Read more...]

January 5, 2021 |

Added to my base stock position, very small. +1.7 % [Read more...]

January 5, 2021 |

Added to my base stock position, very small. +1.7 % [Read more...]

### Venus (female) and Mars (male) symbols in R plot – using Unicode

January 31, 2020 |

When analyzing a data constructed of individuals (or samples from individuals) of both male and female of a species (e.g. humans), often it is a good idea to compare the distribution of the various studied parameters for the males to those for the fema...

### Plotting multiple Venndiagram (or diagrams) in single screen

November 28, 2019 |

Here is an example of plotting 4 venn diagrams in a single screen with a 2*2 layout. library(VennDiagram)#defining vectorsav

### Axis break in R for line plot

November 7, 2019 |

Planning to draw a density line-plot with gapped (or broken) Y-axis in R, I initially tried out the plotrix package. However after facing a couple of problems, I ended up using the standard R graphics codes to draw the correct gapped line-plot.Here I w...

### Detecting U12-type introns using IntEREst R/Biocondcutor package

June 7, 2019 |

Ali Oghabian2019-04-25The topics covered in this post are:R and IntEREst versionFiles in the zipAnnotating u12 type introns of HG38ncRNAs with U12-type intronsU12 annotation comparisonReferenceFiles in the zipYou can download the zip file the includes ...

### Hack-at-it 2010

June 4, 2010 |

Members of the team met for the second time in 2010, to work on a new interactive graphics canvas for R. The current stage of the project can be found at R-forge: qtinterfaces contains the new canvas, and plumbr contains the new mutable data frame stru... [Read more...]

### Hack-at-it 2009

June 9, 2009 |

The annual GGobi hack-at-it was held June 5-7 in Ames Iowa. The main directions of work areDevelopment of a new canvas for R supporting interactive and dynamic graphics. Michael is leading the effort on this. Higher level routines for supporting brushi... [Read more...]

### GGobi in Wikipedia

June 27, 2008 |

GGobi now has an entry in Wikipedia. Feel free to edit it! [Read more...]
1 2