Re: [R] Loop Autoregression

2014-06-02 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Jonas Ulbrich Sent: Sunday, June 01, 2014 1:51 PM To: R-help@r-project.org Subject: [R] Loop Autoregression Hello everybody, I have to confess that I am relatively new to

[R] Question about setdiff()

2014-06-02 Thread Raphael Päbst
Hello everyone, I have a question which is probably rooted in my lack of understanding when it comes to math. I just did the following: v - c(1:20) w - c(11:30) setdiff(v, w) and got: 1 2 3 4 5 6 7 8 9 10 Then I did the following: setdiff(w, v) and got, not surprisingly: 21 22 23 24 25 26 27

Re: [R] Question about setdiff()

2014-06-02 Thread Jeff Newmiller
About time for you to adjust your expectations... looks right to me from both a mathematical sense and as the functions are designed. --- Jeff NewmillerThe . . Go Live...

Re: [R] Question about setdiff()

2014-06-02 Thread Pascal Oettli
Hello, From the help page: Performs *set* union, intersection, (asymmetric!) difference, equality and membership on two vectors. Hope this helps, Pascal On Mon, Jun 2, 2014 at 3:57 PM, Raphael Päbst raphael.pae...@gmail.com wrote: Hello everyone, I have a question which is probably rooted in

Re: [R] Conditional mean for groups, new variables

2014-06-02 Thread arun
Hi, Regarding your first comment, you didn't provide any reproducible example. So I created one with SCHOOLID's as alphabets.  According to your original post, you had a read dataset with 36000 SCHOOLIDs.  Suppose, if I created the SCHOOLIDs using:  length(outer(LETTERS,1:2000,paste,sep=))

Re: [R] Question about setdiff()

2014-06-02 Thread Raphael Päbst
Thanks everyone! It is just as I expected, I just didn't understand how setdiff() works. Raphael On 6/2/14, Pascal Oettli kri...@ymail.com wrote: Hello, From the help page: Performs *set* union, intersection, (asymmetric!) difference, equality and membership on two vectors. Hope this

[R] Updates from the useR! 2014 organizing committee

2014-06-02 Thread Jeroen Ooms
Hi all, We are exactly one month away from the useR! 2014 conference [1]. Time for an update from the organizing committee. This weekend, registrations passed the 500 mark, which is a new record for useR! according to data collected by Gergely Daróczi [2]. Yet, there is plenty of additional

Re: [R] Plotting issues with -par(mfrow=c(r,c))- after -boot-

2014-06-02 Thread Clive Nicholas
On 1 June 2014 22:07, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: Read ?plot.boot, in particular the Side Effects section. Not a very friendly function... you will have to modify it if you wish to proceed. Thank you. I shall check this out later and may return with queries, but only if

Re: [R] Plotting issues with -par(mfrow=c(r,c))- after -boot-

2014-06-02 Thread Clive Nicholas
The help page is of no help at all in this respect, which is probably what you were saying in different words. Essentially, then, there is no solution, as I certainly wouldn't know how to go about reconfiguring -boot-. That sounds like more trouble than it is worth. On 1 June 2014 22:07, Jeff

Re: [R] Smoothed HR for interaction term in coxph model

2014-06-02 Thread Therneau, Terry M., Ph.D.
On 05/30/2014 05:00 AM, r-help-requ...@r-project.org wrote: I have a dataset with 2 treatments and want to assess the effect of a continous covariate on the Hazard ratio between treatment A and B. I want a smoothed interaction term which I have modelled below with the following code:

Re: [R] Question about setdiff()

2014-06-02 Thread arun
Hi, Please check this link: http://r.789695.n4.nabble.com/meaning-of-asymmetric-on-help-page-for-intersect-td877408.html union(setdiff(v,w), setdiff(w,v)) #or in this case setdiff(union(v,w),intersect(v,w)) #or  setdiff(c(v,w),c(v,w)[duplicated(c(v,w))]) A.K. .pae...@gmail.com wrote: Hello

Re: [R] Cargar csv 16 GB en R

2014-06-02 Thread Igor Sosa Mayor
laura tomé tomelaur...@yahoo.es writes: Hola, Estoy todavía dando mis primeros pasos en R y una de las cosas que tengo que hacer es trabajar con un csv de 16 GB. Consta de 10 columnas, 7 númericas escribe a la lista en español, que está aquí: https://stat.ethz.ch/mailman/listinfo/r-help-es

[R] Error clmm(){ordinal}

2014-06-02 Thread adesgroux
Dear all, I am trying to run the function clmm() on a data table composed as following : http://r.789695.n4.nabble.com/file/n4691592/datatable.png I have 187 pea lines assessed on 4 years * 2 locations * 3 blocs * 15 plantes for disease resistance. Disease resistance is assessed with a 0-to-5

Re: [R] Error clmm(){ordinal}

2014-06-02 Thread Rune Haubo
It's telling you that one or more of the grouping factors for the random-effect terms has less than three levels. From what you write, this seems to apply to Location: you may want to treat it as a fixed-effect instead. Hope this helps, Rune On 2 June 2014 14:00, adesgroux

Re: [R] Problem with rbind.fill

2014-06-02 Thread Bill Bentley
Thanks everyone. These messages, especially Jorge's, helped me figure it out.Apparently when the reshape package loaded, the plyr package didn't and I didn't a) notice and more importantly b) didn't realize it needed to be. In researching it I did find out that the function is in the plyr

[R] Bootstrapping Tukey Kramer:

2014-06-02 Thread Alexis Billings
Hi, I have run a Tukey Kramer on my mixed effects models (using lmer). However, I have non-normal data that can't really be transformed because it includes negative numbers. So, I have opted to use a parametric bootstrap to deal with the violation of the assumptions. Here is my code for the

Re: [R] Time Series

2014-06-02 Thread wayne schlemitz
John: The data that I sent you did you receive it? If so what thoughts or suggestions do you have for plotting the time series? I am not sure what is going wrong and getting multi plot of same. Thank you Wayne Schlemitz schmtz...@yahoo.com On Saturday, May 24, 2014 11:34 AM, John Kane

[R] testing and comparing transformations to get a gaussian distribution

2014-06-02 Thread Diederick Stoffers
Hi guys, I distinctly remember having used an R toolbox that compared different transformation with regard to normality stats in the past, can’t find anything on google. Does anybody have a clue? Thanks, Diederick __ R-help@r-project.org mailing

Re: [R] testing and comparing transformations to get a gaussian distribution

2014-06-02 Thread Greg Snow
There is the boxcox function in the MASS package that will look at the Box Cox family of transformations. On Mon, Jun 2, 2014 at 9:15 AM, Diederick Stoffers d.stoff...@gmail.com wrote: Hi guys, I distinctly remember having used an R toolbox that compared different transformation with regard

[R] HAC standard errors

2014-06-02 Thread Nick Pretnar
Hello, I am having a great amount of difficulty running a simple linear regression model with entity and time fixed effects and HAC standard errors. I have a data set with 3 million observations and 30 variables. My data is structured as follows: NAMESTATE YEARY X1 X2 1

Re: [R] Skipping .Rd files and using Org-mode instead?

2014-06-02 Thread Kevin Wright
Have you tried the roxygen2 package? To speak as Rolf does, I usually f--k things up by working with Rd files directly (typically mismatched braces) and find that one really nice thing about roxygen is that I don't have to mess with braces. Kevin On Sat, May 31, 2014 at 5:28 PM, Thorsten

[R] Help with polychoric correlation in psych library

2014-06-02 Thread Simon Kiss
Hello I have a data.frame of 32 variables, all are ordered factors. str(dat) returns the following 'data.frame': 32 obs. of 43 variables: $ q1a: Ord.factor w/ 6 levels Strongly Disagree..: 3 4 2 5 NA NA 5 5 3 5 ... $ q1b: Ord.factor w/ 6 levels Strongly Disagree..: 3 NA 4 NA NA NA NA 5 4 4

Re: [R] Skipping .Rd files and using Org-mode instead?

2014-06-02 Thread Charles Berry
Kevin Wright kw.stat at gmail.com writes: Have you tried the roxygen2 package? I have. org-mode + roxygen2 + inline is what was used to make this package: http://www.bioconductor.org/packages/release/bioc/html/geneRxCluster.html Everything from the DESCRIPTION file to the C-code to the

Re: [R] Help with polychoric correlation in psych library

2014-06-02 Thread William Revelle
Simon, As is usually the case with problems with a package, if you write the author/maintainer, you are more likely to get an answer. In this case, I just happened to be readiing R-help (t is the end of the term and I am relaxing). I am happy to look at this if you would send me the data set.

Re: [R] Conditional mean for groups, new variables

2014-06-02 Thread arun
Hi, If you want to extract only particular variables, check ?subset, ?Extract. Using my first example: aggregate(MATH~SCHOOLID,rev1, mean)[,-1,drop=FALSE] #  MATH #1 14.5 #2 17.2 #3 13.71429 #4 13.8 # more than one variable res1 - aggregate(rev1[,-1], list(SCHOOLID=rev1[,1]),

Re: [R-es] Encontrar un comando

2014-06-02 Thread rubenfcasal
Hola Marta, No me quedó muy claro lo que quieres, pero entiendo que tienes una base de datos (codeBoats o DBx) que quieres filtrar. Tienes que dar mas información sobre la base de datos y las variables, ¿cuál es la variable que tiene las artes de pesca? gears?, ¿cómo están codificadas

Re: [R-es] Compilación de un archivo C en R.

2014-06-02 Thread JOSE ALBERTO CANDELARIA BARRERA
Muchas gracias Daniel Ha funcionado la rutina desde otro ordenador. Un saludo Alberto daniel daniel...@gmail.com dijo: José Alberto, Me parece que el mensaje de error es de Windows y no de R. ¿Se abre alguna ventana de Windows con mas detalles sobre el error? ¿Tienes todos los programas

Re: [R-es] Compilación de un archivo C en R.

2014-06-02 Thread daniel
Me alegro, Por lo tanto. falta en el primer ordenador algún dll en versión 64 bits que necesita fuzzyC_main.dll y que esta presente en el segundo. Daniel Merino El 2 de junio de 2014, 14:20, JOSE ALBERTO CANDELARIA BARRERA jocan...@est-econ.uc3m.es escribió: Muchas gracias Daniel Ha