Giter Site home page Giter Site logo

iclm's Introduction

iclm : inequality constrained linear model

Installation of the package from github

devtools::install_github("vrunge/iclm")

Data generation

We chose parameters: columns X1 and X2

nbSimu <- 10^5
n <- 10
sigma <- 3
X1 <- runif(n, min=0, max = 1)
X2 <- runif(n, min=0, max = 5)

Proba estimation

#X1 <- X1 - mean(X1)
#X2 <- X2 - mean(X2)

p <- probaEstimation(X1, X2, sigma, n, nbSimu = nbSimu)

Comparison simulation VS estimator

step <- 0.001
h <- densitybeta1(X1, X2, sigma, p, h = step, max = 10)
b1 <- beta1estimator0(X1, X2, sigma, n, nbSimu = nbSimu)

Plots and tests

his <- hist(b1$beta1[b1$beta1>0], breaks = 50, probability = TRUE)
par(new=TRUE)
plot(h$x,h$y/sum(step*h$y), type = 'l', xlim = c(0,max(his$breaks)), ylim = c(0, his$density[1]))


#verif density = 1
his$density%*%diff(his$breaks)
sum(step*h$y) + h$d0

#comparaison dirac en 0
sum(b1$beta1 == 0)/nbSimu
p[2] + p[3]

iclm's People

Contributors

vrunge avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.