Title: | Penalized Orthogonal-Components Regression |
---|---|
Description: | Penalized orthogonal-components regression (POCRE) is a supervised dimension reduction method for high-dimensional data. It sequentially constructs orthogonal components (with selected features) which are maximally correlated to the response residuals. POCRE can also construct common components for multiple responses and thus build up latent-variable models. |
Authors: | Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Yu-ting Chen |
Maintainer: | Dabao Zhang <[email protected]> |
License: | GPL-2 |
Version: | 0.6.0 |
Built: | 2024-10-31 20:53:32 UTC |
Source: | CRAN |
Choose the optimal tuning parameter via k-fold cross-validation for POCRE.
cvpocre(y, x, n.folds=10, delta=0.1, maxvar=dim(x)[1]/2, ptype=c('ebtz','ebt','l1','scad','mcp'), maxit=100, maxcmp=10, gamma=3.7, lambda.init=1, tol=1e-6, crit=c('press','Pearson','Spearman','Kendall'))
cvpocre(y, x, n.folds=10, delta=0.1, maxvar=dim(x)[1]/2, ptype=c('ebtz','ebt','l1','scad','mcp'), maxit=100, maxcmp=10, gamma=3.7, lambda.init=1, tol=1e-6, crit=c('press','Pearson','Spearman','Kendall'))
y |
n*q matrix, values of q response variables (allow for multiple response variables). |
x |
n*p matrix, values of p predicting variables (excluding the intercept). |
n.folds |
number of folds to split the data (10-fold CV by default). |
delta |
step size of different values of the tuning parameter. |
maxvar |
maximum number of selected variables. |
ptype |
a character to indicate the type of penalty: |
maxit |
maximum number of iterations to be allowed. |
maxcmp |
maximum number of components to be constructed. |
gamma |
a parameter used by SCAD and MCP (=3.7 by default). |
lambda.init |
initial value of the tuning parameter (=1 by default). |
tol |
tolerance of precision in iterations. |
crit |
a character to indicate the validation criterion: |
Use k-folds cross-validation to find the optinal value for the tuning parameter. The validation criterion can be chosen from PRESS, or different types of correlation coefficients, such as Pearson's, Spearman's, or Kendall's.
The optimal value of the tuning parameter.
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Fan J and Li R (2001). Variable selection via nonconcave penalized likelihood and its oracle properties. Journal of the American Statistical Association, 96:1348-1360
Johnstone IM and Silverman BW (2004). Needles and straw in haystacks: empirical Bayes estimates of possibly sparse sequences. Annals of Statistics, 32: 1594-1649.
Zhang C-H (2010). Nearly unbiased variable selection under minimax concave penalty. The Annals of Statistics, 38: 894-942.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
pocrescreen
, pocrepath
, pocre
.
## Not run: data(simdata) n <- dim(simdata)[1] xx <- simdata[,-1] yy <- simdata[,1] # tp <- cvpocre(yy,xx,delta=0.01) tp <- cvpocre(yy,xx) print(paste(" pocre: Optimal Tuning Parameter = ", tp)) cvpres <- pocre(yy,xx,lambda=tp,maxvar=n/log(n)) ## End(Not run)
## Not run: data(simdata) n <- dim(simdata)[1] xx <- simdata[,-1] yy <- simdata[,1] # tp <- cvpocre(yy,xx,delta=0.01) tp <- cvpocre(yy,xx) print(paste(" pocre: Optimal Tuning Parameter = ", tp)) cvpres <- pocre(yy,xx,lambda=tp,maxvar=n/log(n)) ## End(Not run)
A pre-specified number (i.e., maxvar) of covariates will be selected for generalized linear models by constructing maxcmp components with generalized POCRE. Each component will be constructed by selecting maxvar/macmp covariates which are most relevant to the response variable(s). Similar to pocrescreen, gps selects covariates for their top relevance to the response variable(s) without penalization.
gps(y, x, family="binomial", bc.method="optimal", x.include=NULL, weights=NULL, maxcmp=10, maxvar=NULL, tol = 1e-6, maxit = 100)
gps(y, x, family="binomial", bc.method="optimal", x.include=NULL, weights=NULL, maxcmp=10, maxvar=NULL, tol = 1e-6, maxit = 100)
y |
n*q matrix, values of q response variables (allow for multiple response variables). |
x |
n*p matrix, values of p predicting variables (excluding the intercept). |
family |
Family objects as |
bc.method |
Bias correction method. |
x.include |
a vector of indices indicating covariates which should always be included in the model (so not counted into selected maxvar covariates). |
weights |
A vector, including a prespecified weight for each observation (set as 1/n by default). |
maxcmp |
maximum number of components to be constructed. |
maxvar |
maximum number of selected variables. |
tol |
tolerance of precision in iterations. |
maxit |
maximum number of iterations to be allowed. |
a vector of indices of selected covariates (excluding those in x.include).
Dabao Zhang, Zhongli Jiang, Yu-ting Chen, Department of Statistics, Purdue University
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
# Binomial Data data(simbin) gps(simbin[,1], simbin[,-1], maxcmp=3, maxvar=9) gps(simbin[,1], simbin[,-1], x.include=103:104, maxcmp=3, maxvar=9) # Count Data data(simpoi) gps(simpoi[,1], simpoi[,-1], family='poisson',maxcmp=5,maxvar=10)
# Binomial Data data(simbin) gps(simbin[,1], simbin[,-1], maxcmp=3, maxvar=9) gps(simbin[,1], simbin[,-1], x.include=103:104, maxcmp=3, maxvar=9) # Count Data data(simpoi) gps(simpoi[,1], simpoi[,-1], family='poisson',maxcmp=5,maxvar=10)
pocre
Object
Plot the regression coefficients, and the loadings of all components for a fitted model by POCRE.
## S3 method for class 'pocre' plot(x, x.id = NA, which=1:2, cex=.5, ...)
## S3 method for class 'pocre' plot(x, x.id = NA, which=1:2, cex=.5, ...)
x |
|
x.id |
a vector indicating the indices or positions of the covariates in the original data. |
which |
1 for plotting the regression coefficients, 2 for plotting the loadings of all components. |
cex |
A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default, see par. |
... |
additional arguments accepted by ggplot. |
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Zhang D (2018). R package POCRE: Exploring high-dimensional data via supervised dimension reduction. Manuscript.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
pocre
, plot.pocrepath
, pocrepath
.
data(simdata) xx <- scale(as.matrix(simdata[,-1])) yy <- scale(as.matrix(simdata[,1])) ##Fit with pocre() pres <- pocre(yy, xx, lambda=0.9) # plot(pres,which=1) plot(pres)
data(simdata) xx <- scale(as.matrix(simdata[,-1])) yy <- scale(as.matrix(simdata[,1])) ##Fit with pocre() pres <- pocre(yy, xx, lambda=0.9) # plot(pres,which=1) plot(pres)
For a series models built by POCRE for different tuning paramter values, it provides three types of plots to help select an appropriate tuning parameter value.
## S3 method for class 'pocrepath' plot(x, which=1:3, cex=.5, lwd=1, ...)
## S3 method for class 'pocrepath' plot(x, which=1:3, cex=.5, lwd=1, ...)
x |
|
which |
1 for plotting the tuning parameter vs. (beta, #[beta!=0]), 2 for plotting the tuning parameter vs. (beta, R^2), 3 for plotting the tuning parameter vs. (R^2, #[beta!=0]). |
cex |
A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default, see par. |
lwd |
line width, see par. |
... |
additional arguments accepted by ggplot. |
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Zhang D (2018). R package POCRE: Exploring high-dimensional data via supervised dimension reduction. Manuscript.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
data(simdata) xx <- scale(as.matrix(simdata[,-1])) yy <- scale(as.matrix(simdata[,1])) # ppres <- pocrepath(yy, xx, delta=0.01) ppres <- pocrepath(yy, xx) # plot(ppres) plot(ppres,which=3)
data(simdata) xx <- scale(as.matrix(simdata[,-1])) yy <- scale(as.matrix(simdata[,1])) # ppres <- pocrepath(yy, xx, delta=0.01) ppres <- pocrepath(yy, xx) # plot(ppres) plot(ppres,which=3)
Apply POCRE with a pre-specified tuning parameter to build a linear regression model with orthogonal components ,
where and
. These orthogonal components are sequentially constructed according to supervised dimension reduction under penalty set by the pre-specified tuning parameter.
While the orthogonal components are constructed using the centralized covariates, the intercept and regression coefficients in
are estimated for original covariates. The sequential construction stops when no new component can be constructed (returning bSparse=1), or the new component is constructed with more than maxvar covariates (returning bSparse=0).
pocre(y, x, lambda=1, x.nop=NA, maxvar=dim(x)[1]/2, maxcmp=10, ptype=c('ebtz','ebt','l1','scad','mcp'), maxit=100, tol=1e-6, gamma=3.7, pval=FALSE)
pocre(y, x, lambda=1, x.nop=NA, maxvar=dim(x)[1]/2, maxcmp=10, ptype=c('ebtz','ebt','l1','scad','mcp'), maxit=100, tol=1e-6, gamma=3.7, pval=FALSE)
y |
n*q matrix, values of q response variables (allow for multiple response variables). |
x |
n*p matrix, values of p predicting variables (excluding the intercept). |
lambda |
the tuning parameter (=1 by default). |
x.nop |
a vector indicating indices of covariates which are excluded only when evaluating the significance of components. |
maxvar |
maximum number of selected variables. |
maxcmp |
maximum number of components to be constructed. |
ptype |
a character to indicate the type of penalty: |
maxit |
maximum number of iterations to be allowed. |
tol |
tolerance of precision in iterations. |
gamma |
a parameter used by SCAD and MCP (=3.7 by default). |
pval |
a logical value indicating whether to calculate the p-values of components. |
mu |
estimated intercept of the linear regression. |
beta |
estimated coefficients of the linear regression. |
varpi |
loadings of the constructed components. |
vartheta |
the regression coefficients of the constructed components. |
bSparse |
a logical value indicating whether estimated beta has less than maxvar nonzero values. |
lambda |
value of the tuning paramete. |
nCmp |
number of constructed components. |
n |
sample size. |
p |
number of covariates. |
xShift |
the column means of x. |
yShift |
the column means of y. |
sigmae2 |
estimated error variance |
rsq |
|
nzBeta |
number of non-zero regression coefficients in |
omega |
internal matrix. |
theta |
internal matrix. |
pvalue |
p-values of constructed components, available when |
seqpv |
Type I p-values of components when sequentially including them into the model, available when |
indpv |
p-values of components when marginally testing each component, available when pval=TRUE. |
loglik |
the loglikelihood function, available when |
effp |
the effective number of predictors, excluding redundant ones, available when pval=TRUE. |
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Fan J and Li R (2001). Variable selection via nonconcave penalized likelihood and its oracle properties. Journal of the American Statistical Association, 96:1348-1360
Johnstone IM and Silverman BW (2004). Needles and straw in haystacks: empirical Bayes estimates of possibly sparse sequences. Annals of Statistics, 32: 1594-1649.
Zhang C-H (2010). Nearly unbiased variable selection under minimax concave penalty. The Annals of Statistics, 38: 894-942.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
plot.pocre
, pocrescreen
, pocrepath
, cvpocre
.
data(simdata) xx <- simdata[,-1] yy <- simdata[,1] #pres <- pocre(yy,xx,lambda=0.9) pres <- pocre(yy,xx) # lambda=1 by default
data(simdata) xx <- simdata[,-1] yy <- simdata[,1] #pres <- pocre(yy,xx,lambda=0.9) pres <- pocre(yy,xx) # lambda=1 by default
Applying POCRE for a series of tuning parameters chosen by a pre-specified step size. The tuning parameter will increase until non-component can be constructed, and then decrease until a non-sparse regression is constructed (i.e., the number of non-zero coefficients in is more than maxvar).
pocrepath(y, x, delta=0.1, maxvar=dim(x)[1]/2, x.nop=NA, maxcmp=10, ptype=c('ebtz','ebt','l1','scad','mcp'), lambda.init=1, maxit=100, tol=1e-6, maxtps=500, gamma=3.7, pval=(dim(y)[2]==1))
pocrepath(y, x, delta=0.1, maxvar=dim(x)[1]/2, x.nop=NA, maxcmp=10, ptype=c('ebtz','ebt','l1','scad','mcp'), lambda.init=1, maxit=100, tol=1e-6, maxtps=500, gamma=3.7, pval=(dim(y)[2]==1))
y |
n*q matrix, values of q response variables (allow for multiple response variables). |
x |
n*p matrix, values of p predicting variables (excluding the intercept). |
delta |
step size to increase or decrase from current tuning parameter. |
maxvar |
maximum number of selected variables. |
x.nop |
a vector indicating indices of covariates which are excluded only when evaluating the significance of components. |
maxcmp |
maximum number of components to be constructed. |
ptype |
a character to indicate the type of penalty: |
lambda.init |
initial value of the tuning parameter (=1 by default). |
maxit |
maximum number of iterations to be allowed. |
tol |
tolerance of precision in iterations. |
maxtps |
maximum number of different values that the tuning parameter is allowed. |
gamma |
a parameter used by SCAD and MCP (=3.7 by default). |
pval |
a logical value indicating whether to calculate the p-values of components (not implemented for q>1, i.e., multiple response variables). |
A list of results from pocre, each for a specific value of the tuning parameter.
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Fan J and Li R (2001). Variable selection via nonconcave penalized likelihood and its oracle properties. Journal of the American Statistical Association, 96:1348-1360
Johnstone IM and Silverman BW (2004). Needles and straw in haystacks: empirical Bayes estimates of possibly sparse sequences. Annals of Statistics, 32: 1594-1649.
Zhang C-H (2010). Nearly unbiased variable selection under minimax concave penalty. The Annals of Statistics, 38: 894-942.
Zhang D (2018). R package POCRE: Exploring high-dimensional data via supervised dimension reduction. Manuscript.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
plot.pocrepath
, selectmodel
, pocre
.
data(simdata) xx <- simdata[,-1] yy <- simdata[,1] ppres <- pocrepath(yy,xx)
data(simdata) xx <- simdata[,-1] yy <- simdata[,1] ppres <- pocrepath(yy,xx)
Screen for a pre-specified number (i.e., maxvar) of covariates by constructing maxcmp components with POCRE. Each component will be constructed by selecting maxvar/macmp covariates which are most relevant to the response variable(s). Here POCRE selects covariates for their top relevance to the response variable(s) without penalization.
pocrescreen(y, x, maxvar=nrow(x), maxcmp=5, x.include=NULL, tol=1e-6, maxit=100)
pocrescreen(y, x, maxvar=nrow(x), maxcmp=5, x.include=NULL, tol=1e-6, maxit=100)
y |
n*q matrix, values of q response variables (allow for multiple response variables). |
x |
n*p matrix, values of p predicting variables (excluding the intercept). |
maxvar |
maximum number of selected variables. |
maxcmp |
maximum number of components to be constructed. |
x.include |
a vector of indices indicating covariates which should always be included in the model (so not counted into selected maxvar covariates). |
tol |
tolerance of precision in iterations. |
maxit |
maximum number of iterations to be allowed. |
a vector of indices of selected covariates (excluding those in x.include).
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Zhang D (2018). R package POCRE: Exploring high-dimensional data via supervised dimension reduction. Manuscript.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
data(simdata) xx <- simdata[,-1] yy <- simdata[,1] # Screen for 50 covariates sidx <- pocrescreen(yy,xx,maxvar=50) # Screen for 50 additional covariates besides the first 10 xinc <- 1:10 sidx <- pocrescreen(yy,xx,maxvar=50,x.include=xinc) sidx <- c(xinc,sidx)
data(simdata) xx <- simdata[,-1] yy <- simdata[,1] # Screen for 50 covariates sidx <- pocrescreen(yy,xx,maxvar=50) # Screen for 50 additional covariates besides the first 10 xinc <- 1:10 sidx <- pocrescreen(yy,xx,maxvar=50,x.include=xinc) sidx <- c(xinc,sidx)
Select the optimal model from those fitted by POCRE, on the basis of prespecified criterion, such as EBIC, BIC, AIC, and AICc.
selectmodel(ppobj, msc=NULL)
selectmodel(ppobj, msc=NULL)
ppobj |
output from pocrepath. |
msc |
a value indicating the information criterion: 0 for BIC, (0,1] for EBIC (by default), 2 for AIC, 3 for AICc. |
output of pocre for the optimal model.
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Chen J and Chen Z (2008) Extended Bayesian information criteria for model selection with large model spaces. Biometrika, 95: 759-771.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
data(simdata) xx <- scale(as.matrix(simdata[,-1])) yy <- scale(as.matrix(simdata[,1])) # ppres <- pocrepath(yy,xx,delta=0.01) ppres <- pocrepath(yy,xx) fres <- selectmodel(ppres)
data(simdata) xx <- scale(as.matrix(simdata[,-1])) yy <- scale(as.matrix(simdata[,1])) # ppres <- pocrepath(yy,xx,delta=0.01) ppres <- pocrepath(yy,xx) fres <- selectmodel(ppres)
A simulated data set with 100 observations, each with five response variable and 1,000 covariates.
data("sim5ydata")
data("sim5ydata")
A data frame with 100 observations on 1005 variables with the first five columns for the response variables, and the rest for the covariates.
The 1,000 covariates are from 10 blocks of independent variables, with each block consisting 100 autoregressively correlated variables. There are a total of 12 covariates affecting the response variables: .
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
pocrescreen
, pocrepath
, pocre
, cvpocre
.
data(sim5ydata)
data(sim5ydata)
A simulated data set with 100 observations, each with one binary response variable and 1,000 covariates.
data("simbin")
data("simbin")
A data frame with 100 observations on 1001 variables with the first column for the response variable, and the rest for the covariates.
The true covariates are 1, 2, 103, 104, 205, and 206.
Dabao Zhang, Zhongli Jiang, Yu-ting Chen, Department of Statistics, Purdue University
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
data(simbin)
data(simbin)
A simulated data set with 100 observations, each with one response variable and 1,000 covariates.
data("simdata")
data("simdata")
A data frame with 100 observations on 1001 variables with the first column for the response variable, and the rest for the covariates.
The 1,000 covariates are from 10 blocks of independent variables, with each block consisting 100 autoregressively correlated variables. There are a total of 20 covariates affecting the response variables: ,
.
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
pocrescreen
, pocrepath
, pocre
.
data(simdata)
data(simdata)
A simulated data set with 100 observations, each with one count response variable and 1,000 covariates.
data("simpoi")
data("simpoi")
A data frame with 100 observations on 1001 variables with the first column for the response variable, and the rest for the covariates.
The 1,000 covariates are from 10 blocks of independent variables, with each block consisting 100 autoregressively correlated variables. There are a total of 20 covariates affecting the response variables: ,
.
Dabao Zhang, Yu-ting Chen, Department of Statistics, Purdue University
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
data(simpoi)
data(simpoi)
Applying POCRE to select variables and evaluate the significance of selected variables using the multiple splitting method by Meinshausen et al. (2009). The tuning parameter may be selected based on either an information criterion or k-fold cross-validation. The tuning parameter can also be fixed at a prespecified value.
sipocre(y, x, n.splits=10, delta=0.1, crit=c('ic','cv','fixed'), ptype=c('ebtz','ebt','l1','scad','mcp'), maxvar=dim(x)[1]/2, msc=NA, maxit=100, maxcmp=50, gamma=3.7, tol=1e-6, n.folds=10, lambda=1, n.train=round(nrow(x)/2))
sipocre(y, x, n.splits=10, delta=0.1, crit=c('ic','cv','fixed'), ptype=c('ebtz','ebt','l1','scad','mcp'), maxvar=dim(x)[1]/2, msc=NA, maxit=100, maxcmp=50, gamma=3.7, tol=1e-6, n.folds=10, lambda=1, n.train=round(nrow(x)/2))
y |
n*q matrix, values of q response variables (allow for multiple response variables). |
x |
n*p matrix, values of p predicting variables (excluding the intercept). |
n.splits |
number of random splits (=10 by default). |
delta |
step size to increase or decrase from current tuning parameter. |
crit |
character indicating the criterion to choose the tuning parameter: |
ptype |
a character to indicate the type of penalty: |
maxvar |
maximum number of selected variables. |
msc |
value(s) to indicate the penalty related to the information criterion: 0~1 for (E)BIC, 2 for AIC, 3 for AICc, used when |
maxit |
maximum number of iterations to be allowed. |
maxcmp |
maximum number of components to be constructed. |
gamma |
a parameter used by SCAD and MCP (=3.7 by default). |
tol |
tolerance of precision in iterations. |
n.folds |
number of folds in k-folds cross-validation, used when |
lambda |
pre-sepcified value for the tuning parameter, used when |
n.train |
sample size of the training data set. |
a list consisting of the following components,
cpv |
component-based p-values which are calculated by testing the constructed components, either a matrix (when |
xpv |
traditional p-values, either a matrix (when |
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Fan J and Li R (2001). Variable selection via nonconcave penalized likelihood and its oracle properties. Journal of the American Statistical Association, 96:1348-1360
Johnstone IM and Silverman BW (2004). Needles and straw in haystacks: empirical Bayes estimates of possibly sparse sequences. Annals of Statistics, 32: 1594-1649.
Meinshausen N, Meier L, and Buhlmann P (2009) p-Values for High-Dimensional Regression. Journal of the American Statistical Association, 104: 1671-1681.
Zhang C-H (2010). Nearly unbiased variable selection under minimax concave penalty. The Annals of Statistics, 38: 894-942.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
## Not run: data(simdata) xx <- simdata[,-1] yy <- simdata[,1] sipres <- sipocre(yy,xx) ## End(Not run)
## Not run: data(simdata) xx <- simdata[,-1] yy <- simdata[,1] sipres <- sipocre(yy,xx) ## End(Not run)