Re: [R] Not getting any result from 'gbm'?

2013-10-05 Thread Mary Kindall
Sorry David, The formula that I use here is fmla = as.formula(Y ~ x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8) Thanks On Sat, Oct 5, 2013 at 2:02 AM, David Winsemius dwinsem...@comcast.netwrote: On Oct 3, 2013, at 3:07 PM, Mary Kindall wrote: In the reproducible example given below, why I

Re: [R] Why 'gbm' is not giving me error when I change the response from numeric to categorical?

2013-10-05 Thread Mary Kindall
, 2013 at 3:50 PM, Marc Schwartz marc_schwa...@me.com wrote: On Oct 4, 2013, at 2:35 PM, peter dalgaard pda...@gmail.com wrote: On Oct 4, 2013, at 21:16 , Mary Kindall wrote: Y[Y mean(Y)] = 0 #My edit Y[Y = mean(Y)] = 1 #My edit I have no clue about gbm, but I don't think

[R] Why 'gbm' is not giving me error when I change the response from numeric to categorical?

2013-10-04 Thread Mary Kindall
in the predictors? Thanks -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] How to create an ROC with three possible classes?

2013-10-02 Thread Mary Kindall
but it is no longer valid for three classes. yhat - pred[,2] y = test[, -1] plot.roc(y, yhat) Any help will be appreciated. Thanks -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r

[R] Which regression tree algorithm to use for large data?

2013-09-13 Thread Mary Kindall
? Or it is impossible to apply rpart on my data. I am using the following rpart command: varimp = rpart(fmla, dat=tmpData, method = class)$variable.importance Thanks -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted

[R] pvalue calculate

2012-07-22 Thread Mary Kindall
I have a value a=300 observation (x) = sample(1:50) How to find a p-value from this. I need to show that a is different fom mean(x). Thanks -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R

[R] which function/method to find agreement between two

2012-01-24 Thread Mary Kindall
Hi I have data in the following format: itemsperson1 person2 - - -- car honda,toyotahonda bikesuzuki suzuki pant Lee Levis, Lee shirt Van_housen Hollister house rented

Re: [R] ggplot- using geom_point and geom_line at the same time

2012-01-17 Thread Mary Kindall
, 2012 at 6:05 PM, Mary Kindall mary.kind...@gmail.com wrote: Thanks for reply I wanted to have legend name with spaces. Right now I am using the following code but it produce two legends. I have to use Gimp to cut the redundant legend. Your basic problem is that you're using the fill

[R] ggplot- using geom_point and geom_line at the same time

2012-01-16 Thread Mary Kindall
Hi I am plotting line chart using ggplot and want to use geom_line and geom_point simultaneously. I get the plot but now I have two legends. None of the legend is representing the true values. I need the legend with shape and color both. Thanks con = textConnection(inputs var1var2

[R] ggplot- using geom_point and geom_line at the same time

2012-01-16 Thread Mary Kindall
+ scale_x_continuous(name='Number of inputs') g - g + scale_y_continuous('Conversion time (sec.)') g -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

Re: [R] ggplot- using geom_point and geom_line at the same time

2012-01-16 Thread Mary Kindall
of the Interior US Fish Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx *From:* Mary Kindall mary.kind...@gmail.com *To:* r-help@r-project.org *Sent:* Monday, January 16, 2012 1:14 PM *Subject:* [R] ggplot- using geom_point and geom_line at the same time Hi I am

[R] relative frequency plot using ggplot or other function

2012-01-12 Thread Mary Kindall
0.0022677303 0.02948625 3 300 0.0061182673 0.01739936 4 400 0.0152237225 0.02569902 5 500 0.0300215262 0.03639880 6 600 0.0597610250 0.07717765 Thanks -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted

Re: [R] relative frequency plot using ggplot or other function

2012-01-12 Thread Mary Kindall
/55078149a733dd1a0b42a57faf847036.png http://had.co.nz/ggplot2/graphics/90983232ced45a93d9fbbe40afffd69a.png Thanks On Thu, Jan 12, 2012 at 12:13 PM, Justin Haynes jto...@gmail.com wrote: On Thu 12 Jan 2012 09:02:27 AM PST, Mary Kindall wrote: Hi I have a data frame in the following form. There are two groups

[R] mode of frequency distribution table

2012-01-08 Thread Mary Kindall
. Thanks. -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] mode of frequency distribution table

2012-01-08 Thread Mary Kindall
#extract any range from sorted table t[order(as.numeric(t),decreasing = TRUE)][1:3] x 5 6 4 8 5 4 I hope this helps. Andrija On Sun, Jan 8, 2012 at 1:48 PM, Mary Kindall mary.kind...@gmail.com wrote: In a frequency distribution table (bell shaped), how can we find the most

[R] cbind alternate

2012-01-06 Thread Mary Kindall
:100,5] z = cbind(x,y) //hanging the machine write.table(z,'out.txt) -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] (Edited) cbind alternate for data frames

2012-01-06 Thread Mary Kindall
] z = cbind(x,y) //hanging the machine write.table(z,'out.txt) -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] aggregate function

2011-12-21 Thread Mary Kindall
be param case1 1 a 2 b,c,d 3 e 4 f Thanks M -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] aggregate function

2011-12-21 Thread Mary Kindall
at 11:26 AM, Mary Kindall mary.kind...@gmail.com wrote: Hi I have a data frame with values in following format. param case1 1 a 2 b 2 c 2 d 3 e 4 f how to use aggregate so that it I only one row

[R] read.table : fill missing entry with unAvailable

2011-11-16 Thread Mary Kindall
, fill_missing_entry = 'unAvailable') thanks -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] read.table : fill missing entry with unAvailable [edit]

2011-11-16 Thread Mary Kindall
, fill_missing_entry = 'unAvailable') 1 thanks -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] read.table : fill missing entry with unAvailable [edit]

2011-11-16 Thread Mary Kindall
(DataFile, header=FALSE, fill_missing_entry = 'unAvailable') Or remove the the complete row in which the missing entry appear. thanks -- - Mary Kindall Yorktown Heights, NY USA -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted

[R] list.dir() function

2011-11-11 Thread Mary Kindall
for this problem? Thanks -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] download.file

2011-11-08 Thread Mary Kindall
) != 0) { file.remove(destFile) } } thanks -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] download files using ftp: avoid error

2011-09-16 Thread Mary Kindall
, 'inDir', files2down[i], sep='/' ) download.file(url, destfile, quiet = FALSE) } It works fine as long as the file is present. When the file is not present, it exit from loop. Is there a way to continue looping if error occurs. Thanks -- - Mary Kindall Yorktown Heights, NY USA

Re: [R] download files using ftp: avoid error

2011-09-16 Thread Mary Kindall
2011 15:07:15 Mary Kindall wrote: I am planning to download a large number of files from some website. I am using the following script. files2down = c('aaa', 'bbb', ) for (i in 1: len) { print(paste('downloading file', i, ' of total ', len)); url = paste

[R] installing packages systemwide

2011-08-19 Thread Mary Kindall
R R install.packages(anRpackage, dep=TRUE) I did not succeed into getting them install in req folder. Any idea? -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] save and load in R

2011-06-19 Thread Mary Kindall
can I do that. Regards - M -- - Mary Kindall Yorktown Heights, NY USA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] save and load in R

2011-06-19 Thread Mary Kindall
, Mary Kindall wrote: I have a list of txt files that I want to convert into .rdata R data object. filenames 1. ./file1.txt 2. ./file2.txt 3. ./file3.txt 4. ./file4.txt 5. ./file5.txt 6. ./file6.txt 7. ./file7.txt 8. ./file8.txt 9. ./file9.txt 10. ./file10.txt I saved these files

[R] [Resolved] combine the data frames into comma separated list.

2011-06-14 Thread Mary Kindall
) Reduce(merge.all, lapply(L, function(x) aggregate(x[2], x[1], toString))) Cheers !!! - M On Tue, Jun 14, 2011 at 11:27 AM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Tue, Jun 14, 2011 at 11:21 AM, Mary Kindall mary.kind...@gmail.com wrote: I resolved it. There was a problem in type

[R] combine the data frames into comma separated list.

2011-06-13 Thread Mary Kindall
- 5 - -zz 6 - - tt,uu Basically I am trying to make a consolidated table. Help appreciated. Thanks M - Mary Kindall Yorktown Heights USA [[alternative HTML version

[R] combine the data frames into comma separated list.

2011-06-13 Thread Mary Kindall
- 5 - -zz 6 - - tt,uu Basically I am trying to make a consolidated table. Help appreciated. Thanks M - Mary Kindall Yorktown Heights USA [[alternative HTML version

Re: [R] combine the data frames into comma separated list.

2011-06-13 Thread Mary Kindall
NA 11 4NANA Thanks -- M On Mon, Jun 13, 2011 at 6:35 PM, Dr. D. P. Kreil (Boku) david.kr...@boku.ac.at wrote: Hi, try ?merge Best, David. On 13 June 2011 23:48, Mary Kindall mary.kind...@gmail.com wrote: Hi R users, I am new to R and am trying to merge

Re: [R] combine the data frames into comma separated list.

2011-06-13 Thread Mary Kindall
:14 PM, Dr. D. P. Kreil (Boku) david.kr...@boku.ac.at wrote: ?write.csv Cheers, David. On 14 June 2011 01:07, Mary Kindall mary.kind...@gmail.com wrote: Thanks for reply. The following code is working but only patially. How to get the condensed values separated by comma. dataframe1

Re: [R] combine the data frames into comma separated list.

2011-06-13 Thread Mary Kindall
Superb Gabor, Though I dont know what is happening, but yes it is workin and without fail. Thanks - M On Mon, Jun 13, 2011 at 8:20 PM, Gabor Grothendieck ggrothendi...@gmail.com wrote: On Mon, Jun 13, 2011 at 5:17 PM, Mary Kindall mary.kind...@gmail.com wrote: Hi R users, I am new to R