[R] Multilevel Modeling in R

2016-01-28 Thread David Roy
I am conducting a multilevel regression analysis on the effect of an intervention on student test results, and am not sure how to implement the necessary R code to correctly capture the nested structure. The outcome measure for the study is whether a student passed or failed a final exam. The

Re: [R] Error while integrating R with netbeans using rJava

2016-01-28 Thread Simon Urbanek
.. this looks like a quoting problem in you classpath - you'll need to quote it properly otherwise the space in your class path gets interpreted as the next argument. > On Jan 28, 2016, at 8:08 AM, Ulrik Stervbo wrote: > > Hi Daphne, > > It seems Java cannot find

[R] How to use compare.linkage in RecordLinkage package -- unexpected output

2016-01-28 Thread Anders Alexandersson
I am using the compare.linkage function in the RecordLinkage package, and getting a result I know is wrong, so I know I'm misunderstanding something. I am using R 3.2.3 for x64 Windows. I am very familar with Stata but not so much with R. I can create record pairs from the blocking fields but all

[R] Redirect Output to File and Screen in Parallel

2016-01-28 Thread Manish MAHESHWARI
Hi, Using the sink we can redirect the output to sink files set as con. However is there a way to do both - Have the Op printed on screen and also to the log file? Thanks, Manish CONFIDENTIAL NOTE: The information contained in this email is intended only...{{dropped:11}}

[R] Two-way cluster

2016-01-28 Thread André Luis Neves
Dear everyone, I`d like to make a two-way cluster combined with a heatmap, and was wondering if you could give me a hand. I have just two variables (x and y). I would like that x variable should be placed in the x axis and y variable in the y axis. I m running lots of examples, but unfortunately

Re: [R] Redirect Output to File and Screen in Parallel

2016-01-28 Thread David Winsemius
> On Jan 28, 2016, at 10:05 PM, Manish MAHESHWARI wrote: > > Hi, > > Using the sink we can redirect the output to sink files set as con. > However is there a way to do both - Have the Op printed on screen and also to > the log file? I think this has been asked and answered.

[R] How to use compare.linkage in RecordLinkage package -- unexpected output

2016-01-28 Thread Anders Alexandersson
I am using the compare.linkage function in the RecordLinkage package, and getting a result I know is wrong, so I know I'm misunderstanding something. I am using R 3.2.3 for x64 Windows. I am very familar with Stata but not so much with R. I can create record pairs from the blocking fields but all

[R] Angle between two points with coordinates

2016-01-28 Thread Gwennaël Bataille
Dear all, I'd like to calculate the angle from one point (origin) to another (target), whatever their coordinates. But I encounter some problems (detailed below). The problem could be solved if one of you could answer positively to one of the following questions: 1) Is there a function in R

Re: [R] Angle between two points with coordinates

2016-01-28 Thread Dalthorp, Daniel
Gwennaël, Does the %% operator work for you? It gives x mod y (or the remainder after dividing x into y...result is guaranteed to be <=0 and >y) E.g. -150 %% 360 # 210 570 %% 360# 210 https://stat.ethz.ch/R-manual/R-devel/library/base/html/Arithmetic.html -Dan On Thu, Jan 28,

Re: [R] Angle between two points with coordinates

2016-01-28 Thread William Dunlap via R-help
In addition to the other fine answers, you might find it convenient to represent the points as complex numbers and use the Arg function to get the angle (and abs() or Mod() the distance). > z <- complex(real=0.8660254, imaginary=0.5) > Arg(z) / base::pi * 180 [1] 30 > Arg(-z) / base::pi *

[R] How to use compare.linkage in RecordLinkage package? -- more details but problem remains

2016-01-28 Thread Anders Alexandersson
How does one link two datasets using the compare.linkage function in the RecordLinkage package? This is to follow-up on my original posting earlier today: https://stat.ethz.ch/pipermail/r-help/2016-January/435736.html I suggested then that I should perhaps have added the identity argument. But if

Re: [R-es] help estadística!!!!!

2016-01-28 Thread Carlos Ortega
Hola, Tendrías que hacerlo con el paquete "caret" que incluye una variante de "knn" con el que sí que puedes hacer predicciones. Mira el ejemplo aquí: http://topepo.github.io/caret/misc.html Otra referencia que te puede ayudar a llegar a la alternativa anterior es esta:

[R-es] help estadística!!!!!

2016-01-28 Thread Alva Valiente, Ricardo (RIAV)
Buenas tengo una consulta. Tengo un grupo de 15,000 clientes a los cuales debo de segmentar en base a variables que por sus caracter�sticas pueden ser agrupadas en 4 grupos. Lo primero que he realizado es segmentar las variables pero de cada grupo (xq necesito realizar un an�lisis sobre esto)

Re: [R] Error while integrating R with netbeans using rJava

2016-01-28 Thread Ulrik Stervbo
Hi Daphne, It seems Java cannot find what it is looking for. I know next to nothing of using rJava but maybe this is helpful: http://binfalse.de/2011/02/20/talking-r-through-java/ Best, Ulrik On Thu, 28 Jan 2016 at 12:15 DAPHNE WAR wrote: > Could not find or load main

[R] Introduction to GAM and GAMM with R course

2016-01-28 Thread Highland Statistics Ltd
There are various remaining seats available on the following course Course: Introduction to GAM and GAMM Where: University of Konstanz, Konstanz, Germany When: 7-11 March 2016 Course website: http://www.highstat.com/statscourse.htm Course flyer:

[R] Error while integrating R with netbeans using rJava

2016-01-28 Thread DAPHNE WAR
Could not find or load main class Files\R\R-3.2.3\library\rJava\jri I encounter the above problem .Pls help __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Angle between two points with coordinates

2016-01-28 Thread Jeff Newmiller
Functions return one value. Look at ?atan2 to address ambiguity in identifying angles. -- Sent from my phone. Please excuse my brevity. On January 28, 2016 9:09:53 AM PST, "Gwennaël Bataille" wrote: >Dear all, >I'd like to calculate the angle from one point