Skip to content

Instantly share code, notes, and snippets.

View tnagler's full-sized avatar

Thomas Nagler tnagler

View GitHub Profile
@tnagler
tnagler / pfn-sim-study.R
Last active May 17, 2023 15:30
Simulation study for the paper "Statistical Foundations of Prior-Data Fitted Networks" (ICML 2023)
# required libraries
library("reticulate")
library("tidyverse")
library("RANN")
library("qrng")
library("readr")
library("ggthemes")
## Python setup -------------------------------------------

Problem statement from Alex Hayes

i have (x, y) pairs generated from two smooth curves, but i don't know which curve each point comes from

is there a way to recover the original curves?https://t.co/h9kL2JEeEV pic.twitter.com/tzy4O1VnrT

— alex hayes (@alexpghayes) June 28, 2022
library(tidyverse)

x <- seq(0, 10, length.out = 100)

unobserved <- tibble(
@tnagler
tnagler / RcppThread-benchmarks.Rmd
Last active November 23, 2018 00:45
RcppThread benchmarks
---
title: "RcppThread benchmarks"
output: html_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.width = 7,
@tnagler
tnagler / GAM-PCC-intraday-fx.md
Last active September 25, 2019 14:30
Appendix to "Generalized Additive Models for Pair-Copula Constructions": Code for the intraday FX application
title subtitle author date output
Appendix to "Generalized Additive Models for Pair-Copula Constructions"
Code for the intraday FX application
Thibault Vatter and Thomas Nagler
15 August, 2017
github_document
@tnagler
tnagler / GAM-PCC-sim-selectonce.md
Last active September 25, 2019 14:30
Appendix to "Generalized Additive Models for Pair-Copula Constructions": Additional simulations - selecting the GAM structure only for one family
title subtitle author date output
Appendix to "Generalized Additive Models for Pair-Copula Constructions"
Additional simulations: selecting the GAM structure only for one family
Thibault Vatter and Thomas Nagler
14 August, 2017
pdf_document

Preliminary definitions

@tnagler
tnagler / GAM-PCC-sim-BIC.md
Last active September 25, 2019 14:31
Appendix to "Generalized Additive Models for Pair-Copula Constructions": Additional simulations - using BIC for copula family selection
title subtitle author date output
Appendix to "Generalized Additive Models for Pair-Copula Constructions"
Additional simulations: using BIC for copula family selection
Thibault Vatter and Thomas Nagler
14 August, 201h7
github_document

Preliminary definitions

@tnagler
tnagler / GAM-PCC-sim.md
Last active September 25, 2019 14:32
Appendix to "Generalized Additive Models for Pair-Copula Constructions": Code for the simulation study
title subtitle author date output
Appendix to "Generalized Additive Models for Pair-Copula Constructions"
Code for the simulation study
Thibault Vatter and Thomas Nagler
14 August, 2017
github_document

Preliminary definitions

@tnagler
tnagler / JSS-sim.md
Last active September 25, 2019 14:33
Simulation study for kdecopula vignette

Simulation study for kdecopula vignette

Thomas Nagler 15 May, 2017

Required packages:

library("kdecopula")
library("VineCopula")
@tnagler
tnagler / jkde-sim.md
Last active September 25, 2019 14:34
Simulation study for "Asymptotic analysis of the jittering estimator"

Simulation study for "Asymptotic analysis of the continuous convolution estimator"

Thomas Nagler 15 May, 2017

Required packages:

library(cctools)
library(np)
@tnagler
tnagler / jdify-retinopathy-classification.md
Last active September 25, 2019 14:35
jdify: Rethinopathy classification

jdify: Retinopathy classification

Thomas Nagler 24 April, 2017

This vignette reproduces the results for the application section of the paper

Nagler, T. (2017). A generic approach to nonparametric function estimation with mixed data. arXiv:1704.07457