search for: elemstatlearn

Displaying 20 results from an estimated 22 matches for "elemstatlearn".

2011 Aug 24
1
silently testing for data from another package for .Rd examples
In an .Rd example for a package, I want to use data from another package, but avoid loading the entire package and avoid errors/warnings if that other package is not available. If I don't care about loading the other package, I can just do: if (require("ElemStatLearn", quietly=TRUE)) { data(prostate) # rest of example } I'd rather just be able to do something like: if (data(prostate, package="ElemStatLearn")) { # rest of example } but it appears that data() doesn't return anything useful (like FALSE or NULL) in case the na...
2010 Mar 09
4
Scripts from The Elements of Statistical Learning book
Anyone know if it is possible to get the R scripts used in the "The Elements of Statistical Learning" book? It is a great book but sometimes some help would be useful to replicate the results presented in the book and so, understood things better. Thanks Manuel -- View this message in context:
2012 Mar 21
2
glmnet: obtain predictions using predict and also by extracting coefficients
...d also by multiplying coefficients by the variable matrix. This is not worked out. Could anyone suggest where I am going wrong? I understand that I may not have the mean/intercept correct, but the scaling is also off, which suggests a bigger mistake. Thanks for your help. Juliet Hannah library(ElemStatLearn) library(glmnet) data(prostate) # training data data.train <- prostate[prostate$train,] y <- data.train$lpsa # isolate predictors data.train <- as.matrix(data.train[,-c(9,10)]) # test data data.test <- prostate[!prostate$train,] data.test <- as.matrix(data.test[,-c(9,10)]) # sc...
2004 Apr 06
4
missing values for mda package
Dear helpers, I am trying to use the mda package downloaded from the R website, but the data set has missing values so I got an error message. Should I manually handle these missing values? I was trying to read the documents to specify any option related to missing values, but I did not find it. Please forgive me if I ignore something obvious. Thanks, Zhu Wang Statistical Science Department
2008 Feb 17
1
An R SPAM Filter
Hi, I'm just wondering does anyone know of a good site that would assist me in creating a spam filter through R? It is for a college project. I have searched the net but cannot find anything of relevance. Any help would be greatly appreciated.... Regards, -- View this message in context: http://www.nabble.com/An-R-SPAM-Filter-tp15530304p15530304.html Sent from the R devel mailing list
2010 Dec 26
1
Question about mars() -function
...u please tell me some information about why the MARS model R^2 is so big? How can I get the MARS model?s correct R^2 in R-projector some another way than in the following example or by calculating it myself using R^2-formula? I hope you can reply soon. Best regards, Tiina Hakanen library(ElemStatLearn) library(mda) data<-ozone m<-mars(data[,-1], data[,1], nk=4) m$factor[m$s,] m$cuts[m$s,] m$coef marsmodel<-lm(data[,1]~m$x-1) summary(marsmodel) Call: lm(formula = data[, 1] ~ m$x - 1) Residuals: Min 1Q Median 3Q Max -36.264 -15.993 -2.351 9.993 122.793 Coefficien...
2004 Jan 07
0
Statistical Learning and Datamining course based on R/Splus tools
...e of the hottest new areas in biology! ################################################### Much of the material is based on the book: Elements of Statistical Learning: data mining, inference and prediction Hastie, Tibshirani & Friedman, Springer-Verlag, 2001 http://www-stat.stanford.edu/ElemStatLearn/ A copy of this book will be given to all attendees. ################################################### For more information, and to register, visit the course homepage: http://www-stat.stanford.edu/~hastie/mrc.html --------------------------------------------------------------------...
2004 Jul 12
0
Statistical Learning and Data Mining Course
...e of the hottest new areas in biology! ################################################### Much of the material is based on the book: Elements of Statistical Learning: data mining, inference and prediction Hastie, Tibshirani & Friedman, Springer-Verlag, 2001 http://www-stat.stanford.edu/ElemStatLearn/ A copy of this book will be given to all attendees. ################################################### For more information, and to register, visit the course homepage: http://www-stat.stanford.edu/~hastie/mrc.html --------------------------------------------------------------------...
2005 Jan 04
0
Statistical Learning and Data Mining Course
...- one of the hottest new areas in biology! ################################################### Much of the material is based on the book: Elements of Statistical Learning: data mining, inference and prediction Hastie, Tibshirani & Friedman, Springer-Verlag, 2001 http://www-stat.stanford.edu/ElemStatLearn/ A copy of this book will be given to all attendees. ################################################### For more information, and to register, visit the course homepage: http://www-stat.stanford.edu/~hastie/mrc.html -------------------------------------------------------------------   Trevo...
2005 Jan 20
0
Re: suggestion on data mining book using R
...may 2004 http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Ripley.pdf looking for a book I suggest: Trevor Hastie , Robert Tibshirani, Jerome Friedman, The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2001, Springer-Verlag. http://www-stat.stanford.edu/~tibs/ElemStatLearn/ B.D. Ripley, Pattern Recognition and Neural Networks http://www.stats.ox.ac.uk/~ripley/PRbook/ Hoping I helped you. Best Vito you wrote: Hi, there: I think I need a book on data mining book using R. I knew Modern Applied Statistics with S-plus (2nd Ed) or Modern Applied Statistics with S (4th...
2009 Oct 14
1
Understanding hclust and dendrogram
?hclust listed several references. I'm wondering what is the best resource that explained clustering algorithms, dendrogram and various clustering algorithms that are implemented in R. Thank you!
2010 Apr 26
1
boosting with decision tree
Hi, Dear R community, Does anyone know how to constructdecision tree with boosting? Is any tutorial I can read? -- Sincerely, Changbin -- [[alternative HTML version deleted]]
2004 Sep 21
0
S/R and data mining (was can't understand "R")
...case studies, Maggio 2003 Consultabile all??indirizzo web: http://www.liacc.up.pt/~ltorgo/DataMiningWithR/ Trevor Hastie , Robert Tibshirani, Jerome Friedman, The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2001, Springer-Verlag. http://www-stat.stanford.edu/~tibs/ElemStatLearn/ I'm find too for some R application for DM. Best Vito Thomas Sch??nhoff wrote: Hello, Uwe Ligges schrieb: > Erin L. Leisz wrote: > If the manual "An Introduction to R is not sufficient for you, what > about reading a book, e.g. Peter Dalgaard's "Introductory Statis...
2011 Aug 23
1
obtaining p-values for lm.ridge() coefficients (package 'MASS')
Dear all I'm familiarising myself with Ridge Regressions in R and the following is bugging me: How does one get p-values for the coefficients obtained from MASS::lm.ridge() output (for a given lambda)? Consider the example below (adapted from PRA [1]): > require(MASS) > data(longley) > gr <- lm.ridge(Employed ~ .,longley,lambda = seq(0,0.1,0.001)) > plot(gr) > select(gr)
2011 Aug 10
2
glmnet
Hi All,  I have been trying to use glmnet package to do LASSO linear regression. my x data is a matrix n_row by n_col and y is a vector of size n_row corresponding to the vector data. The number of n_col is much more larger than the number of n_row. I do the following: fits = glmnet(x, y, family="multinomial")I have been following this
2009 Mar 27
1
ROCR package finding maximum accuracy and optimal cutoff point
If we use the ROCR package to find the accuracy of a classifier pred <- prediction(svm.pred, testset[,2]) perf.acc <- performance(pred,"acc") Do we?find the maximum accuracy?as follows?(is there a simplier way?): > max(perf.acc at x.values[[1]]) Then to find the cutoff point that maximizes the accuracy?do we do the following?(is there a simpler way): > cutoff.list <-
2005 Jan 31
5
consultation
R people, I need to know if is possible to make data mining with R. If so, is there any manual or somewhere/one to consult about that. Thank you very much Adri?n
2012 Mar 29
2
How to improve, at all, a simple GLM code
Hi There, I am trying to fit a logit model to some data in a CSV file in R. Here is my code: Prepared_Data = read.csv("Prepared_Data.csv", header=TRUE) Prepared_Data attach(Prepared_Data) lrfit<-glm(C3~A1*B2*D4*E5,family = binomial) anova(lrfit, test="Chisq") write.csv(anova(lrfit, test="Chisq"), file="CWModelA.csv") shell.exec("CWModelA.csv")
2012 Nov 01
2
SEM validation: Cross-Validation vs. Bootstrapping
Hello All, Recently, I was asked to help out with an SEM cross-validation analysis. Initially, the project was based on "sample-splitting" where half of cases were randomly assigned to a training sample and half to a testing sample. Attempts to replicate a model developed in the training sample using the testing sample were not entirely successful. A number of parameter estimates were
2007 Mar 26
1
Problem in loading all packages all at once
...drfit","dse1","dse2","dyn","dynamicGraph","dynlm","e1071","eba","EbayesThresh","Ecdat","eco","ecodist","edci","effects","eha","elasticnet","ElemStatLearn","ellipse","elliptic","emme2","emplik","emulator","EMV","energy","ensembleBMA","Epi","epitools","epsi","equivalence","evd","evdbayes","evir",&qu...