Re: [R] Is dataset "headsize" from MVA or HSAUR2 packages missing or am I missing something ?

2014-07-29 Thread ottorino
I answer to myself, just in case someone in the future will need this. The data set for headsize is named "frets", from the name of the author who collected data in 1921, and it is available once the the library "boot" is loaded. Il giorno lun, 28/07/2014 alle 15.46 +0200, ottorino ha scritto: >

Re: [R] Linear relative rate / excess relative risk models

2014-07-29 Thread Wollschlaeger, Daniel
A while ago, I inquired about fitting excess relative risk models in R. This is a follow-up about what I ended up doing in case the question pops up again. While I was not successful in using standard tools, switching to Bayesian modeling using rstan (mc-stan.org/rstan.html) worked better. The r

[R] analyzing qualitative data sets

2014-07-29 Thread Sun Shine
Hello list I'm just beginning my PhD and am likely to be using lots of surveys in my data collection, and am wanting to get my head around the ideas about how best to approach the tasks in R. The data sets I have collected so far for some preliminary practise with are made up of the followin

Re: [R] analyzing qualitative data sets

2014-07-29 Thread Bert Gunter
1. If you are asking about statistics, this is the wrong list. Post here instead: stats.stackexchange.com. 2. If you you are asking about what sorts of statistical analyses are available in R, check the CRAN task views here: http://cran.r-project.org/web/views/ 3. If you are asking about how to p

Re: [R] interactive labeling/highlighting on multiple xy scatter plots

2014-07-29 Thread Greg Snow
There is the TkBrush function in the TeachingDemos package that gives brushing in a scatterplot matrix using a Tk interface rather than ggobi. There is also the iplots package which allows you to create multiple scatterplots, histograms, boxplots, barcharts, etc. and points selected in any one of

Re: [R] XLConnect on Linux Mint Maya

2014-07-29 Thread Keith S Weintraub
John Et Al. I can get rJava and XLConnect to work only if I run as super user. Note that I have built rJava and XLConnect as super user (otherwise neither package works). Without sudo > require(XLConnect) Loading required package: XLConnect Error :

[R] venn.diagram, error message: Incorrect number of elements

2014-07-29 Thread Fix Ace
Hello, there, I have 6 dataset and trying to draw a venn.diagram using R VennDiagram package, but got this error message. Could anybody figure out why? Thanks === > library(VennDiagram) Loading required package: grid > head(A)    V1 1 F_HO1 2 F_HO10001 3 F_HO10002 4 F_HO10003 5 F

[R] Copulas and spatial modeling

2014-07-29 Thread Dave Leighton
We are interested in using copulas for spatial modeling of environmental data. We are new to R and new to copulas. We’re looking for some guidance on how to use copulas for this application. I've searched the r-help archives and I not found the information I need. Can anyone point me to informati

Re: [R] interactive labeling/highlighting on multiple xy scatter plots

2014-07-29 Thread Ramnath Vaidyanathan
There are plugins for rCharts that help you create custom charts. Here is a scatterplot matrix example http://mostlyconjecture.com/2014/02/09/scatterplot-matrix-with-rcharts/ It doesn't support brushing, but I think it won't be hard adding that behavior if you contact its author. Hope this help

Re: [R] analyzing qualitative data sets

2014-07-29 Thread Richard M. Heiberger
For your item 2, (2) 25 obs x 14 var of ordinal rank data [5 item Likert-scale, with some missing values], and I recommend the likert function in the HH package install.packages("HH") library(HH) ?likert Rich On Tue, Jul 29, 2014 at 9:01 AM, Sun Shine wrote: > Hello list > > I'm just beginning

Re: [R] analyzing qualitative data sets

2014-07-29 Thread Rich Shepard
On Tue, 29 Jul 2014, Sun Shine wrote: (a) what types of analyses are available to apply to the data types above? Many years ago I consulted to a graduate nursing program; the students were asking the same questions you ask: what sort of statistics will turn my sow's ears of survey data into

[R] Dependency Injection & Inversion of Control for Data

2014-07-29 Thread Reed Spool
Greetings, New to R, coming from Java (Spring). We have many different data sources (CSV's) for our analysis. Some of them need preprocessing at the time of analysis - doing it earlier and saving the resultant table doesn't make sense. My code is getting tangled quickly as I try to read.csv my m

[R] Trouble with function nnetar

2014-07-29 Thread Paul Bernal
I was playing around with the nnetar function in the forecast package, trying to generate a 3-year forecast (36 months), the R fit result is shown below: #Neural Nets Fitting and Forecast > > fit<-nnetar(condataset$ConPcums97) > fit Series: condataset$ConPcums97 Model: NNAR(13) Call: nnetar(x

Re: [R] XLConnect on Linux Mint Maya

2014-07-29 Thread Jeff Newmiller
Sounds to me like a problem outside of R (off topic here). In particular, it doesn't sound like you are using the appropriate tools (apt-get package manager for R and a JDK; R install.package() for your R packages) to admin your machine. The only thing you should need sudo for is to run apt-get.

Re: [R] Dependency Injection & Inversion of Control for Data

2014-07-29 Thread William Dunlap
R is a functional language so you might want to google for 'dependency injection functional language' and see why dependency injection is not a hot concept in R. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Jul 29, 2014 at 9:02 AM, Reed Spool wrote: > Greetings, > > New to R, coming fro

Re: [R] Dependency Injection & Inversion of Control for Data

2014-07-29 Thread Jeff Newmiller
Color me mystified. In particular, "preprocessing at the time of analysis"... what is wrong with writing a function that gets your data and cleans it up, then calling it when you feel the time is right? Note that R is optimized for vector processing (columns), not row-by-row processing, so the

Re: [R] Dependency Injection & Inversion of Control for Data

2014-07-29 Thread Bert Gunter
... and so it is straightforward to have both data and a preprocessing function as arguments to an analysis function so that the preprocessing is done both appropriately and efficiently. Or to pass both data and preprocessing function as a single construct. If this misstates the issue, please say

Re: [R] Dependency Injection & Inversion of Control for Data

2014-07-29 Thread Reed Spool
Thanks for the quick responses everyone, Bill, good point. In JavaScript I've used RequireJS, which is the type of thing I'm interested in. I don't need anything strongly typed. Excuse my ignorance, but R is not "totally functional", and it is object oriented, right? I.e. it is functional in that

Re: [R] analyzing qualitative data sets

2014-07-29 Thread Sun Shine
Thanks, I'll look into that further. Cheers On 29/07/14 16:44, Richard M. Heiberger wrote: For your item 2, (2) 25 obs x 14 var of ordinal rank data [5 item Likert-scale, with some missing values], and I recommend the likert function in the HH package install.packages("HH") library(HH) ?liker

Re: [R] analyzing qualitative data sets

2014-07-29 Thread Sun Shine
Thanks for the link. I had not been aware of that. On 29/07/14 15:27, Bert Gunter wrote: 1. If you are asking about statistics, this is the wrong list. Post here instead: stats.stackexchange.com. 2. If you you are asking about what sorts of statistical analyses are available in R, check the CR

[R] Help with splitting up values in a data set

2014-07-29 Thread Gayon Clarke
Good day, I have a data set from a MySQL database with a description field that I want to spilt up the values in order to compare the description of one record to the others. This will help me to identify any patterns with the data being recorded. Your help will be gladly appreciated. Gayon

Re: [R] XLConnect on Linux Mint Maya

2014-07-29 Thread Ista Zahn
On Tue, Jul 29, 2014 at 12:54 PM, Jeff Newmiller wrote: > Sounds to me like a problem outside of R (off topic here). Possibly, but I suspect that the OP now has two versions of XLConnect installed, one in the user R library and one in the system-wide R library. Keith, try remove.packages("XLCon

[R] Post hoc comparissons

2014-07-29 Thread Reid, Doug (MNR)
Hi Folks, I have been using the TukeyHSD to conduct post hoc comparisons. The challenge is I have two interacting factors, one of which has 6 levels (cover types), and the other 2 (study areas).As a result interpreting the post hoc comparisons is difficult when you get a list of every poss

Re: [R] venn.diagram, error message: Incorrect number of elements

2014-07-29 Thread Sarah Goslee
The venn.diagram() function in the package VennDiagram only works with sizes up to 5. That isn't horribly clear from the help file, but quite explicit in the code: if (0 == length(x) | length(x) > 5) { stop("Incorrect number of elements.", call. = FALSE) } If you really need 6, y

Re: [R] analyzing qualitative data sets

2014-07-29 Thread Rolf Turner
A goldmine of fortunes!!! cheers, Rolf On 30/07/14 01:29, Rich Shepard wrote: On Tue, 29 Jul 2014, Sun Shine wrote: (a) what types of analyses are available to apply to the data types above? Many years ago I consulted to a graduate nursing program; the students were asking the same qu

Re: [R] Post hoc comparissons

2014-07-29 Thread David L Carlson
Look at package multcomp, particularly function cld(). - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behal

Re: [R] interactive labeling/highlighting on multiple xy scatter plots

2014-07-29 Thread Shi, Tao
Thank you very much, Greg and Ramnath, for the pointers!  I'll explore more. On Tuesday, July 29, 2014 8:10 AM, Ramnath Vaidyanathan wrote: There are plugins for rCharts that help you create custom charts. Here is a scatterplot matrix example http://mostlyconjecture.com/2014/02/09/scatte

Re: [R] Help with splitting up values in a data set

2014-07-29 Thread Sarah Goslee
Hi, My telepathy is not working today. Have you already imported your data into R? If so, what does it look like? dput(head(yourdata, 20)) is an effective way to provide data on the list. Or if your question refers to only one column, that's all we need. But we certainly need to know what the

Re: [R] Help with splitting up values in a data set

2014-07-29 Thread Shanae Clarke
Thank you for that link, it was very helpful. My attempt, This is what my data set looks like  dput(head(des,2)) structure(list(description = structure(5:6, .Label = c("\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua

[R] a knitr question

2014-07-29 Thread Erin Hodgess
Hello! When constructing code using knitr, is there a way to get the ">" prompt to appear, please? Everything else works great!! Thank you! Sincerely, Erin -- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodg...@gm

Re: [R] a knitr question

2014-07-29 Thread Erin Hodgess
Sorry: just solved it. You simply include "prompt=TRUE" in the <<>> section Thanks, Erin On Tue, Jul 29, 2014 at 6:22 PM, Erin Hodgess wrote: > Hello! > > When constructing code using knitr, is there a way to get the ">" prompt > to appear, please? > > Everything else works great!! > > Than

Re: [R] a knitr question

2014-07-29 Thread Peter Alspach
Kia ora Erin But beware - to quote from Yihui 2013 introduction to knitr "It is easy to revert to the output with prompts (set option prompt=TRUE), and you will quickly realize the inconvenience to the readers if they want to copy and run the code ..." Peter Alspach -Original Message-

Re: [R] a knitr question

2014-07-29 Thread Yihui Xie
Yeah, it is just my personal opinion. Some users like it, and some do not. Regards, Yihui -- Yihui Xie Web: http://yihui.name On Tue, Jul 29, 2014 at 5:36 PM, Peter Alspach wrote: > Kia ora Erin > > But beware - to quote from Yihui 2013 introduction to knitr > > "It is easy to revert to the ou

Re: [R] a knitr question

2014-07-29 Thread Erin Hodgess
I was thinking that for teaching, it may be helpful for them to see the whole thing. On Tue, Jul 29, 2014 at 6:56 PM, Yihui Xie wrote: > Yeah, it is just my personal opinion. Some users like it, and some do not. > > Regards, > Yihui > -- > Yihui Xie > Web: http://yihui.name > > > On Tue, Jul 2

Re: [R] a knitr question

2014-07-29 Thread Rmh
on windows gui, right-click paste-without-prompt (or some similar phrasing) takes the prompts away. on ESS c-u c-u c-y takes the prompts away Rich Sent from my iPhone > On Jul 29, 2014, at 22:17, Erin Hodgess wrote: > > I was thinking that for teaching, it may be helpful for them to see the

[R] Out of example forecasting plot

2014-07-29 Thread 张天添
Dear R helping team, I am trying to check if the model I fitted is the best fitted model from the data. I have over all 392 data, I want to fit the model in the first 382 data and do 10 step predictions, check whether my model fits the last 10 data well. Here is the R code I wrote da<-read.