search for: plottyp

Displaying 2 results from an estimated 2 matches for "plottyp".

Did you mean: plottype
2011 Jun 06
1
Lasso for k-subset regression
...sso in lars package for subset regression, I have a large matrix of size 1000x100 and my aim is to select a subset k of the 100 variables. Is there any way in lars to fix the number k (i.e. to select the best 10 variables) library(lars) aa=lars(X,Y,type="lasso",max.steps=200) plot(aa,plottype="Cp") aa$RSS which.min(aa$RSS) round(aa$beta,2) aa$beta[which.min(aa$RSS),] # find which coefficients minimizes the RSS lasso.ind=which((as.vector((aa$beta[which.min(aa$RSS),])))>0) # index of variables print(lasso.ind) # this usually gives more than 10 variables (also dep...
2000 Sep 07
3
plot with two y axes
I'm trying to make a transition from S-plus under Windows to R under Linux. My immediate aim is to produce a scatter plot with two y-axes with different scales. That can be done in S-plus with a command of the following form: guiPlot( PlotType="Scatter", DataSet="execon", Columns="years,hstart,ship", AxisType="Multiple Y" ), where years, hstart, and ship are columns in the dataset called execon. Is there an equivalent command in R? I'd be most grateful for any suggestions. --- John P. Burk...