README.md

Kernel Estimation for a Superpopulation Probability Density Function under Informative Selection

BonneryBreidtCoquetMetronKDE is an R package that contains the source code to reproduce the graphs and simulations of the article "Kernel Estimation for a Superpopulation Probability Density Function under Informative Selection", by Daniel Bonnéry (UMD), F. Jay Breidt (CSU) and François Coquet (Irmar and Ensai), article under revision in Metron Journal.

1. Install the package

You will need to have Rtools installed, as well as the devtools package.

devtools::install_github("DanielBonnery/BonneryBreidtCoquetMetronKDE",dependencies=TRUE)

Note that this package depends on different R packages, including: pubBonneryBreidtCoquet2016 is an R package that contains generic functions to simulate populations and draw samples. yihui/tikzDevice is an R package that allows to create tikz code from a graph.

Some functions of BonneryBreidtCoquetMetronKDE produce pdf graphics and need pdflatex to be installed.

2. Produce the paper graphs and tables.

library(BonneryBreidtCoquetMetronKDE)
demo(MSE_Figure)

plot of chunk r2

3. Run additional simulations

We ran simulations on different models. For each model, we produce a series of graphics and tables.

The following R statements will run the simulations for all the models.

library(BonneryBreidtCoquetMetronKDE)
demo(model1,package = "BonneryBreidtCoquetMetronKDE")
demo(model2,package = "BonneryBreidtCoquetMetronKDE")
demo(model3,package = "BonneryBreidtCoquetMetronKDE")
demo(model4,package = "BonneryBreidtCoquetMetronKDE")
demo(model5,package = "BonneryBreidtCoquetMetronKDE")

Model 1

Model 2

Model 3

Model 4

Model 5

2.2.3 Ouptputs: Tables

Model 1

Model 2

Model 3

Model 4

Model 5



DanielBonnery/pubBonneryBreidtCoquet2017 documentation built on May 6, 2019, 1:35 p.m.