[R] Question about cochran test in R

2015-05-07 Thread Luis Fernando García
Dear R Experts, May be this is a basic question for you, but it is something I need really urgently. I need to perform a Chi Square analysis for more than two groups of paired observations. It seems to be ok For Cochran test. Unfortunately I have not found info about this test in R, except for

Re: [R] Question about cochran test in R

2015-05-07 Thread Jim Lemon
Hi Luis, Try this page: http://www.r-bloggers.com/cochran-q-test-for-k-related-samples-in-r/ Jim On Thu, May 7, 2015 at 4:59 PM, Luis Fernando García luysgar...@gmail.com wrote: Dear R Experts, May be this is a basic question for you, but it is something I need really urgently. I need to

Re: [R] Sort data and symbol change in Jitter plot (ggplot2)

2015-05-07 Thread Luis Fernando García
Thanks all of you guys! Your answers were very useful! Thanks for the answer John, but I will try to keep the dotplot, but it is very useful to know both techniques anyway :) Petr, many thanks for your help, it was just what I needed, btw, the arrangment based on the median was a headache for

[R] Problem with using flexmix for regression mixtures

2015-05-07 Thread Holger Steinmetz
Hi there, I would like to conduct a mixture regression analysis with the flexmix Package. Was just playing around with the function stepFlexmix() and did not get a foot into the door. When I run the stepFlexmix-function, I get the following error (actually a list of errors that repeats this

Re: [R] MOnth over Month Variance in %

2015-05-07 Thread John Kane
Sorry, I see that I forgot the link: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: shivibha...@ymail.com Sent: Wed, 6 May 2015 22:32:37 -0700 (PDT) To: r-help@r-project.org Subject: Re:

Re: [R] How does ARules in R decide on LHS and RHS??

2015-05-07 Thread John Kane
This is pretty sketchy. Perhaps some details might help. arules is in what package? Any code ? Any data? http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada -Original Message- From: krishnakanth...@outlook.com Sent:

Re: [R] Identifying matched groups based on a rule

2015-05-07 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example You have not supplied anywhere near enough information. See the link above for some suggestions. John Kane Kingston ON Canada -Original Message- From: ajao...@gmail.com Sent: Thu, 7 May 2015

[R] About categorical explanatory variables

2015-05-07 Thread Rafael Costa
When you want to get the individual impact of each level of a single categorical explanatory variable on a variable continuous quantitative response, simply add the value of the estimated coefficient to the intercept or, more directly, just consider all levels of the categorical variable in the

Re: [R] package implementing continuous binomial?

2015-05-07 Thread David Winsemius
On May 6, 2015, at 7:00 PM, Benjamin Tyner wrote: Hi I'm wondering if anyone is aware of an R package implementing (i.e., providing a pdf, cdf, and/or quantile function) for the continuous binomial distribution? Specifically the one characterized here:

[R] Getting INDIVIDUAL effects of multiple qualitative variables (ordered and unordered factors)

2015-05-07 Thread Rafael Costa
Dear R users, I have data from a questionnaire and I want to estimate the individual effect of each explanatory variable (all are qualitative) on the dependent variable (continuous). However, the default is to consider the estimated coefficients as the difference between the reference group

Re: [R] Convert csv to xpt file in R?

2015-05-07 Thread Santosh
Dear Rxperts.. Thanks for your response. Below is the version on Windows 7 Enterprise (64-bit) OS machine..Yes, I tried SASxport, foreign and Hmisc.. have used SASxport before (not for writing to xpt though) and continue to have the same write to sas transport file issue.. version

Re: [R] Calling Function With Arguments In a Script

2015-05-07 Thread Bert Gunter
See e.g. Chapter 10.4 in the Intro to R Tutorial on the ... argument. The general idea is to define your function as: myfun - function (named_arguments,...) { # Some code ## now call your function as pairwisePlot(some_named_arguments,...) } You would then call myfun with the ...'s replaced by

Re: [R] nlminb supplying NaN parameters to objective function

2015-05-07 Thread William Dunlap
Your immediate problem may be solved, but the exact value of that limiting value affects the parameter estimates a fair bit. I have not really looked at your function, but the ledge around it puts a kink (discontinuous first derivative) into it, which can mess up optimizers. Bill Dunlap TIBCO

Re: [R] nlminb supplying NaN parameters to objective function

2015-05-07 Thread Jean Marchal
Thanks for the advice! I will continue to monitor the optimizer behaviour. Jean 2015-05-07 17:03 GMT-07:00 William Dunlap wdun...@tibco.com: Your immediate problem may be solved, but the exact value of that limiting value affects the parameter estimates a fair bit. I have not really looked

Re: [R] Calling Function With Arguments In a Script

2015-05-07 Thread Jeff Newmiller
I don't know what your work flow looks like, but I certainly do not equate writing R with functions to passing parameters at the command line. Rather, these seem quite orthogonal to me. I often have one R file of functions, and another R file where I source the first file and keep a record of

Re: [R] nlminb supplying NaN parameters to objective function

2015-05-07 Thread Jean Marchal
Yes, indeed! Problem solved! Thanks a lot! Jean 2015-05-07 14:06 GMT-07:00 William Dunlap wdun...@tibco.com: Your nLL function returns 1e+308 in near-boundary cases. Since 1e+308 is so close to machine infinity, it is easy to get into Inf-Inf (=NaN) or Inf/Inf (=NaN) situations when

Re: [R] How to finding a given length of runs in a series of data?

2015-05-07 Thread Adams, Jean
Two libraries are needed to run the code you submitted ... library(dplyr) library(sqldf) Your IsHigh() function and its use can be replaced by a single line of code isHighFlow - as.numeric(Flow=1600) You are getting the additional hour by using cumsum(). One date element which you seem to

Re: [R] MOnth over Month Variance in %

2015-05-07 Thread Shivi82
Thanks John for the tip. I will use it and see what is the output. Also I will share my analysis on R then you can advice accordingly. -- View this message in context: http://r.789695.n4.nabble.com/MOnth-over-Month-Variance-in-tp4706873p4706923.html Sent from the R help mailing list archive

[R] Identifying matched groups based on a rule

2015-05-07 Thread Ala' Jaouni
Hello, I'm trying to create a table like below for a data set representing one test and indexed by five categories. Categories are grouped into a number of buckets (three in this case: A, B, C) based on the level at which the difference between groups is significant (0.05). Category, Group,

Re: [R] Question about cochran test in R

2015-05-07 Thread Henric Winell
On 2015-05-07 09:15, Jim Lemon wrote: Hi Luis, Try this page: http://www.r-bloggers.com/cochran-q-test-for-k-related-samples-in-r/ Jim Cochran's Q test is a marginal homogeneity test, and such tests can be performed by the 'mh_test' function in the 'coin' package. The following

[R] How does ARules in R decide on LHS and RHS??

2015-05-07 Thread Krishna Kanth
I was trying to study arules in R and got stuck on this doubt: How does arules code decide which column to be in LHS and which in RHS?? [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] package implementing continuous binomial?

2015-05-07 Thread Benjamin Tyner
Thanks David! I'll take a look at zipfR. Regards Ben On 05/07/2015 03:10 PM, David Winsemius wrote: On May 6, 2015, at 7:00 PM, Benjamin Tyner wrote: Hi I'm wondering if anyone is aware of an R package implementing (i.e., providing a pdf, cdf, and/or quantile function) for the continuous

[R] Calling Function With Arguments In a Script

2015-05-07 Thread Rich Shepard
I'm starting to put code in multi-use functions rather than in individual scripts and have not learned how to invoke the function from the command line. If this information is in Norman Matloff's 'The Art of R Programming' or Hadley Wickham's 'Advanced R' please point me to the proper place.

Re: [R] nlminb supplying NaN parameters to objective function

2015-05-07 Thread William Dunlap
Your nLL function returns 1e+308 in near-boundary cases. Since 1e+308 is so close to machine infinity, it is easy to get into Inf-Inf (=NaN) or Inf/Inf (=NaN) situations when working with it. Try making that limiting value something smaller, like 1e+30, and you may have better luck. Bill Dunlap

Re: [R] nlminb supplying NaN parameters to objective function

2015-05-07 Thread Jean Marchal
A follow-up to my yesterday's email. I was able to make a reproducible example. All you will have to do is load the .RData file that you can download here: https://drive.google.com/file/d/0B0DKwRjF11x4dG1uRWhwb1pfQ2s/view?usp=sharing and run this line of code: nlminb(start=sv, objective = nLL,

Re: [R] Getting INDIVIDUAL effects of multiple qualitative variables (ordered and unordered factors)

2015-05-07 Thread Richard M. Heiberger
## I think this is what you are looking for. ## Your download host seems to want to give me software, so I am not taking it. tmp - data.frame(y=rnorm(20), a=factor(rep(letters[1:4], each=5))) tmp.aov - aov(y ~ a, data=tmp) summary(tmp.aov) summary(tmp.aov, split=list(a=list(b=1, c=2, d=3)))

Re: [R] Calling Function With Arguments In a Script

2015-05-07 Thread Rich Shepard
On Thu, 7 May 2015, Bert Gunter wrote: See e.g. Chapter 10.4 in the Intro to R Tutorial on the ... argument. Bert, Thanks. That was going to be my next step. Much appreciated, Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Calling Function With Arguments In a Script

2015-05-07 Thread Rich Shepard
On Thu, 7 May 2015, Clint Bowman wrote: as in source(pairwise-plots-continuous-vars.R) Clint, I did this before converting it to a function, when I modified the variables in the script. Did not try it as a function, should have. Thanks, Rich

Re: [R] Calling Function With Arguments In a Script

2015-05-07 Thread Clint Bowman
?source as in source(pairwise-plots-continuous-vars.R) then plotpairs(first,second,third,wise,title) should get you going Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology

Re: [R] Convert csv to xpt file in R?

2015-05-07 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Santosh Sent: Wednesday, May 06, 2015 8:04 PM To: r-help Subject: [R] Convert csv to xpt file in R? Dear Rxperts.. Was wondering if there is a way in R to read a csv file and generate an XPT

Re: [R] Non UTFB

2015-05-07 Thread peter dalgaard
On 07 May 2015, at 12:58 , khal sal card...@live.ca wrote: I am getting this message after I installed R on MAC What should I do? Consult the R for Mac OS X FAQ, I expect. Specifically Section 7, Internationalization. Notice that we cannot see what your locale settings are, and that your

Re: [R] Not able to submit work assignment4 with submitscript3.R

2015-05-07 Thread Kehl Dániel
Hi there, this is not a Coursera Forum. Please ask your question there or search the Forums, these are quite regular problems there. PS: do you really have a user name and a password in your e-mail? Feladó: R-help [r-help-boun...@r-project.org] ;

[R] Non UTFB

2015-05-07 Thread khal sal
I am getting this message after I installed R on MAC What should I do? During startup - Warning messages: 1: Setting LC_CTYPE failed, using C 2: Setting LC_COLLATE failed, using C 3: Setting LC_TIME failed, using C 4: Setting LC_MESSAGES failed, using C 5: Setting LC_PAPER failed,

Re: [R-es] Resumen de R-help-es, Vol 75, Envío 7

2015-05-07 Thread Francisco Rodriguez Sanchez
Hola Pedro, Rdocumentation recoge ya 7393 paquetes entre CRAN, Bioconductor y GitHub: http://www.rdocumentation.org/. De GitHub hay 260, pero sólo incluyen repos con 3 o más estrellas (o sea que hay muchos más). Hadley Wickham escribió código para estimar el número de repos de R en GitHub,

[R-es] Nueva publicación en blog en r-es.org

2015-05-07 Thread web
Nueva publicación en blog: Cursos, Cursos sobre R y otros en Barcelona, por gricoc en 07/05/15 15:52h Ver el blog en: http://r-es.org/tiki-view_blog_post.php?blogId=4postId=101 Si no desea recibir estas notificaciones siga este enlace: http://r-es.org/tiki-user_watches.php?id=49

Re: [R-es] Resumen de R-help-es, Vol 75, Envío 7

2015-05-07 Thread Carlos Ortega
El detalle sobre la actividad de R en GitHub...: http://blog.revolutionanalytics.com/2015/02/r-among-top-languages-on-github.html http://githut.info/ Saludos, Carlos Ortega www.qualityexcellence.es El 7 de mayo de 2015, 21:40, Francisco Rodriguez Sanchez f.rodriguez.s...@gmail.com escribió: