[R] carolina function help

2016-01-26 Thread Huffman, Ryan
I am looking for advice from those who have used the carolina function, notably carolina model=2 for a North Carolina Design II analysis. I have having difficulty getting the function to perform correctly and would like an example of a code that someone has gotten to work. Thanks -- Ryan Huffma

Re: [R] Sorting a Data Frame

2016-01-26 Thread Bert Gunter
... > mydf[2] # ??? B 1 4 2 5 3 6 A data frame is "really" a list of columns, so giving a single value returns that column. False. It returns a data frame consisting of a single column = a list containing a single component. mydf[[2]] returns a single component/column. While these differ

Re: [R] Confidence Interval for R-squared

2016-01-26 Thread David L Carlson
Sometimes Google just works better. My search on "confidence interval R2 R" turned up several hits on the first two pages. A Quick-R page on bootstrapping with an example using R-squared http://www.statmethods.net/advstats/bootstrapping.html Function ci.R2() in package MBESS http://www.inside-r

Re: [R] Confidence Interval for R-squared

2016-01-26 Thread Nordlund, Dan (DSHS/RDA)
A Google search suggested the use of the boot package to bootstrap a confidence interval for R-squared. http://www.statmethods.net/advstats/bootstrapping.html Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of

Re: [R] Confidence Interval for R-squared

2016-01-26 Thread Sarah Goslee
Hi Raul, Searching for "confidence interval of R-squared" on rseek.org turns up some packages that might be of use, including bootstrap and MBESS. On Tue, Jan 26, 2016 at 3:11 PM, R Martinez wrote: > To the list, > > Does R have a function for computing the confidence interval of R-squared >

Re: [R] Sorting a Data Frame

2016-01-26 Thread Sarah Goslee
On Tue, Jan 26, 2016 at 4:24 PM, Robert Sherry wrote: > > Thank you for the response. As expected, the following expression worked: > df[order(df$x),] This says to sort the rows, and leave the columns alone. Subsetting a 2-dimensional object is via [rows, columns] > I would expect the follo

Re: [R] Sorting a Data Frame

2016-01-26 Thread Robert Sherry
Thank you for the response. As expected, the following expression worked: df[order(df$x),] I would expect the following expression to work also: df[order(df$x)] However it does not. That is, the comma is needed. Please tell me why the comma is there. Thanks Bob On 1/26/2016 8:19 A

[R] Confidence Interval for R-squared

2016-01-26 Thread R Martinez
To the list, Does R have a function for computing the confidence interval of R-squared (coefficient of determination)? I checked R's Help function with “confidence interval” as the query but none of the packages and functions that R found pertain to R-squared. Thanks in advance for your help.

Re: [R] Weighted Quantile Regression as a function of Tau and Weights array

2016-01-26 Thread Preetam Pal
Sorry, forgot to attach the data. On Tue, Jan 26, 2016 at 11:56 PM, Preetam Pal wrote: > I have a dataset (attached) on numeric variables y, gdp, hpa and fx. I > intend to perform weighted quantile regression on this data set (i.e. y on > the remaining variables) and extract the estimated coeffi

[R] Weighted Quantile Regression as a function of Tau and Weights array

2016-01-26 Thread Preetam Pal
I have a dataset (attached) on numeric variables y, gdp, hpa and fx. I intend to perform weighted quantile regression on this data set (i.e. y on the remaining variables) and extract the estimated coefficients. I want to do this as a bivariate function of the quantile tau and the weights array. Can

Re: [R] organizing my data before doing a cluster analysis

2016-01-26 Thread David L Carlson
Your question involves a number of basic features of R. First, don't use html formatting in your email because the r-help list strips out the formatting. Second, use the R function dput() to paste data into your email since we can transfer that to R easily. I've converted your table to an R data

Re: [R] R tool downloaded

2016-01-26 Thread Duncan Murdoch
On 26/01/2016 12:16 PM, Eman M wrote: Hi,I am a student and I want download R tool but I did not found my country (Saudi Arabia ) in the list of download, can you help me how can I download the R tool... Choose a mirror that is near you (in a connectivity sense), it doesn't have to actually

Re: [R] How do I parse embedded quotes?

2016-01-26 Thread Duncan Murdoch
On 26/01/2016 10:44 AM, Andre Mikulec wrote: I want embedded quotes to be parsed. I can not figure out hot to do that. I want to this to be parsable. "'"a"'" In a simpler case, "'a'" is parsable. > eval(parse(text="\"'a'\"")) [1] "'a'" But I want to parse embedded quotes So, I want to pa

[R] R tool downloaded

2016-01-26 Thread Eman M
Hi,I am a student and I want download R tool but I did not found my country (Saudi Arabia ) in the list of download, can you help me how can I download the R tool... Best Regards,Eman [[alternative HTML version deleted]] __

[R] organizing my data before doing a cluster analysis

2016-01-26 Thread Michael
I have been reading the different cluster analysis methods available in R. I have a problem getting my data in the correct format so I can use these methods. I explain below. I am trying to cluster different fish species to see what fish are caught with each other on a commercial fishing tri

Re: [R] probability or a quantile from various distributions for multiple comparisons of means

2016-01-26 Thread David L Carlson
Quickly scanning the documentation for PROBMC suggests that it does several things, but multiple comparisons are implemented in package multcomp through the function glht(). These vignettes may help: https://cran.r-project.org/web/packages/multcomp/vignettes/generalsiminf.pdf https://cran.r-proj

Re: [R] R Licensing Question

2016-01-26 Thread Marc Schwartz
> On Jan 26, 2016, at 8:28 AM, Jonathan Gellar > wrote: > > Hello, > > I have found a list of all software licenses supported by CRAN at the > following site: > > https://svn.r-project.org/R/trunk/share/licenses/license.db > > There is also the list of commonly used licenses here: > > http

[R] R Licensing Question

2016-01-26 Thread Jonathan Gellar
Hello, I have found a list of all software licenses supported by CRAN at the following site: https://svn.r-project.org/R/trunk/share/licenses/license.db There is also the list of commonly used licenses here: https://cran.r-project.org/web/licenses/ I have tried to read through some of these l

[R] probability or a quantile from various distributions for multiple comparisons of means

2016-01-26 Thread Gregory BECQUEMBOIS (DN)
Hi There, I would like to know if the SAS Function PROBMC is in R. In the SAS documentation this function returns a probability or a quantile from various distributions for multiple comparisons of means. I'm not sure to understand clearly what it does but i have to reproduce it with R for one o

Re: [R] Sorting a Data Frame

2016-01-26 Thread S Ellison
> On 23.01.2016 01:21, Robert Sherry wrote: > > In R, I run the following commands: > > df = data.frame( x=runif(10), y=runif(10) ) > > df2 = df[order(x),] > > > You use another x from your workspace, you actually want to > > > df2 = df[order(df[,"x"]),] or df[order(df$x),] And

Re: [R] Downloading Google finance data onto R

2016-01-26 Thread Joshua Ulrich
On Tue, Jan 26, 2016 at 6:36 AM, Duncan Murdoch wrote: > On 26/01/2016 7:16 AM, Christofer Bogaso wrote: >> >> Hi dear, >> >> I was trying to download a Google TS data directly onto R from this link : >> >> >> https://www.google.com/finance?q=NSE%3ALIQUIDBEES&ei=xlGnVuiPJ9eDuQSZ05OICw >> >> Used f

Re: [R] Downloading Google finance data onto R

2016-01-26 Thread Duncan Murdoch
On 26/01/2016 7:16 AM, Christofer Bogaso wrote: Hi dear, I was trying to download a Google TS data directly onto R from this link : https://www.google.com/finance?q=NSE%3ALIQUIDBEES&ei=xlGnVuiPJ9eDuQSZ05OICw Used following function, however R generates error. library(quantmod) getSymbols(Sym

Re: [R] Downloading Google finance data onto R

2016-01-26 Thread Joshua Ulrich
On Tue, Jan 26, 2016 at 6:16 AM, Christofer Bogaso wrote: > Hi dear, > > I was trying to download a Google TS data directly onto R from this link : > > https://www.google.com/finance?q=NSE%3ALIQUIDBEES&ei=xlGnVuiPJ9eDuQSZ05OICw > > Used following function, however R generates error. > >> library(q

[R] Downloading Google finance data onto R

2016-01-26 Thread Christofer Bogaso
Hi dear, I was trying to download a Google TS data directly onto R from this link : https://www.google.com/finance?q=NSE%3ALIQUIDBEES&ei=xlGnVuiPJ9eDuQSZ05OICw Used following function, however R generates error. > library(quantmod) > getSymbols(Symbols = "LIQUIDBEES", src = "google") Error in d

Re: [R] R-help mailing list activity / R-not-help?

2016-01-26 Thread Duncan Murdoch
On 26/01/2016 6:30 AM, S Ellison wrote: Yet, the trend I've seen is one of increasing **R-not-help**, in that there are many posts, often by new R users who get replies that not infrequently range from just mildly off-putting to actively hostile: Slightly surprised that in a debate postulated o

Re: [R] R-help mailing list activity / R-not-help?

2016-01-26 Thread S Ellison
> Yet, the trend I've seen is one of increasing **R-not-help**, in that there > are > many posts, often by new R users who get replies that not infrequently range > from just mildly off-putting to actively hostile: Slightly surprised that in a debate postulated on increasing 'meanness', no-one h

Re: [R] [FORGED] qqPlot vs qqcomp

2016-01-26 Thread mohsen hs
Hi Peter and Rolf, Hope you are doing well and thanks for your time earlierlast year. I have started working on the data again and used the first ideathat Peter proposed: Take log of your data andcompare with normal distr. Hence, I tried the following code: library(EnvStats); library(fitdistrpl

Re: [R] Block Triangular Matirx

2016-01-26 Thread Martin Maechler
> David Winsemius > on Mon, 25 Jan 2016 18:13:59 -0800 writes: >> On Jan 24, 2016, at 10:45 PM, Olivier Crouzet >> wrote: >> >> Hi, I think this page will help, >> >> https://stat.ethz.ch/R-manual/R-devel/library/base/html/lower.tri.html > I agree that