Package diffeq. February 19, 2015

Size: px
Start display at page:

Download "Package diffeq. February 19, 2015"

Transcription

1 Version Package diffeq February 19, 2015 Title Functions from the book Solving Differential Equations in R Author Karline Soetaert <karline.soetaert@nioz.nl> Maintainer Karline Soetaert <karline.soetaert@nioz.nl> Depends R (>= 2.01), desolve, rootsolve, bvpsolve, ReacTran, detestset Imports shape Suggests scatterplot3d Description Functions and examples from the book Solving Differential Equations in R by Karline Soetaert, Jeff R Cash and Francesca Mazzia. Springer, License GPL LazyData yes Repository CRAN Repository/R-Forge/Project bvpsolve Repository/R-Forge/Revision 223 Repository/R-Forge/DateTimeStamp :33:59 Date/Publication :40:11 NeedsCompilation no R topics documented: diffeq-package Coefficients rkmethodplot stability.multistep Index 10 1

2 2 diffeq-package diffeq-package Functions to create the figures of the book "solving differential equations in R" by Karline Soetaert, Jeff R. Cash and Francesca Mazzia. Published by Springer Description Details R package diffeq contains the functions for generating figures relating to differential equations Package: diffeq Type: Package Version: 1.0 License: GNU Public License 2 or above Author(s) See Also Karline Soetaert (Maintainer), Jeff Cash, Francesca Mazzia rkmethodplot for plotting the steps of runge-kutta methods stability.multistep, stability.bruteforce for plotting stability regions Coefficients for the BDF, AdamsMoulton, AdamsBashford coefficients. rkmethod from package desolve for the Runge-Kutta coefficients Examples ## Not run: ## show examples (see respective help pages for details) example(rkmethodplot) example(stability.multistep) example(bdf) ## open the directory with R sourcecode examples browseurl(paste(system.file(package = "diffeq"), "/doc/examples", sep = "")) ## show package vignette with how to use the package ## + source code of the vignette vignette("diffeq")

3 Coefficients 3 edit(vignette("diffeq")) ## End(Not run) Coefficients The coefficients of multistep methods Description Usage Coefficients alpha and beta of the Adams-Bashforth, Adams-Moulton and Backward differentiation formulae. sum_j=0^k alpha_j y_n-j = h sum_(j=0)^k beta_j f(x_n-j,y_n-j) For the BDF methods, the angle of the stability-region (the alpha of the A(alpha) stability, in radians is also given. BDF AdamsMoulton AdamsBashforth Author(s) See Also Karline Soetaert stability.multistep for plotting stability regions Examples ## Stability properties BDF stability.multistep(alpha = BDF$alpha[3,], beta = BDF$beta[3,], xlim = c(-7,7), ylim = c(-7,7)) stability.multistep(alpha = AdamsMoulton$alpha[3,], beta = AdamsMoulton$beta[3,], xlim = c(-7,7), ylim = c(-7,7) ) stability.multistep(alpha = AdamsBashforth$alpha[3,], beta = AdamsBashforth$beta[3,] ) ## Running a BDF

4 4 rkmethodplot # test model ode1 <- function (t, y) return(cos(t)*y ) h < times <- seq(from = 0, to = 20, by = h) yout <- vector (length = length(times)) yout[1] <- 1 # 3rd order BDF Alpha <- BDF$alpha [3,2:4] Beta <- BDF$beta[3,] bdf <- function(y, t, h, f, ys) { rootfun <- function(ynext) - ynext - sum(alpha * ys) + Beta * h * f(t + h, ynext) y <- multiroot(f=rootfun, start=y)$root ys[2:3] <- ys[1:2] ys[1] <- y } list (y = y, ys=ys) # Spinup uses Euler... Euler <- function(y, t, h, f) { fn <- f(t, y) ynext <- y + h * fn } list (y = ynext, fn = fn) for (i in 2:3) yout[i] <- Euler(yout[i-1], times[i-1], h, ode1)$y ys <- rev(yout[1:3]) # BDF steps for (i in 4:length(times)){ step <- bdf (y=yout[i-1], t=times[i-1], h=h, f=ode1, ys=ys) yout[i] <- step$y ys <- step$ys } rkmethodplot Plots the steps in runge-kutta methods Description...

5 rkmethodplot 5 Usage rkmethodplot (rk,...) Arguments Value rk A list containing the runge-kutta coefficients, implicit or explicit, e.g. matrix A, vectors b1, b2, codec. The list can be of type rkmethod, as defined in package desolve.... arguments passed to the plotting function. Returns nothing Author(s) See Also Karline Soetaert stability.bruteforce for plotting stability regions of Runge-Kutta methods. Examples # This to plot all runge kutta methods #RKS <- rkmethod() #for (i in 4:21) rkmethodplot( rkmethod(rks[i])) ## ## Figures A and B: Cash-Karp and Radau 5 steps ## par(mfrow=c(2,2)) rkmethodplot( rkmethod("rk45ck"), main="cash-karp") writelabel("a") rkmethodplot( rkmethod("irk5"), main="radau5") writelabel("b") rkmethodplot( rkmethod("rk45dp6"), main="dopri") writelabel("c") rkmethodplot( rkmethod("irk6l"), main="lobatto") writelabel("d") legend("bottomright", pch = c(16, 16, 1, NA), pt.cex = c(1.5, 1.5, 1), legend = c(expression(y[0]), expression(y[1]), "intermediary", "k"), col = c("grey", "black", "black", "black"), lty = c(na, NA, NA, 1), lwd = c(1, 1, 1, 2))

6 6 stability.multistep stability.multistep Plots the stability function of multistep methods Description... Usage stability.multistep (alpha, beta, add = FALSE, fill = NULL,...) stability.bruteforce (Rez = seq(-2, 2, by = 0.02), Imz = seq(-2, 2, by = 0.02), func = function (z) return(abs(1 + h*z) <=1), fill = "grey", cex = 1.5, add = FALSE,...) Arguments alpha beta add fill Rez Imz func cex alpha coefficients of the multistep method. beta coefficients of the multistep method. if TRUE, the new region will be added to the existing plot color of region to be filled The range in the real plane for testing stability The range in the imaginary plane for testing stability The function to be tested; default is test for the euler method. The relative size of the plotting symbol. If too small, the region will not be completely covered. If too large, it will extend beyond its boundaries.... arguments passed to the plotting function. Value A matrix with the boundary value. Author(s) Karline Soetaert See Also rkmethodplot for plotting runge-kutta method steps.

7 stability.multistep 7 Examples par(mfrow=c(2,2)) ## Stability regions for multistep methods # Adams-Bashforth stability.multistep(alpha = AdamsBashforth$alpha[2,], beta = AdamsBashforth$beta[2,], xlim = c(-3,1), ylim = c(-1.5, 1.5), fill = "black", main = "Adams-Bashforth") stability.multistep(alpha = AdamsBashforth$alpha[3,], beta = AdamsBashforth$beta[3,], add = TRUE, lty = 1, fill = "darkgrey") stability.multistep(alpha = AdamsBashforth$alpha[4,], beta = AdamsBashforth$beta[4,], add = TRUE, fill = "lightgrey", lty = 1) stability.multistep(alpha = AdamsBashforth$alpha[5,], beta = AdamsBashforth$beta[5,], add = TRUE, fill = "white", lty = 1) legend("topleft", fill = c("black", "darkgrey", "lightgrey", "white"), title = "order", legend = 2:5) writelabel("a") # Adams-Moulton stability.multistep(alpha = AdamsMoulton$alph[3,], beta = AdamsMoulton$beta[3,], xlim = c(-8, 1), ylim = c(-4, 4), fill = "black", main = "Adams-Moulton") stability.multistep(alpha = AdamsMoulton$alpha[4,], beta = AdamsMoulton$beta[4,], add = TRUE, fill = "darkgrey") stability.multistep(alpha = AdamsMoulton$alpha[5,], beta = AdamsMoulton$beta[5,], add = TRUE, fill = "lightgrey") legend("topleft", fill = c("black", "darkgrey", "lightgrey"), title = "order", legend = 3:5 ) writelabel("b") # 2nd-order BDF plot(0, type="n", xlim = c(-3, 12), ylim = c(-8, 8), main = "BDF order 2", xlab = "Re(z)", ylab = "Im(z)") rect(-100, -100, 100, 100, col = "lightgrey") box() stability.multistep (alpha = BDF$alpha[2,], beta = BDF$beta[2,], fill = "white", add = TRUE) writelabel("c") # 4th-order BDF

8 8 stability.multistep plot(0, type="n", xlim=c(-3, 12), ylim = c(-8, 8), main = "BDF order 4", xlab = "Re(z)", ylab = "Im(z)") rect(-100, -100, 100, 100, col = "lightgrey") box() stability.multistep (alpha = BDF$alpha[4,], beta = BDF$beta[4,], fill = "white", add = TRUE) writelabel("d") ## Stability regions for runge-kutta methods # Drawing the stability regions - brute force # stability function for explicit runge-kutta s rkstabfunc <- function (z, order = 1) { h <- 1 ss <- 1 for (p in 1: order) ss <- ss + (h*z)^p / factorial(p) return (abs(ss) <= 1) } # regions for stability orders 5 to 1 - rather crude Rez <- seq(-5, 1, by = 0.1) Imz <- seq(-3, 3, by = 0.1) stability.bruteforce(main = "Explicit RK", func = function(z) rkstabfunc(z, order = 5), Rez = Rez, Imz = Imz, fill = grey(0.95) ) stability.bruteforce(add = TRUE, func = function(z) rkstabfunc(z, order = 4), Rez = Rez, Imz = Imz, fill = grey(0.75) ) stability.bruteforce(add = TRUE, func = function(z) rkstabfunc(z, order = 3), Rez = Rez, Imz = Imz, fill = grey(0.55) ) stability.bruteforce(add = TRUE, func = function(z) rkstabfunc(z, order = 2), Rez = Rez, Imz = Imz, fill = grey(0.35) ) stability.bruteforce(add = TRUE, func = function(z) rkstabfunc(z, order = 1), Rez = Rez, Imz = Imz, fill = grey(0.15) ) legend("topleft", legend = 5:1, title = "order", fill = grey(c(0.95, 0.75, 0.55, 0.35, 0.15))) # stability function for radau method stability.bruteforce(main = "Radau 5", Rez = seq(-5,15,by=0.1), Imz = seq(-10,10,by=0.12),

9 stability.multistep 9 func = function(z) return(abs((1 + 2*z/5 + z^2/20) / (1-3*z/5 + 3*z^2/20 - z^3/60)) <= 1), col = grey(0.8) )

10 Index Topic datasets Coefficients, 3 Topic math stability.multistep, 6 Topic package diffeq-package, 2 Topic plot rkmethodplot, 4 AdamsBashforth (Coefficients), 3 AdamsMoulton (Coefficients), 3 BDF (Coefficients), 3 Coefficients, 2, 3 diffeq (diffeq-package), 2 diffeq-package, 2 rkmethodplot, 2, 4, 6 stability.bruteforce, 2, 5 stability.bruteforce (stability.multistep), 6 stability.multistep, 2, 3, 6 10

Solving partial differential equations, using R package ReacTran

Solving partial differential equations, using R package ReacTran Solving partial differential equations, using R package ReacTran Karline Soetaert and Filip Meysman Centre for Estuarine and Marine Ecology Netherlands Institute of Ecology The Netherlands Abstract R -package

More information

Package SpatPCA. R topics documented: February 20, Type Package

Package SpatPCA. R topics documented: February 20, Type Package Type Package Package SpatPCA February 20, 2018 Title Regularized Principal Component Analysis for Spatial Data Version 1.2.0.0 Date 2018-02-20 URL https://github.com/egpivo/spatpca BugReports https://github.com/egpivo/spatpca/issues

More information

Package mpmcorrelogram

Package mpmcorrelogram Type Package Package mpmcorrelogram Title Multivariate Partial Mantel Correlogram Version 0.1-4 Depends vegan Date 2017-11-17 Author Marcelino de la Cruz November 17, 2017 Maintainer Marcelino de la Cruz

More information

Package darts. February 19, 2015

Package darts. February 19, 2015 Type Package Package darts February 19, 2015 Title Statistical Tools to Analyze Your Darts Game Version 1.0 Date 2011-01-17 Author Maintainer Are you aiming at the right spot in darts?

More information

Package leiv. R topics documented: February 20, Version Type Package

Package leiv. R topics documented: February 20, Version Type Package Version 2.0-7 Type Package Package leiv February 20, 2015 Title Bivariate Linear Errors-In-Variables Estimation Date 2015-01-11 Maintainer David Leonard Depends R (>= 2.9.0)

More information

Package FDRSeg. September 20, 2017

Package FDRSeg. September 20, 2017 Type Package Package FDRSeg September 20, 2017 Title FDR-Control in Multiscale Change-Point Segmentation Version 1.0-3 Date 2017-09-20 Author Housen Li [aut], Hannes Sieling [aut], Timo Aspelmeier [cre]

More information

Initial-Value Problems for ODEs. Introduction to Linear Multistep Methods

Initial-Value Problems for ODEs. Introduction to Linear Multistep Methods Initial-Value Problems for ODEs Introduction to Linear Multistep Methods Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University

More information

Package ReacTran. August 16, 2017

Package ReacTran. August 16, 2017 Version 1.4.3.1 Package ReacTran August 16, 2017 Title Reactive Transport Modelling in 1d, 2d and 3d Author Karline Soetaert , Filip Meysman Maintainer

More information

Package BayesNI. February 19, 2015

Package BayesNI. February 19, 2015 Package BayesNI February 19, 2015 Type Package Title BayesNI: Bayesian Testing Procedure for Noninferiority with Binary Endpoints Version 0.1 Date 2011-11-11 Author Sujit K Ghosh, Muhtarjan Osman Maintainer

More information

Package pearson7. June 22, 2016

Package pearson7. June 22, 2016 Version 1.0-2 Date 2016-06-21 Package pearson7 June 22, 2016 Title Maximum Likelihood Inference for the Pearson VII Distribution with Shape Parameter 3/2 Author John Hughes Maintainer John Hughes

More information

R Package ecolmod: figures and examples from Soetaert and Herman (2009)

R Package ecolmod: figures and examples from Soetaert and Herman (2009) R Package ecolmod: figures and examples from Soetaert and Herman (2009) Karline Soetaert Royal Netherlands Institute of Sea Research (NIOZ) Yerseke, The Netherlands Abstract This document contains some

More information

Package clogitboost. R topics documented: December 21, 2015

Package clogitboost. R topics documented: December 21, 2015 Package December 21, 2015 Type Package Title Boosting Conditional Logit Model Version 1.1 Date 2015-12-09 Author Haolun Shi and Guosheng Yin Maintainer A set of functions to fit a boosting conditional

More information

SOLVING BOUNDARY VALUE PROBLEMS IN THE OPEN SOURCE SOFTWARE R: PACKAGE bvpsolve. Francesca Mazzia, Jeff R. Cash, and Karline Soetaert

SOLVING BOUNDARY VALUE PROBLEMS IN THE OPEN SOURCE SOFTWARE R: PACKAGE bvpsolve. Francesca Mazzia, Jeff R. Cash, and Karline Soetaert Opuscula Math. 34, no. 2 (2014), 387 403 http://dx.doi.org/10.7494/opmath.2014.34.2.387 Opuscula Mathematica Dedicated to the Memory of Professor Zdzis law Kamont SOLVING BOUNDARY VALUE PROBLEMS IN THE

More information

Fourth Order RK-Method

Fourth Order RK-Method Fourth Order RK-Method The most commonly used method is Runge-Kutta fourth order method. The fourth order RK-method is y i+1 = y i + 1 6 (k 1 + 2k 2 + 2k 3 + k 4 ), Ordinary Differential Equations (ODE)

More information

Package ForwardSearch

Package ForwardSearch Package ForwardSearch February 19, 2015 Type Package Title Forward Search using asymptotic theory Version 1.0 Date 2014-09-10 Author Bent Nielsen Maintainer Bent Nielsen

More information

Package ensemblepp. R topics documented: September 20, Title Ensemble Postprocessing Data Sets. Version

Package ensemblepp. R topics documented: September 20, Title Ensemble Postprocessing Data Sets. Version Title Ensemble Postprocessing Data Sets Version 0.1-0 Date 2017-08-29 Author Jakob Messner [aut, cre] Package ensemblepp September 20, 2017 Maintainer Jakob Messner Depends R (>=

More information

Package depth.plot. December 20, 2015

Package depth.plot. December 20, 2015 Package depth.plot December 20, 2015 Type Package Title Multivariate Analogy of Quantiles Version 0.1 Date 2015-12-19 Maintainer Could be used to obtain spatial depths, spatial ranks and outliers of multivariate

More information

Package noncompliance

Package noncompliance Type Package Package noncompliance February 15, 2016 Title Causal Inference in the Presence of Treatment Noncompliance Under the Binary Instrumental Variable Model Version 0.2.2 Date 2016-02-11 A finite-population

More information

Package detestset: testset for initial value problems of differential equations in R

Package detestset: testset for initial value problems of differential equations in R Package detestset: testset for initial value problems of differential equations in R Karline Soetaert Jeff Cash CEME Department of mathematics Netherlands Institute of Ecology Imperial College London The

More information

Package bpp. December 13, 2016

Package bpp. December 13, 2016 Type Package Package bpp December 13, 2016 Title Computations Around Bayesian Predictive Power Version 1.0.0 Date 2016-12-13 Author Kaspar Rufibach, Paul Jordan, Markus Abt Maintainer Kaspar Rufibach Depends

More information

Package rnmf. February 20, 2015

Package rnmf. February 20, 2015 Type Package Title Robust Nonnegative Matrix Factorization Package rnmf February 20, 2015 An implementation of robust nonnegative matrix factorization (rnmf). The rnmf algorithm decomposes a nonnegative

More information

Package gumbel. February 15, 2013

Package gumbel. February 15, 2013 Package gumbel February 15, 2013 Type Package Title Gumbel copula Version 1.04 Date 2012-07-31 Author Anne-Lise Caillat, Christophe Dutang, V eronique Larrieu and Triet Nguyen Maintainer Christophe Dutang

More information

Package CEC. R topics documented: August 29, Title Cross-Entropy Clustering Version Date

Package CEC. R topics documented: August 29, Title Cross-Entropy Clustering Version Date Title Cross-Entropy Clustering Version 0.9.4 Date 2016-04-23 Package CEC August 29, 2016 Author Konrad Kamieniecki [aut, cre], Przemyslaw Spurek [ctb] Maintainer Konrad Kamieniecki

More information

R Package ecolmod: figures and examples from Soetaert and Herman (2009)

R Package ecolmod: figures and examples from Soetaert and Herman (2009) R Package ecolmod: figures and examples from Soetaert and Herman (2009) Karline Soetaert Centre for Estuarine and Marine Ecology Netherlands Institute of Ecology The Netherlands Abstract This document

More information

Package thief. R topics documented: January 24, Version 0.3 Title Temporal Hierarchical Forecasting

Package thief. R topics documented: January 24, Version 0.3 Title Temporal Hierarchical Forecasting Version 0.3 Title Temporal Hierarchical Forecasting Package thief January 24, 2018 Methods and tools for generating forecasts at different temporal frequencies using a hierarchical time series approach.

More information

Package bivariate. December 10, 2018

Package bivariate. December 10, 2018 Title Bivariate Probability Distributions Version 0.3.0 Date 2018-12-10 License GPL (>= 2) Package bivariate December 10, 2018 Maintainer Abby Spurdle Author Abby Spurdle URL https://sites.google.com/site/asrpws

More information

Package LIStest. February 19, 2015

Package LIStest. February 19, 2015 Type Package Package LIStest February 19, 2015 Title Tests of independence based on the Longest Increasing Subsequence Version 2.1 Date 2014-03-12 Author J. E. Garcia and V. A. Gonzalez-Lopez Maintainer

More information

MTH 452/552 Homework 3

MTH 452/552 Homework 3 MTH 452/552 Homework 3 Do either 1 or 2. 1. (40 points) [Use of ode113 and ode45] This problem can be solved by a modifying the m-files odesample.m and odesampletest.m available from the author s webpage.

More information

Package clustergeneration

Package clustergeneration Version 1.3.4 Date 2015-02-18 Package clustergeneration February 19, 2015 Title Random Cluster Generation (with Specified Degree of Separation) Author Weiliang Qiu , Harry Joe

More information

Package gma. September 19, 2017

Package gma. September 19, 2017 Type Package Title Granger Mediation Analysis Version 1.0 Date 2018-08-23 Package gma September 19, 2017 Author Yi Zhao , Xi Luo Maintainer Yi Zhao

More information

Package SPADAR. April 30, 2017

Package SPADAR. April 30, 2017 Package SPADAR April 3, 217 Type Package Title Spherical Projections of Astronomical Data Version 1. Date 217-4-29 Author Alberto Krone-Martins Maintainer Alberto Krone-Martins Description

More information

Package msir. R topics documented: April 7, Type Package Version Date Title Model-Based Sliced Inverse Regression

Package msir. R topics documented: April 7, Type Package Version Date Title Model-Based Sliced Inverse Regression Type Package Version 1.3.1 Date 2016-04-07 Title Model-Based Sliced Inverse Regression Package April 7, 2016 An R package for dimension reduction based on finite Gaussian mixture modeling of inverse regression.

More information

Package CorrMixed. R topics documented: August 4, Type Package

Package CorrMixed. R topics documented: August 4, Type Package Type Package Package CorrMixed August 4, 2016 Title Estimate Correlations Between Repeatedly Measured Endpoints (E.g., Reliability) Based on Linear Mixed-Effects Models Version 0.1-13 Date 2015-03-08 Author

More information

Package hds. December 31, 2016

Package hds. December 31, 2016 Type Package Version 0.8.1 Title Hazard Discrimination Summary Package hds December 31, 2016 Functions for calculating the hazard discrimination summary and its standard errors, as described in Liang and

More information

Package elhmc. R topics documented: July 4, Type Package

Package elhmc. R topics documented: July 4, Type Package Package elhmc July 4, 2017 Type Package Title Sampling from a Empirical Likelihood Bayesian Posterior of Parameters Using Hamiltonian Monte Carlo Version 1.1.0 Date 2017-07-03 Author Dang Trung Kien ,

More information

Package face. January 19, 2018

Package face. January 19, 2018 Package face January 19, 2018 Title Fast Covariance Estimation for Sparse Functional Data Version 0.1-4 Author Luo Xiao [aut,cre], Cai Li [aut], William Checkley [aut], Ciprian Crainiceanu [aut] Maintainer

More information

Package timelines. August 29, 2016

Package timelines. August 29, 2016 Type Package Title Timeline and Time Duration-Related Tools Version 0.1.1 Date 2016-08-21 Author Dahee Lee [aut, cre], Dustin Tingley [aut] Maintainer Dahee Lee Package timelines August

More information

Package rgabriel. February 20, 2015

Package rgabriel. February 20, 2015 Type Package Package rgabriel February 20, 2015 Title Gabriel Multiple Comparison Test and Plot the Confidence Interval on Barplot Version 0.7 Date 2013-12-28 Author Yihui XIE, Miao YU Maintainer Miao

More information

Package sklarsomega. May 24, 2018

Package sklarsomega. May 24, 2018 Type Package Package sklarsomega May 24, 2018 Title Measuring Agreement Using Sklar's Omega Coefficient Version 1.0 Date 2018-05-22 Author John Hughes Maintainer John Hughes

More information

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes Jim Lambers MAT 772 Fall Semester 21-11 Lecture 21 Notes These notes correspond to Sections 12.6, 12.7 and 12.8 in the text. Multistep Methods All of the numerical methods that we have developed for solving

More information

Bindel, Fall 2011 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 18. HW 7 is posted, and will be due in class on 4/25.

Bindel, Fall 2011 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 18. HW 7 is posted, and will be due in class on 4/25. Logistics Week 12: Monday, Apr 18 HW 6 is due at 11:59 tonight. HW 7 is posted, and will be due in class on 4/25. The prelim is graded. An analysis and rubric are on CMS. Problem du jour For implicit methods

More information

Package esaddle. R topics documented: January 9, 2017

Package esaddle. R topics documented: January 9, 2017 Package esaddle January 9, 2017 Type Package Title Extended Empirical Saddlepoint Density Approximation Version 0.0.3 Date 2017-01-07 Author Matteo Fasiolo and Simon Wood Maintainer Matteo Fasiolo

More information

Applied Math for Engineers

Applied Math for Engineers Applied Math for Engineers Ming Zhong Lecture 15 March 28, 2018 Ming Zhong (JHU) AMS Spring 2018 1 / 28 Recap Table of Contents 1 Recap 2 Numerical ODEs: Single Step Methods 3 Multistep Methods 4 Method

More information

Package SimSCRPiecewise

Package SimSCRPiecewise Package SimSCRPiecewise July 27, 2016 Type Package Title 'Simulates Univariate and Semi-Competing Risks Data Given Covariates and Piecewise Exponential Baseline Hazards' Version 0.1.1 Author Andrew G Chapple

More information

Package MultisiteMediation

Package MultisiteMediation Version 0.0.1 Date 2017-02-25 Package MultisiteMediation February 26, 2017 Title Causal Mediation Analysis in Multisite Trials Author Xu Qin, Guanglei Hong Maintainer Xu Qin Depends

More information

Package survidinri. February 20, 2015

Package survidinri. February 20, 2015 Package survidinri February 20, 2015 Type Package Title IDI and NRI for comparing competing risk prediction models with censored survival data Version 1.1-1 Date 2013-4-8 Author Hajime Uno, Tianxi Cai

More information

Package separationplot

Package separationplot Package separationplot March 15, 2015 Type Package Title Separation Plots Version 1.1 Date 2015-03-15 Author Brian D. Greenhill, Michael D. Ward and Audrey Sacks Maintainer ORPHANED Suggests MASS, Hmisc,

More information

Package CPE. R topics documented: February 19, 2015

Package CPE. R topics documented: February 19, 2015 Package CPE February 19, 2015 Title Concordance Probability Estimates in Survival Analysis Version 1.4.4 Depends R (>= 2.10.0),survival,rms Author Qianxing Mo, Mithat Gonen and Glenn Heller Maintainer

More information

Package Blendstat. February 21, 2018

Package Blendstat. February 21, 2018 Package Blendstat February 21, 2018 Type Package Title Joint Analysis of Experiments with Mixtures and Random Effects Version 1.0.0 Date 2018-02-20 Author Marcelo Angelo Cirillo Paulo

More information

Package bayeslm. R topics documented: June 18, Type Package

Package bayeslm. R topics documented: June 18, Type Package Type Package Package bayeslm June 18, 2018 Title Efficient Sampling for Gaussian Linear Regression with Arbitrary Priors Version 0.8.0 Date 2018-6-17 Author P. Richard Hahn, Jingyu He, Hedibert Lopes Maintainer

More information

Package skellam. R topics documented: December 15, Version Date

Package skellam. R topics documented: December 15, Version Date Version 0.2.0 Date 2016-12-13 Package skellam December 15, 2016 Title Densities and Sampling for the Skellam Distribution Author Jerry W. Lewis, Patrick E. Brown , Michail Tsagris

More information

Package ltsbase. R topics documented: February 20, 2015

Package ltsbase. R topics documented: February 20, 2015 Package ltsbase February 20, 2015 Type Package Title Ridge and Liu Estimates based on LTS (Least Trimmed Squares) Method Version 1.0.1 Date 2013-08-02 Author Betul Kan Kilinc [aut, cre], Ozlem Alpu [aut,

More information

Package bmem. February 15, 2013

Package bmem. February 15, 2013 Package bmem February 15, 2013 Type Package Title Mediation analysis with missing data using bootstrap Version 1.3 Date 2011-01-04 Author Maintainer Zhiyong Zhang Depends R (>= 1.7),

More information

Package scpdsi. November 18, 2018

Package scpdsi. November 18, 2018 Type Package Package scpdsi November 18, 2018 Title Calculation of the Conventional and Self-Calibrating Palmer Drought Severity Index Version 0.1.3 Date 2018-11-18 Description Calculating the monthly

More information

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods COSC 336 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods Fall 2005 Repetition from the last lecture (I) Initial value problems: dy = f ( t, y) dt y ( a) = y 0 a t b Goal:

More information

Package invgamma. May 7, 2017

Package invgamma. May 7, 2017 Package invgamma May 7, 2017 Type Package Title The Inverse Gamma Distribution Version 1.1 URL https://github.com/dkahle/invgamma BugReports https://github.com/dkahle/invgamma/issues Description Light

More information

CS520: numerical ODEs (Ch.2)

CS520: numerical ODEs (Ch.2) .. CS520: numerical ODEs (Ch.2) Uri Ascher Department of Computer Science University of British Columbia ascher@cs.ubc.ca people.cs.ubc.ca/ ascher/520.html Uri Ascher (UBC) CPSC 520: ODEs (Ch. 2) Fall

More information

Package Select. May 11, 2018

Package Select. May 11, 2018 Package Select May 11, 2018 Title Determines Species Probabilities Based on Functional Traits Version 1.4 The objective of these functions is to derive a species assemblage that satisfies a functional

More information

Package NonpModelCheck

Package NonpModelCheck Type Package Package NonpModelCheck April 27, 2017 Title Model Checking and Variable Selection in Nonparametric Regression Version 3.0 Date 2017-04-27 Author Adriano Zanin Zambom Maintainer Adriano Zanin

More information

Package geoscale. R topics documented: May 14, 2015

Package geoscale. R topics documented: May 14, 2015 Package geoscale May 14, 2015 Type Package Title Geological Time Scale Plotting Version 2.0 Date 2015-05-12 Author Mark A. Bell . Maintainer Mark A. Bell

More information

Package chemcal. July 17, 2018

Package chemcal. July 17, 2018 Version 0.2.1 Date 2018-07-17 Package chemcal July 17, 2018 Title Calibration Functions for Analytical Chemistry Suggests MASS, knitr, testthat, investr Simple functions for plotting linear calibration

More information

Metric Predicted Variable on Two Groups

Metric Predicted Variable on Two Groups Metric Predicted Variable on Two Groups Tim Frasier Copyright Tim Frasier This work is licensed under the Creative Commons Attribution 4.0 International license. Click here for more information. Goals

More information

Package CoxRidge. February 27, 2015

Package CoxRidge. February 27, 2015 Type Package Title Cox Models with Dynamic Ridge Penalties Version 0.9.2 Date 2015-02-12 Package CoxRidge February 27, 2015 Author Aris Perperoglou Maintainer Aris Perperoglou

More information

Package desolve: Solving Initial Value Differential Equations in R

Package desolve: Solving Initial Value Differential Equations in R Package desolve: Solving Initial Value Differential Equations in R Karline Soetaert Royal Netherlands Institute of Sea Research (NIOZ) Yerseke, The Netherlands Thomas Petzoldt R. Woodrow Setzer Technische

More information

Package supernova. February 23, 2018

Package supernova. February 23, 2018 Type Package Package supernova February 23, 2018 Title Judd & McClelland Formatting for ANOVA Output Version 1.0 Date 2018-02-09 LazyData yes Produces ANOVA tables in the format used by Judd, McClelland,

More information

Package horseshoe. November 8, 2016

Package horseshoe. November 8, 2016 Title Implementation of the Horseshoe Prior Version 0.1.0 Package horseshoe November 8, 2016 Description Contains functions for applying the horseshoe prior to highdimensional linear regression, yielding

More information

Package idmtpreg. February 27, 2018

Package idmtpreg. February 27, 2018 Type Package Package idmtpreg February 27, 2018 Title Regression Model for Progressive Illness Death Data Version 1.1 Date 2018-02-23 Author Leyla Azarang and Manuel Oviedo de la Fuente Maintainer Leyla

More information

Package SK. May 16, 2018

Package SK. May 16, 2018 Type Package Package SK May 16, 2018 Title Segment-Based Ordinary Kriging and Segment-Based Regression Kriging for Spatial Prediction Date 2018-05-10 Version 1.1 Maintainer Yongze Song

More information

Package flexcwm. R topics documented: July 11, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.0.

Package flexcwm. R topics documented: July 11, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.0. Package flexcwm July 11, 2013 Type Package Title Flexible Cluster-Weighted Modeling Version 1.0 Date 2013-02-17 Author Incarbone G., Mazza A., Punzo A., Ingrassia S. Maintainer Angelo Mazza

More information

Package Tcomp. June 6, 2018

Package Tcomp. June 6, 2018 Package Tcomp June 6, 2018 Title Data from the 2010 Tourism Forecasting Competition Version 1.0.1 The 1311 time series from the tourism forecasting competition conducted in 2010 and described in Athanasopoulos

More information

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester HIGHER ORDER METHODS School of Mathematics Semester 1 2008 OUTLINE 1 REVIEW 2 HIGHER ORDER METHODS 3 MULTISTEP METHODS 4 SUMMARY OUTLINE 1 REVIEW 2 HIGHER ORDER METHODS 3 MULTISTEP METHODS 4 SUMMARY OUTLINE

More information

Package severity. February 20, 2015

Package severity. February 20, 2015 Type Package Title Mayo's Post-data Severity Evaluation Version 2.0 Date 2013-03-27 Author Nicole Mee-Hyaang Jinn Package severity February 20, 2015 Maintainer Nicole Mee-Hyaang Jinn

More information

Package interspread. September 7, Index 11. InterSpread Plus: summary information

Package interspread. September 7, Index 11. InterSpread Plus: summary information Package interspread September 7, 2012 Version 0.2-2 Date 2012-09-07 Title Functions for analysing InterSpread Plus simulation output Author Mark Stevenson A package for analysing

More information

Package EMVS. April 24, 2018

Package EMVS. April 24, 2018 Type Package Package EMVS April 24, 2018 Title The Expectation-Maximization Approach to Bayesian Variable Selection Version 1.0 Date 2018-04-23 Author Veronika Rockova [aut,cre], Gemma Moran [aut] Maintainer

More information

Part IB Numerical Analysis

Part IB Numerical Analysis Part IB Numerical Analysis Definitions Based on lectures by G. Moore Notes taken by Dexter Chua Lent 206 These notes are not endorsed by the lecturers, and I have modified them (often significantly) after

More information

Package gtheory. October 30, 2016

Package gtheory. October 30, 2016 Package gtheory October 30, 2016 Version 0.1.2 Date 2016-10-22 Title Apply Generalizability Theory with R Depends lme4 Estimates variance components, generalizability coefficients, universe scores, and

More information

Package SightabilityModel

Package SightabilityModel Type Package Title Wildlife Sightability Modeling Version 1.3 Date 2014-10-03 Author John Fieberg Package SightabilityModel Maintainer John Fieberg February 19, 2015 Uses logistic regression

More information

Package RSwissMaps. October 3, 2017

Package RSwissMaps. October 3, 2017 Title Plot and Save Customised Swiss Maps Version 0.1.0 Package RSwissMaps October 3, 2017 Allows to link data to Swiss administrative divisions (municipalities, districts, cantons) and to plot and save

More information

You may not use your books, notes; calculators are highly recommended.

You may not use your books, notes; calculators are highly recommended. Math 301 Winter 2013-14 Midterm 1 02/06/2014 Time Limit: 60 Minutes Name (Print): Instructor This exam contains 8 pages (including this cover page) and 6 problems. Check to see if any pages are missing.

More information

Package comparec. R topics documented: February 19, Type Package

Package comparec. R topics documented: February 19, Type Package Package comparec February 19, 2015 Type Package Title Compare Two Correlated C Indices with Right-censored Survival Outcome Version 1.3.1 Date 2014-12-18 Author Le Kang, Weijie Chen Maintainer Le Kang

More information

Package flexcwm. R topics documented: July 2, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.1.

Package flexcwm. R topics documented: July 2, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.1. Package flexcwm July 2, 2014 Type Package Title Flexible Cluster-Weighted Modeling Version 1.1 Date 2013-11-03 Author Mazza A., Punzo A., Ingrassia S. Maintainer Angelo Mazza Description

More information

Package fwsim. October 5, 2018

Package fwsim. October 5, 2018 Version 0.3.4 Title Fisher-Wright Population Simulation Package fwsim October 5, 2018 Author Mikkel Meyer Andersen and Poul Svante Eriksen Maintainer Mikkel Meyer Andersen Description

More information

Numerical Methods for Differential Equations

Numerical Methods for Differential Equations Numerical Methods for Differential Equations Chapter 2: Runge Kutta and Multistep Methods Gustaf Söderlind Numerical Analysis, Lund University Contents V4.16 1. Runge Kutta methods 2. Embedded RK methods

More information

Package RootsExtremaInflections

Package RootsExtremaInflections Type Package Package RootsExtremaInflections May 10, 2017 Title Finds Roots, Extrema and Inflection Points of a Curve Version 1.1 Date 2017-05-10 Author Demetris T. Christopoulos Maintainer Demetris T.

More information

Package EL. February 19, 2015

Package EL. February 19, 2015 Version 1.0 Date 2011-11-01 Title Two-sample Empirical Likelihood License GPL (>= 2) Package EL February 19, 2015 Description Empirical likelihood (EL) inference for two-sample problems. The following

More information

Package ssize. R topics documented: February 16, Title Estimate Microarray Sample Size Version Date

Package ssize. R topics documented: February 16, Title Estimate Microarray Sample Size Version Date Title Estimate Microarray Sample Size Version 1.53.0 Date 2012-06-07 Package ssize February 16, 2018 Author Gregory R. Warnes, Peng Liu, and Fasheng Li Description Functions for computing and displaying

More information

Package msbp. December 13, 2018

Package msbp. December 13, 2018 Type Package Package msbp December 13, 2018 Title Multiscale Bernstein Polynomials for Densities Version 1.4 Date 2018-12-13 Author Antonio Canale Maintainer Antonio Canale Performs

More information

Package RTransferEntropy

Package RTransferEntropy Type Package Package RTransferEntropy March 12, 2019 Title Measuring Information Flow Between Time Series with Shannon and Renyi Transfer Entropy Version 0.2.8 Measuring information flow between time series

More information

Package RI2by2. October 21, 2016

Package RI2by2. October 21, 2016 Package RI2by2 October 21, 2016 Type Package Title Randomization Inference for Treatment Effects on a Binary Outcome Version 1.3 Author Joseph Rigdon, Wen Wei Loh, Michael G. Hudgens Maintainer Wen Wei

More information

Package desolve: Solving Initial Value Differential Equations in R

Package desolve: Solving Initial Value Differential Equations in R Package desolve: Solving Initial Value Differential Equations in R Karline Soetaert Centre for Estuarine and Marine Ecology Netherlands Institute of Ecology The Netherlands Thomas Petzoldt R. Woodrow Setzer

More information

Package HIMA. November 8, 2017

Package HIMA. November 8, 2017 Type Package Title High-Dimensional Mediation Analysis Version 1.0.5 Date 2017-11-05 Package HIMA November 8, 2017 Description Allows to estimate and test high-dimensional mediation effects based on sure

More information

Package DiscreteLaplace

Package DiscreteLaplace Type Package Title Discrete Laplace Distributions Version 1.1.1 Date 2016-04-29 Package DiscreteLaplace May 1, 2016 Author Alessandro Barbiero , Riccardo Inchingolo

More information

Linear Multistep Methods I: Adams and BDF Methods

Linear Multistep Methods I: Adams and BDF Methods Linear Multistep Methods I: Adams and BDF Methods Varun Shankar January 1, 016 1 Introduction In our review of 5610 material, we have discussed polynomial interpolation and its application to generating

More information

Package scio. February 20, 2015

Package scio. February 20, 2015 Title Sparse Column-wise Inverse Operator Version 0.6.1 Author Xi (Rossi) LUO and Weidong Liu Package scio February 20, 2015 Maintainer Xi (Rossi) LUO Suggests clime, lorec, QUIC

More information

Use R! Series Editors Robert Gentleman Kurt Hornik Giovanni Parmigiani

Use R! Series Editors Robert Gentleman Kurt Hornik Giovanni Parmigiani Use R! Series Editors Robert Gentleman Kurt Hornik Giovanni Parmigiani For further volumes: http://www.springer.com/series/6991 Karline Soetaert Jeff Cash Francesca Mazzia Solving Differential Equations

More information

Package OGI. December 20, 2017

Package OGI. December 20, 2017 Type Package Title Objective General Index Version 1.0.0 Package OGI December 20, 2017 Description Consider a data matrix of n individuals with p variates. The objective general index (OGI) is a general

More information

Package ShrinkCovMat

Package ShrinkCovMat Type Package Package ShrinkCovMat Title Shrinkage Covariance Matrix Estimators Version 1.2.0 Author July 11, 2017 Maintainer Provides nonparametric Steinian shrinkage estimators

More information

Package lomb. February 20, 2015

Package lomb. February 20, 2015 Package lomb February 20, 2015 Type Package Title Lomb-Scargle Periodogram Version 1.0 Date 2013-10-16 Author Thomas Ruf, partially based on C original by Press et al. (Numerical Recipes) Maintainer Thomas

More information

Package BNN. February 2, 2018

Package BNN. February 2, 2018 Type Package Package BNN February 2, 2018 Title Bayesian Neural Network for High-Dimensional Nonlinear Variable Selection Version 1.0.2 Date 2018-02-02 Depends R (>= 3.0.2) Imports mvtnorm Perform Bayesian

More information

Package eel. September 1, 2015

Package eel. September 1, 2015 Type Package Title Etended Empirical Likelihood Version 1.1 Date 2015-08-30 Author Fan Wu and Yu Zhang Maintainer Yu Zhang Package eel September 1, 2015 Compute the etended empirical log

More information