Re: [R] Defining Variables from a Matrix for 10-Fold Cross Validation

2018-10-10 Thread Zach Simpson
ope this helps, Zach Simpson On October 9, 2018 15:34:15 -0700, David Winsemius wrote: > Message: 26 > Date: Tue, 9 Oct 2018 15:34:15 -0700 > From: David Winsemius > To: matthew campbell > Cc: R-help@r-project.org > Subject: Re: [R] Defining Variables from a Matrix for 10-Fold C

Re: [R] Defining Variables from a Matrix for 10-Fold Cross Validation

2018-10-09 Thread David Winsemius
> On Oct 9, 2018, at 3:04 PM, matthew campbell wrote: > > Good afternoon, > > I am trying to run a 10-fold CV, using a matrix as my data set. > Essentially, I want "y" to be the first column of the matrix, and my "x" to > be all remaining columns (2-257). I've posted some of the code I used >

[R] Defining Variables from a Matrix for 10-Fold Cross Validation

2018-10-09 Thread matthew campbell
Good afternoon, I am trying to run a 10-fold CV, using a matrix as my data set. Essentially, I want "y" to be the first column of the matrix, and my "x" to be all remaining columns (2-257). I've posted some of the code I used below, and the data set (called "zip.train") is in the "ElemStatLearn" p