Network


Latest external collaboration on country level. Dive into details by clicking on the dots.

Hotspot


Dive into the research topics where Kasper Kristensen is active.

Publication


Featured researches published by Kasper Kristensen.


Journal of Statistical Software | 2016

TMB: Automatic differentiation and laplace approximation

Kasper Kristensen; Anders Henry Nielsen; Casper Willestofte Berg; Hans J. Skaug; Brad Bell

TMB is an open source R package that enables quick implementation of complex nonlinear random effect (latent variable) models in a manner similar to the established AD Model Builder package (ADMB, admb-project.org). In addition, it offers easy access to parallel computations. The user defines the joint likelihood for the data and the random effects as a C++ template function, while all the other operations are done in R; e.g., reading in the data. The package evaluates and maximizes the Laplace approximation of the marginal likelihood where the random effects are automatically integrated out. This approximation, and its derivatives, are obtained using automatic differentiation (up to order three) of the joint likelihood. The computations are designed to be fast for problems with many random effects (~10^6) and parameters (~10^3). Computation times using ADMB and TMB are compared on a suite of examples ranging from simple models to large spatial models where the random effects are a Gaussian random field. Speedups ranging from 1.5 to about 100 are obtained with increasing gains for large problems. The package and examples are available at this http URL


Methods in Ecology and Evolution | 2015

Spatial factor analysis: a new tool for estimating joint species distributions and correlations in species range

James T. Thorson; Mark D. Scheuerell; Andrew O. Shelton; Kevin See; Hans J. Skaug; Kasper Kristensen

Summary Predicting and explaining the distribution and density of species is one of the oldest concerns in ecology. Species distributions can be estimated using geostatistical methods, which estimate a latent spatial variable explaining observed variation in densities, but geostatistical methods may be imprecise for species with low densities or few observations. Additionally, simple geostatistical methods fail to account for correlations in distribution among species and generally estimate such cross-correlations as a post hoc exercise. We therefore present spatial factor analysis (SFA), a spatial model for estimating a low-rank approximation to multivariate data, and use it to jointly estimate the distribution of multiple species simultaneously. We also derive an analytic estimate of cross-correlations among species from SFA parameters. As a first example, we show that distributions for 10 bird species in the breeding bird survey in 2012 can be parsimoniously represented using only five spatial factors. As a second case study, we show that forward prediction of catches for 20 rockfishes (Sebastes spp.) off the U.S. West Coast is more accurate using SFA than analysing each species individually. Finally, we show that single-species models give a different picture of cross-correlations than joint estimation using SFA. Spatial factor analysis complements a growing list of tools for jointly modelling the distribution of multiple species and provides a parsimonious summary of cross-correlation without requiring explicit declaration of habitat variables. We conclude by proposing future research that would model species cross-correlations using dissimilarity of species’ traits, and the development of spatial dynamic factor analysis for a low-rank approximation to spatial time-series data.


Ecology | 2015

The importance of spatial models for estimating the strength of density dependence

James T. Thorson; Hans J. Skaug; Kasper Kristensen; Andrew O. Shelton; Eric J. Ward; John H. Harms; James A. Benante

Identifying the existence and magnitude of density dependence is one of the oldest concerns in ecology. Ecologists have aimed to estimate density dependence in population and community data by fitting a simple autoregressive (Gompertz) model for density dependence to time series of abundance for an entire population. However, it is increasingly recognized that spatial heterogeneity in population densities has implications for population and community dynamics. We therefore adapt the Gompertz model to approximate, local densities over continuous space instead of population-wide abundance, and allow productivity to vary spatially using Gaussian random fields. We then show that the conventional (nonspatial) Gompertz model can result in biased estimates of density dependence (e.g., identifying oscillatory dynamics when not present) if densities vary spatially. By contrast, the spatial Gompertz model provides accurate and precise estimates of density dependence for a variety of simulation scenarios and data availabilities. These results are corroborated when comparing spatial and nonspatial models for data from 10 years and -100 sampling stations for three long-lived rockfishes (Sebastes spp.) off the California, USA coast. In this case, the nonspatial model estimates implausible oscillatory dynamics on an annual time scale, while the spatial model estimates strong autocorrelation and is supported by model selection tools. We conclude by discussing the importance of improved data archiving techniques, so that spatial models can be used to reexamine classic questions regarding the existence and magnitude of density. dependence in wild populations.


PLOS ONE | 2012

Long-term retrospective analysis of mackerel spawning in the North Sea: a new time series and modeling approach to CPR data

Teunis Jansen; Kasper Kristensen; Mark Payne; Martin Edwards; Corinna Schrum; Sophie G. Pitois

We present a unique view of mackerel (Scomber scombrus) in the North Sea based on a new time series of larvae caught by the Continuous Plankton Recorder (CPR) survey from 1948-2005, covering the period both before and after the collapse of the North Sea stock. Hydrographic backtrack modelling suggested that the effect of advection is very limited between spawning and larvae capture in the CPR survey. Using a statistical technique not previously applied to CPR data, we then generated a larval index that accounts for both catchability as well as spatial and temporal autocorrelation. The resulting time series documents the significant decrease of spawning from before 1970 to recent depleted levels. Spatial distributions of the larvae, and thus the spawning area, showed a shift from early to recent decades, suggesting that the central North Sea is no longer as important as the areas further west and south. These results provide a consistent and unique perspective on the dynamics of mackerel in this region and can potentially resolve many of the unresolved questions about this stock.


PLOS ONE | 2014

A Statistical Model for Estimation of Fish Density Including Correlation in Size, Space, Time and between Species from Research Survey Data

J. Rasmus Nielsen; Kasper Kristensen; Peter Lewy; Francois Bastardie

Trawl survey data with high spatial and seasonal coverage were analysed using a variant of the Log Gaussian Cox Process (LGCP) statistical model to estimate unbiased relative fish densities. The model estimates correlations between observations according to time, space, and fish size and includes zero observations and over-dispersion. The model utilises the fact the correlation between numbers of fish caught increases when the distance in space and time between the fish decreases, and the correlation between size groups in a haul increases when the difference in size decreases. Here the model is extended in two ways. Instead of assuming a natural scale size correlation, the model is further developed to allow for a transformed length scale. Furthermore, in the present application, the spatial- and size-dependent correlation between species was included. For cod (Gadus morhua) and whiting (Merlangius merlangus), a common structured size correlation was fitted, and a separable structure between the time and space-size correlation was found for each species, whereas more complex structures were required to describe the correlation between species (and space-size). The within-species time correlation is strong, whereas the correlations between the species are weaker over time but strong within the year.


PLOS ONE | 2015

Adsorption of cationic peptides to solid surfaces of glass and plastic.

Kasper Kristensen; Jonas Rosager Henriksen; Thomas Lars Andresen

Cationic membrane-active peptides have been studied for years in the hope of developing them into novel types of therapeutics. In this article, we investigate an effect that might have significant experimental implications for investigators who wish to study these peptides, namely, that the peptides adsorb to solid surfaces of glass and plastic. Specifically, we use analytical HPLC to systematically quantify the adsorption of the three cationic membrane-active peptides mastoparan X, melittin, and magainin 2 to the walls of commonly used glass and plastic sample containers. Our results show that, at typical experimental peptide concentrations, 90% or more of the peptides might be lost from solution due to rapid adsorption to the walls of the sample containers. Thus, our results emphasize that investigators should always keep these adsorption effects in mind when designing and interpreting experiments on cationic membrane-active peptides. We conclude the article by discussing different strategies for reducing the experimental impact of these adsorption effects.


bioRxiv | 2017

Modeling Zero-Inflated Count Data With glmmTMB

Mollie E. Brooks; Kasper Kristensen; Koen J. van Benthem; Arni Magnusson; Casper Willestofte Berg; Anders Paarup Nielsen; Hans J. Skaug; Martin Maechler; Benjamin M. Bolker

Ecological phenomena are often measured in the form of count data. These data can be analyzed using generalized linear mixed models (GLMMs) when observations are correlated in ways that require random effects. However, count data are often zero-inflated, containing more zeros than would be expected from the standard error distributions used in GLMMs, e.g., parasite counts may be exactly zero for hosts with effective immune defenses but vary according to a negative binomial distribution for non-resistant hosts. We present a new R package, glmmTMB, that increases the range of models that can easily be fitted to count data using maximum likelihood estimation. The interface was developed to be familiar to users of the lme4 R package, a common tool for fitting GLMMs. To maximize speed and flexibility, estimation is done using Template Model Builder (TMB), utilizing automatic differentiation to estimate model gradients and the Laplace approximation for handling random effects. We demonstrate glmmTMB and compare it to other available methods using two ecological case studies. In general, glmmTMB is more flexible than other packages available for estimating zero-inflated models via maximum likelihood estimation and is faster than packages that use Markov chain Monte Carlo sampling for estimation; it is also more flexible for zero-inflated modelling than INLA, but speed comparisons vary with model and data structure. Our package can be used to fit GLMs and GLMMs with or without zero-inflation as well as hurdle models. By allowing ecologists to quickly estimate a wide variety of models using a single package, glmmTMB makes it easier to find appropriate models and test hypotheses to describe ecological processes.


PLOS ONE | 2013

Localisation of nursery areas based on comparative analyses of the horizontal and vertical distribution patterns of juvenile Baltic cod (Gadus morhua).

J. Rasmus Nielsen; Bo Lundgren; Kasper Kristensen; Francois Bastardie

Knowledge of the spatial distribution of juvenile cod is essential for obtaining precise recruitment data to conduct sustainable management of the eastern and western Baltic cod stocks. In this study, the horizontal and vertical distribution and density patterns of settled juvenile 0- and 1-group Baltic cod are determined, and their nursery areas are localised according to the environmental factors affecting them. Comparative statistical analyses of biological, hydrographic and hydroacoustic data are carried out based on standard ICES demersal trawl surveys and special integrated trawl and acoustic research surveys. Horizontal distribution maps for the 2001–2010 cohorts of juvenile cod are further generated by applying a statistical log-Gaussian Cox process model to the standard trawl survey data. The analyses indicate size-dependent horizontal and distinct vertical and diurnal distribution patterns related to the seabed topography, water layer depth, and the presence of hydrographic frontal zones (pycnoclines) as well as intraspecific patterns in relation to the presence of adult cod. The extent of the nursery areas also depends on the cod year class strength. Juvenile cod (≥3 cm) are present in all areas of the central Baltic Sea (CBS), showing broad dispersal. However, their highest density in the Baltic Basins is found at localities with a 40–70 m bottom depth in waters with oxygen concentrations above 2 ml O2.l−1 and temperatures above 5°C. The smallest juveniles are also found in deep sea localities down to a 100 m depth and at oxygen concentrations between 2–4 ml O2.l−1. The vertical, diurnally stratified and repeated trawling and hydroacoustic target strength-depth distributions obtained from the special surveys show juvenile cod concentrations in frontal zone water layers (pycnocline). However, the analyses indicate that in the CBS, juvenile cod of all sizes do not appear to aggregate in dense schooling patterns, which differs from what has been reported from the North Sea.


Environmental and Ecological Statistics | 2017

Validation of ecological state space models using the Laplace approximation

Uffe Høgsbro Thygesen; Casper Willestofte Berg; Kasper Kristensen; Anders Paarup Nielsen

Many statistical models in ecology follow the state space paradigm. For such models, the important step of model validation rarely receives as much attention as estimation or hypothesis testing, perhaps due to lack of available algorithms and software. Model validation is often based on a naive adaptation of Pearson residuals, i.e. the difference between observations and posterior means, even if this approach is flawed. Here, we consider validation of state space models through one-step prediction errors, and discuss principles and practicalities arising when the model has been fitted with a tool for estimation in general mixed effects models. Implementing one-step predictions in the R package Template Model Builder, we demonstrate that it is possible to perform model validation with little effort, even if the ecological model is multivariate, has non-linear dynamics, and whether observations are continuous or discrete. With both simulated data, and a real data set related to geolocation of seals, we demonstrate both the potential and the limitations of the techniques. Our results fill a need for convenient methods for validating a state space model, or alternatively, rejecting it while indicating useful directions in which the model could be improved.


Langmuir | 2015

Single-vesicle detection and analysis of peptide-induced membrane permeabilization

Kasper Kristensen; Nicky Ehrlich; Jonas Rosager Henriksen; Thomas Lars Andresen

The capability of membrane-active peptides to disrupt phospholipid membranes is often studied by investigating peptide-induced leakage of quenched fluorescent molecules from large unilamellar lipid vesicles. In this article, we explore two fluorescence microscopy-based single-vesicle detection methods as alternatives to the quenching-based assays for studying peptide-induced leakage from large unilamellar lipid vesicles. Specifically, we use fluorescence correlation spectroscopy (FCS) to study the leakage of fluorescent molecules of different sizes from large unilamellar lipid vesicles dispersed in aqueous solution, and we use confocal imaging of surface-immobilized large unilamellar lipid vesicles to investigate whether there are heterogeneities in leakage between individual vesicles. Of importance, we design an experimental protocol that allows us to quantitatively correlate the results of the two methods; accordingly, it can be assumed that the two methods provide complementary information about the same leakage process. We use the two methods to investigate the membrane-permeabilizing activities of three well-studied cationic membrane-active peptides: mastoparan X, melittin, and magainin 2. The FCS results show that leakage induced by magainin 2 is less dependent on the size of the encapsulated fluorescent molecules than leakage induced by mastoparan X and melittin. The confocal imaging results show that all three peptides induce leakage by a heterogeneous process in which one portion of the vesicles are completely emptied of their contents but another portion of the vesicles are only partially emptied. These pieces of information regarding leakage induced by mastoparan X, melittin, and magainin 2 could not readily have been obtained by the established assays for studying peptide-induced leakage from lipid vesicles.

Collaboration


Dive into the Kasper Kristensen's collaboration.

Top Co-Authors

Avatar

Thomas Lars Andresen

Technical University of Denmark

View shared research outputs
Top Co-Authors

Avatar

Casper Willestofte Berg

Technical University of Denmark

View shared research outputs
Top Co-Authors

Avatar

Jonas Rosager Henriksen

Technical University of Denmark

View shared research outputs
Top Co-Authors

Avatar
Top Co-Authors

Avatar

Anders Paarup Nielsen

Technical University of Denmark

View shared research outputs
Top Co-Authors

Avatar

Jan E. Beyer

Technical University of Denmark

View shared research outputs
Top Co-Authors

Avatar

Teunis Jansen

Technical University of Denmark

View shared research outputs
Top Co-Authors

Avatar

Uffe Høgsbro Thygesen

Technical University of Denmark

View shared research outputs
Top Co-Authors

Avatar

James T. Thorson

National Marine Fisheries Service

View shared research outputs
Top Co-Authors

Avatar

Anders Henry Nielsen

Technical University of Denmark

View shared research outputs
Researchain Logo
Decentralizing Knowledge