10.07.2015 Views

The np Package - NexTag Supports Open Source Initiatives

The np Package - NexTag Supports Open Source Initiatives

The np Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>np</strong>cmstest 11<strong>np</strong>cmstestKernel Consistent Model Specification Test with Mixed DataDescription<strong>np</strong>cmstest implements a consistent test for correct specification of parametric regression models(linear or nonlinear) as described in Hsiao, Li, and Racine (forthcoming).Usage<strong>np</strong>cmstest(formula,data = NULL,subset,xdat,ydat,model = stop(paste(sQuote("model")," has not been provided")),distribution = c("bootstrap", "asymptotic"),boot.method=c("iid","wild","wild-rademacher"),boot.num = 399,pivot = TRUE,density.weighted = TRUE,random.seed = 42,...)Argumentsformuladatasubsetmodelxdatydata symbolic description of variables on which the test is to be performed. <strong>The</strong>details of constructing a formula are described below.an optional data frame, list or environment (or object coercible to a data frameby as.data.frame) containing the variables in the model. If not found indata, the variables are taken from environment(formula), typically theenvironment from which the function is called.an optional vector specifying a subset of observations to be used.a model object obtained from a call to lm (or glm). Important: the call to eitherglm or lm must have the arguments x=TRUE and y=TRUE or <strong>np</strong>cmstestwill not work.a p-variate data frame of explanatory data (training data) used to calculate theregression estimators.a one (1) dimensional numeric or integer vector of dependent data, each elementi corresponding to each observation (row) i of xdat.distribution a character string used to specify the method of estimating the distribution of thestatistic to be calculated. bootstrap will conduct bootstrapping. asymptoticwill use the normal distribution. Defaults to bootstrap.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!