Git Product home page Git Product logo

siqr's Introduction

siqr

Single-index quantile regression models are important tools in semiparametric regression to provide a comprehensive view of the conditional distributions of a response variable. This methods is especially useful when the data is heterogeneous or heavy tailed.

We provides functions that allow users to fit Single-Index Quantile Regression model via an efficient iterative local linear approach. It also provides functions to do prediction, estimate standard errors of the single-index coefficients via bootstrap, and visualize the estimated univariate function. Please see W., Y., Y. (2010) at here for details.

siqr's People

Contributors

zzz1990771 avatar

Watchers

 avatar  avatar  avatar

siqr's Issues

Question regarding weights calculation

During step 2, the kernel weights are calculated as follows.

ynew <- as.vector(sapply(y,function(x){x-a}))
for (i in 1:n){
  for (j in 1:n){
    xnew[(i-1)*n+j,]<-b[j]*(X[i,]-X[j,]);
  }
}
xgh<-rep(0,n^2); 
for(jj in 1:d){
  xgh<-xgh+xnew[,jj]*beta.old[jj]/h; 
}
wts<-stats::dnorm(xgh);

but I think the correct way should be

xdiff <- matrix(0,nrow=n^2,ncol=d)
for (i in 1:n){
  for (j in 1:n){
    xdiff[(i-1)*n+j,]<- (X[i,]-X[j,]);
  }
}
xgh<-rep(0,n^2); 
for(jj in 1:d){
  xgh<-xgh+xdiff[,jj]*beta.old[jj]/h; 
}

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.