Re: [R] Multiple regression
None: basic R comes with a package `stats' that does both (very well!). It is loaded by default. You do need to read `An Introduction to R', as the posting guide asks. On Mon, 2 May 2005, alessandro carletti wrote: what package could I install to best perform a Multiple Linear Regression (and what for PCA)? PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Multiple regression
Hi, what package could I install to best perform a Multiple Linear Regression (and what for PCA)? Thanks Alessandro Carletti __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Multiple regression trees-more info
Sorry, as I was mentioned already I'm new in this field an thus I forgot to tell more details: I'm using R software 1.9.1 with the 'mvpart' package. In the meantime I came closer to the solution of my problem, but I get an error (see the script below). But I still don't have an idea how to label each node with its corresponding number. Annette #require(mvpart) eco.mvp <- mvpart(data.matrix(eco) ~ ., env, xv="p") eco.mvp$where eco.member <-eco.mvp$where #find out the levels (in this case the end node number) of a factor eco.memberf <- factor(eco.member)#define eco.member as factor levels(eco.memberf) #numbers(labels) of end nodes #find meanvalue for each response variable within each group (end node) all.value <- c(eco$all) #extract column of response variable"all" with values allmeans.member <-(tapply(all.value,eco.memberf,mean)) allmeans.member #number of occurency for each response variable within each end node #require(vegan) all0 <- decostand(all.value,"pa") allcount.member <-(tapply(all0,eco.memberf,sum)) Error in tapply(all0c, eco.memberf, sum) : arguments must have same length __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Multiple regression trees
You haven't even told us which add-on package you are using to get `multiple regression trees'. Is that multiple 'regression trees' or 'multiple regression' trees or what? On Mon, 11 Oct 2004 [EMAIL PROTECTED] wrote: > I'm quite new in R, but I'm working with multiple regression trees and I > would like to know a couple of things: > 1. how can I label the regression tree with the number of node (each node > should be labled with its number) In both tree and rpart nodes are labelled by number in the printout. > 2. I like to know for each end node (leaves) the number of occurency for > each response variable (species) that falls in that group.The tree-plot > gives me only the number of sites that falls in each leave. Again, for both tree and rpart the printout gives you this, but they have one response variable. I suggest you ask the author of whatever package you are using (but (s)he might be upset by your posting here and giving no credit). -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Multiple regression trees
Dear list, I'm quite new in R, but I'm working with multiple regression trees and I would like to know a couple of things: 1. how can I label the regression tree with the number of node (each node should be labled with its number) 2. I like to know for each end node (leaves) the number of occurency for each response variable (species) that falls in that group.The tree-plot gives me only the number of sites that falls in each leave. Thank you in advance Annette __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] multiple regression with dummy variables
Hi I'm a beginner in R, please help... I'm trying to do regression analysis on a categorical data to find b's of each Xi. Essentially, f(x) is the output, and two independent variables Xd (days of week (1,2,...,7) and Xwk (week of month (1,2,...,6)including partial wks). So the data looks like this: f(x) Xd Xwk 0.03 1 2 0.06 3 1 : : I use factor() and contrasts() to produce I.matrix as such 2 3 4 5 6 7 1 0 0 0 0 0 0 2 1 0 0 0 0 0 3 0 1 0 0 0 0 4 0 0 1 0 0 0 5 0 0 0 1 0 0 6 0 0 0 0 1 0 7 0 0 0 0 0 1 2 3 4 5 6 1 0 0 0 0 0 2 1 0 0 0 0 3 0 1 0 0 0 4 0 0 1 0 0 5 0 0 0 1 0 6 0 0 0 0 1 However, when I tried to regress with: summary(lm(log(y1)~ I(daydum==1) + I(weekdum==1)), contrast=T) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ I'm trying to find pairwise regression in order to find each bi. Can anyone hlep? Thanks so much in advance. franc __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Multiple regression
Have a look at Prof. Harrell's book (Chapters 4 and 5) @Book{harrell:01, author= {F. E. Harrell, Jr.}, title = {Regression Modeling Strategies: With Applications to Linear Models, Logistic Regression and Survival Analysis}, year = {2001}, address = {New York}, publisher = {Springer-Verlag} } Best, Dimitris Dimitris Rizopoulos Doctoral Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/396887 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.be/biostat/ http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm - Original Message - From: "Manoj - Hachibushu Capital" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 09, 2004 5:13 PM Subject: [R] Multiple regression > Hi, > I am trying to do multiple regression on a set of data using backward stepwise regressionhowever backward stepwise regression is critised for overfitting data. To actually observe the bias and to come up with a better method to use..Could you all stats experts kindly give me pointers to any alternative procedure (or references) to use over backward stepwise regression from your experience? > > TIA. > > Manoj > > __ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Multiple regression
Hi, I am trying to do multiple regression on a set of data using backward stepwise regressionhowever backward stepwise regression is critised for overfitting data. To actually observe the bias and to come up with a better method to use..Could you all stats experts kindly give me pointers to any alternative procedure (or references) to use over backward stepwise regression from your experience? TIA. Manoj __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html