[R] FW: lasso regression

2011-07-12 Thread Heiman, Thomas J.
Hi, I am trying to do a lasso regression using the lars package with the following data (see attached): FastestTime WinPercentage PlacePercentage ShowPercentage BreakAverage FinishAverage Time7Average Time3Average Finish 116.90 0.14 0.14 0.29 4.43 3.29 117.56 117.77 5.00 116.23

[R] FW: lasso regression

2011-07-12 Thread Heiman, Thomas J.
Hi, Hopefully I got the formatting down.. I am trying to do a lasso regression using the lars package with the following data (the data files is in .csv format): V1 V2 V3 V4 V5 V6 V7

[R] FW: lasso regression

2011-07-12 Thread Heiman, Thomas J.
Hi, I am trying to do a lasso regression using the lars package with the following data: FastestTime WinPercentage PlacePercentage ShowPercentage BreakAverage FinishAverage Time7Average Time3Average Finish 116.90 0.14 0.14 0.29 4.43 3.29 117.56 117.77 5.00 116.23 0.29 0.43 0

[R] FW: lasso regression

2011-07-12 Thread Heiman, Thomas J.
Hi, I am trying to do a lasso regression using the lars package with the following data (see attached): FastestTime WinPercentage PlacePercentage ShowPercentage BreakAverage FinishAverage Time7Average Time3Average Finish 116.90 0.14 0.14 0.29 4.43 3.29 117.56 117.77 5.00 116.23

[R] FW: getting time series into r

2011-05-23 Thread Heiman, Thomas J.
Hi, I tried to attach these files before as .csv and they did not go through.. This time they are .txt files.. I am trying to get the attached following two timeseries (these are small subsets of the whole thing) into R so I can merge them using zoo. tmp <- read.table("baltimore.csv", sep = "

Re: [R] getting time series into r

2011-05-23 Thread Heiman, Thomas J.
[mailto:dwinsem...@comcast.net] Sent: Monday, May 23, 2011 3:49 PM To: Heiman, Thomas J. Cc: R-help@r-project.org Subject: Re: [R] getting time series into r On May 23, 2011, at 2:32 PM, Heiman, Thomas J. wrote: > > Hi, > > I am trying to get the attached following two timeseries Nothing a

[R] getting time series into r

2011-05-23 Thread Heiman, Thomas J.
Hi, I am trying to get the attached following two timeseries (these are small subsets of the whole thing) into R so I can merge them using zoo. tmp <- read.table("baltimore.csv", sep = ",") ##This is timeseries 2 z <- zoo(tmp[, 2:20], as.Date(as.character(tmp[, 1]), format = "%y %m %d")) tmp1

[R] getting time series into r

2011-05-23 Thread Heiman, Thomas J.
Hi, I am trying to get the following two timeseries (these are small subsets of the whole thing) into R so I can merge them using zoo. Timeseries 1=[

[R] filtering out unwanted words in a Term Document Matrix

2011-05-11 Thread Heiman, Thomas J.
Hi Y'all, I am using the text mining package (tm). I am trying to filter out all of the words in a Term Document Matrix that are not in a list of words that I am interested in. I am using the following code: z<-tm_intersect(txt.dtm, c("communications", "safety", "climate", "blood", "surface",

[R] FW: recoding problem

2010-07-23 Thread Heiman, Thomas J.
Hi, I am trying to recode the output from a matrix(here is a small snippet of it): HGlt10RawPerc2008[1:20] [1] -5 0 -1 -1 0 2 3 -5 -2 0 2 0 1 -2 3 0 4 1 4 2 H

[R] recoding problem

2010-07-23 Thread Heiman, Thomas J.
Hi, I am trying to recode the output from a matrix(here is a small snippet of it): HGlt10RawPerc2008[1:20] [1] -5 0 -1 -1 0 2 3 -5 -2 0 2 0 1 -2 3 0 4 1 4 2 Her

[R] If help

2010-07-20 Thread Heiman, Thomas J.
Hi Y'all, I have some data in a table with 2 columns. There are two values: "Reduction" and "No Reduction. " I am trying to make a new variable change which recode the combinations from column 1 and 2 into a single number. Here is a snippet from the table: [1,] "NoReduction" "No

[R] Error in storage.mode(test) <- "logical"

2010-07-12 Thread Heiman, Thomas J.
Hi There, I get the following error from the code pasted below: Error in storage.mode(test) <- "logical" : object 'HGBmt12_Natl_Ave_or_Facility' not found library(RODBC) library(car) setwd("c://temp//cms") a07.connect <- odbcConnectAccess2007("DFC.accdb") sqlTables(a07.connect) ##provides list