[R] package for stochastic frontier models?
I need to estimate maximum tree crown radius and am looking for a package to prepare stochastic frontier models in R. I have not found any package references on Nabble R help, google, or R help. Any tips on a package for this? With regards, Aaron Trowbridge Researcher BV Research Centre Smithers B.C. -- View this message in context: http://www.nabble.com/package-for-stochastic-frontier-models--tp17547521p17547521.html Sent from the R help mailing list archive at Nabble.com. __ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Changing axis scale
xlim(),ylim() so, ylim(2000,3000) mysimbaa wrote: > > Hello R users, > > Is it possible after making a plot(x,y) to change axis scale? > For example : I have a range of 0 to 3000 in my y-axis and I want to make > a zoom between 2000 and 3000. > > > Thanks for any help. > -- View this message in context: http://www.nabble.com/Changing-axis-scale-tf4850633.html#a13878723 Sent from the R help mailing list archive at Nabble.com. __ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] rowMean, specify subset of columns within Dataframe?
I would like to calculate the mean of tree leader increment growth over 5 years (I1 through I5) where each tree is a row and each row has 5 columns. So far I have achieved this using rowMeans when all columns are numeric type and used in the calculation: Data1 <- data.frame(cbind(I1 = 3, I2 = c(0,3:1, 2:5,NA), I3 =c(1:4,NA,5:2),I4=2,I5=3)) Data1 Data1$mean_5 <- rowMeans(Data1, na.rm =T) Data1 My real dataset has many columns including several Factor type. Is it possible to specify a range of columns within a data frame using rowMeans dims= (say where there is a one Factor column called Species leading I1 to I5, and one Factor column called Moisture following, so 7 columns total) , or do I either need to extract those columns to a new data frame, calculate means, and reattach to the original data frame, or use a different function such as apply? Unfortunately I am fairly new to R and have a difficult time with some terminology and concepts in R Help. -- View this message in context: http://www.nabble.com/rowMean%2C-specify-subset-of-columns-within-Dataframe--tf4871420.html#a13939204 Sent from the R help mailing list archive at Nabble.com. [[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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] rowMean, specify subset of columns within Dataframe?
Thank you all. So that I look up the relevant Help topic more fully, the part that extracts the columns of interest: [, c(1, 3:4)] is this an instance of ?Subscript which Charles directs me to? Cheers, Aaron Bill.Venables wrote: > > Suppose you want to select column 1, 3 and 4 only. > > ### you don't need the cbind(...) here > Data1 <- data.frame(I1 = 3, I2 = c(0, 3:1, 2:5, NA), > I3 = c(1:4, NA, 5:2), I4 = 2, I5 = 3) > > Data1$mean_134 <- rowMeans(Data1[, c(1, 3:4)], na.rm = TRUE) > Data1 > > Bill Venables. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of aaront > Sent: Monday, 26 November 2007 6:02 AM > To: r-help@r-project.org > Subject: [R] rowMean, specify subset of columns within Dataframe? > > > I would like to calculate the mean of tree leader increment growth over > 5 > years (I1 through I5) where each tree is a row and each row has 5 > columns. > So far I have achieved this using rowMeans when all columns are numeric > type > and used in the calculation: > > Data1 <- data.frame(cbind(I1 = 3, I2 = c(0,3:1, 2:5,NA), I3 > =c(1:4,NA,5:2),I4=2,I5=3)) > Data1 > Data1$mean_5 <- rowMeans(Data1, na.rm =T) > Data1 > > My real dataset has many columns including several Factor type. Is it > possible to specify a range of columns within a data frame using > rowMeans > dims= (say where there is a one > Factor column called Species leading I1 to I5, and one Factor column > called > Moisture following, so 7 columns total) , or do I either need to extract > those columns to a new data frame, calculate means, and reattach to the > original data frame, or use a different function such as apply? > > Unfortunately I am fairly new to R and have a difficult time with some > terminology and concepts in R Help. > > -- > View this message in context: > http://www.nabble.com/rowMean%2C-specify-subset-of-columns-within-Datafr > ame--tf4871420.html#a13939204 > Sent from the R help mailing list archive at Nabble.com. > > __ > 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/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > __ > 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/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://www.nabble.com/rowMean%2C-specify-subset-of-columns-within-Dataframe--tf4871420.html#a13941498 Sent from the R help mailing list archive at Nabble.com. __ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] windows vista
If the administrator account does not exist, this info provided for another software program I use may be helpful: "Some Windows Vista installations may have the Administrator account turned off. If so, it is easy to turn the true Administrator account on. To do so, open the Control Panel and open the User Accounts applet. If you do not see any accounts named Administrator, this account is disabled. To enable the Administrator account, do the following: * Click Start, type cmd into the search pane, wait until the system displays the cmd.exe item at the top. * Right click the item and choose Run as administrator. * In the opened command prompt, type net user administrator /active:yes and click Enter, then log off. * There will now be an Administrator account enabled. * Log in as the Administrator to install and to activate Manifold." From: http://www.manifold.net/tech/vista_admin.shtml http://cran.r-project.org/bin/windows/base/rw-FAQ.html#Does-R-run-under-Windows-Vista_003f Suzuky Pinto wrote: > > Hello there > > Im suzuky Pinto from Mexico. > And Im buying a new computer and this have windows vista. Could I have any > problem using R on it? > thabks > > Suzuky** > > > Comparte video en la ventana de tus mensajes (y también tus fotos > de Flickr). > Usa el nuevo Yahoo! Messenger versión Beta. > http://mx.beta.messenger.yahoo.com/ > [[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/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://www.nabble.com/windows-vista-tf4887031.html#a13993446 Sent from the R help mailing list archive at Nabble.com. __ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Re commended textbooks for R?
I am currently using: ---John Maindonald and John Braun. Data Analysis and Graphics Using R--- and find it very useful, note that there now is a 2007 edition. Most of the texts mentioned in the previous link have reviews on Amazon. Jared O'Connell-2 wrote: > > This page may be helpful :) > > http://www.r-project.org/doc/bib/R-books.html > > Modern Applied Statistics with S is quite broad and very good. > > On Nov 28, 2007 4:38 PM, Max <[EMAIL PROTECTED]> wrote: >> Hi everyone! >> >> I've recently begun to learn R for my job as the IT department suffers >> from lack of funding for new software. I was talking to the guy in >> charge of Requisitions and have found out the budget for books is in >> great shape. >> >> So, I'm curious what books people know of that have R examples and are >> good for: >> >> 1.) Uni and Multivariate Time Series Analysis/Forecasting >> >> 2.) GLMs (at this point it looks like I'll be focusing on nominal and >> ordinal regression models) >> >> 3.) Survival Models >> >> 4.) Multiple Regression >> >> Any suggestions would be awesome. :) >> >> thanks, >> >> -Max >> >> __ >> 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/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > __ > 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/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://www.nabble.com/Recommended-textbooks-for-R--tf4895638.html#a14027317 Sent from the R help mailing list archive at Nabble.com. __ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] How to take the ave of two rows in a data frame
Would ?aggregate help? affy snp wrote: > >> Dear list, >> I have a data frame like: >> >> > log2.ratios[1:3,1:4] >>ID a1 a2 a3 >> 1 GS1-232B23 -0.0207500 0.17553833 0.21939333 >> 2 RP11-82D16 -0.1896667 0.02645167 -0.03112333 >> 3 RP11-62M23 -0.1761700 0.08214500 -0.04877000 >> 4 RP11-62M23 0.2761700 -0.15214500 -0.05877000 >> > > the 3rd and 4th rows are of the same ID, I would like to take the avarage > of > these > two rows and get the data frame to: > > ID a1 a2 a3 > 1 GS1-232B23 -0.0207500 0.17553833 0.21939333 > 2 RP11-82D16 -0.1896667 0.02645167 -0.03112333 > 3 RP11-62M23 -0.05 -0.035 0.094135 > > Can anyone suggest how to deal with this (to take the ave of two rows of > the > same ID ) more quickly? > > Thanks a bunch! > > Allen > > [[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/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://www.nabble.com/How-to-take-the-ave-of-two-rows-in-a-data-frame-tf4898908.html#a14031906 Sent from the R help mailing list archive at Nabble.com. __ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Great looking plot - but what does it mean?
You might want to google "box and whisker plot". mika03 wrote: > > > http://www.nabble.com/file/p14668788/paragraphs.png > > Hi, > > R is is world full of wonders... I created the attached plot, and I think > it's exactly what I need! Well, actually I think it is more that wht I > need... > > I wanted R to show the mean values of the categories on the x-axis and > maybe the standard derivation as well. > > I am pretty confident that the bold horrizontal lines in the plot show the > mean values. But what are the white boxes and the dashed lines? And what's > that one small circle on the "Section" column supposed to mean. > > And if I would like to get rid of that small circle, how can I? > > Thanks a lot! > -- View this message in context: http://www.nabble.com/Great-looking-plot---but-what-does-it-mean--tp14668788p14669939.html Sent from the R help mailing list archive at Nabble.com. __ 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/posting-guide.html and provide commented, minimal, self-contained, reproducible code.