Re: [R] listserv subscription

2014-02-24 Thread Patrick Connolly
You should have received an email each month with the link for modifying your subscription. If you can't find it, use this one. https://stat.ethz.ch/mailman/options/r-help On Thu, 20-Feb-2014 at 08:45AM -0500, Simone Gill-Alvarez wrote: | To Whom It May Concern: | | I am subscribed to this

[R] Version 1.3.3 of apcluster package (+ Rcpp compatibility issue)

2014-02-24 Thread Ulrich Bodenhofer
Dear colleagues, This is to inform you that Version 1.3.3 of the R package *apcluster* has been released on CRAN last weekend. This update does not add or remove any functionality, its goal is to clear up some dependencies and to adapt to version 0.11.0 of the Rcpp package. Please note that,

[R] boxcox alternative

2014-02-24 Thread Michael Haenlein
Dear all, I am working with a set of variables that are very non-normally distributed. To improve the performance of my model, I'm currently applying a boxcox transformation to them. While this improves things, the performance is still not great. So my question: Are there any alternatives to

Re: [R] boxcox alternative

2014-02-24 Thread ONKELINX, Thierry
Dear Michael. The normality of _covariates_ is seldom relevant. The relevance of normality of the _response variable_ depends on the model assumptions. In case of linear models the only the **residuals** (and not the responses) are assumed to be normally distributed. Transformation of

Re: [R] boxcox alternative

2014-02-24 Thread Max Kuhn
Michael, On Mon, Feb 24, 2014 at 5:51 AM, Michael Haenlein haenl...@escpeurope.eu wrote: Dear all, I am working with a set of variables that are very non-normally distributed. To improve the performance of my model, I'm currently applying a boxcox transformation to them. While this improves

[R] Installing WinBUGS OpenBUGS on OS X 10.8.5

2014-02-24 Thread Agony
Dear all,  Could any body help me how to install OpenBUGS or WinBUGS on my operating system; OS X 10.8.5? Actually, If there are too many way what is the best way? I will be very grateful to receive your guidance and comments. The installation manual could help me in the best way. Bunch of

[R] scatter plot to continuous plot

2014-02-24 Thread azam jaafari
Hello All I want to convert a scatter plot to a continuous contour plot. I have x as a variable and y as another variable. is there any package for this? can anybody halp me? Thanks On Sun, 2/23/14, r-help-requ...@r-project.org

Re: [R] Help creating a panel dataset

2014-02-24 Thread arun
Hi, Try: dat - read.table(text=FIRM   'EBITDA 2012'  'EBITDA 2011'    'ROE 2012'   'ROE 2011' Microsoft    65654 5654 54%    23% Apple 436354   57658    66% 

Re: [R] Installing WinBUGS OpenBUGS on OS X 10.8.5

2014-02-24 Thread JLucke
1. To install and run WBugs or Obugs on OSX you must use Parallels or other Windows emulator. 2. Another possibility is to install JAGS ( http://mcmc-jags.sourceforge.net/) via MacPorts (http://www.macports.org/ ) and use R2JAGS. Agony agony_...@yahoo.com Sent by:

[R] Plotting the effect of a predictor using RMS

2014-02-24 Thread Thomas Speidel
I'm using the RMS package to fit and interpret a Cox-PH model: require(rms) f - cph(S ~ rcs(x1, 3) + x2 + x3, method=efron, x=TRUE, y=TRUE, surv=TRUE, time.inc=12) f1 - summary(f, x1=c(110, 130)) plot(f1, log=TRUE, main='') I would like to display the HR for x1 for

[R] output error in MatchIt

2014-02-24 Thread Marwan Khawaja
Hello, I am trying to estimate average treatment effect in the MatchIt package (current R version on Windows), and ran the model exactly as in the documentation page 13, and got the following error massage, ate.all-c(s.out61$qi$att.ev, -s.out62$qi$att.ev)Error in -s.out62$qi$att.ev : invalid

[R] groupedData in nlme

2014-02-24 Thread Alex Dunn
Dear All, I have a quick question regarding using groupedData in the nlme package. Can I add more than one predictor in the groupedData formula? I can't seem to get this to work and all the examples in Pinheiro and Bates show just one predictor in the groupedData formula. Can I use a more

[R] scatter plot to contour plot

2014-02-24 Thread azam jaafari
Dear All I want to convert a scatter plot to a continuous contour plot. I have x as a variable and y as another variable. is there any package for this? can anybody halp me? Thanks Azam [[alternative HTML version deleted]] __

Re: [R] scatter plot to contour plot

2014-02-24 Thread Duncan Murdoch
On 24/02/2014 12:45 PM, azam jaafari wrote: Dear All I want to convert a scatter plot to a continuous contour plot. I have x as a variable and y as another variable. is there any package for this? can anybody halp me? A contour plot of values associated with the points, or a contour plot of

Re: [R] scatter plot to contour plot

2014-02-24 Thread Clint Bowman
Azam, If you also have z ~ f(x,y) you can produce contours. Otherwise, you could look at package hexbin. Clint Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE:

[R] Count the number of unique days

2014-02-24 Thread bogdan_antonescu
Hi All, I am working on a script to that is producing a lightning density map (numer of lightning flashes per area) based on a data set containing: date(year/month/day), time(hh/mm/ss), latitude, and longitude for each lightning flash. The attaches script is producing this map using a hexagonal

Re: [R] scatter plot to contour plot

2014-02-24 Thread MacQueen, Don
In addition to the other responses, I'd like to suggest: help.search('contour', package='graphics') Since the graphics package comes with R, you don't necessarily need any additional package for contouring. But you will need the akima package for interpolation. Assuming you're doing a contour

[R] Logistic regression and FIML for treating missing values

2014-02-24 Thread Jesse Gervais
Hello there, Is it possible to do a logistic regression with R while 1) using the full-information maximum likelihood (FIML) for treating missing values, and 2) having a complex sample design (Cluster, Weight, Stratum). I looked at Lavaan, but, if I'm correct, it doesn't do FIML when using

Re: [R] Count the number of unique days

2014-02-24 Thread Jeff Newmiller
Certainly it is possible. One way might involve using the unique function based on location and date before attaching the data to your SPDF. --- Jeff NewmillerThe . . Go Live...

[R] simulation of Hierarchical design

2014-02-24 Thread farnoosh sheikhi
Hi, I want to simulate a data set with following condition: There are 6 states with 12 schools. Each two schools are coming from one states. For example school one and two from state A, school 3 and 4 from state B and etc. Each school has 10 unique instructors with random number of students

[R] Discrepant lm() and survreg() standard errors with weighted fits

2014-02-24 Thread Kyle Penner
Hi, I have some measurements and their uncertainties. I'm using an uncensored subset of the data for a weighted fit (for now---I'll do a fit to the full, censored, dataset when I understand the results). survreg() reports a much smaller standard error for the model parameter than lm(), but only

Re: [R] shapiro.test

2014-02-24 Thread Greg Snow
Philippe, replies inline On Sat, Feb 22, 2014 at 12:29 AM, Philippe Grosjean phgrosj...@sciviews.org wrote: Greg, I really like that TeachingDemos::SnowsPenultimateNormalityTest()... If you like that function then you may appreciate

Re: [R] simulation of Hierarchical design

2014-02-24 Thread Greg Snow
So can the same student be associated with multiple instructors? only within the same school? or more general? by repeated student ID's do you mean that a student in school A and a student in school B can both have ID 1, but they are different students? or do you mean that instructor #1 and

Re: [R] shapiro.test

2014-02-24 Thread Clint Bowman
Greg, For some authors the 4th page from the back should be the first page. Not so for you, however. Clint Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360)

[R] Problem getting the chron package

2014-02-24 Thread David Parkhurst
I'm trying to get the chron package into my system (in Windows 7) Using the packages menu, I chose MI chigan chooseCRANmirror() utils:::menuInstallPkgs() Then I went to install packages, and clicked on chron from the box that came up. A window popped up and asked Would you like to use a

Re: [R] Problem getting the chron package

2014-02-24 Thread Jeff Newmiller
Don't say no. It is necessary to run R as Administrator in order to install packages into the Program Files directory, but running R as Administrator leads to other problems. The solution is to say yes when it asks if you want to install in a local library. R will always look first in that

Re: [R] Problem getting the chron package

2014-02-24 Thread David Parkhurst
Thanks to Jeff, I seem to have the chron package in my computer now, but how do I get R to use it? : package ‘chron’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\DFP\AppData\Local\Temp\RtmpYLbpgo\downloaded_packages days(Date[1]) Error: could not

Re: [R] Problem getting the chron package

2014-02-24 Thread Sarah Goslee
library(chron) just as for any other package. Sarah On Mon, Feb 24, 2014 at 9:18 PM, David Parkhurst parkh...@imap.iu.edu wrote: Thanks to Jeff, I seem to have the chron package in my computer now, but how do I get R to use it? : package 'chron' successfully unpacked and MD5 sums checked

[R] (no subject)

2014-02-24 Thread dila radi
Hi all, I have a data set in this form: Year: 2012 Day Jan Feb Mar Apr 1 0 2.5 0.5 2 2 0 6.5 0 29 3 0 9.5 0 0 4 0 0 8 0.5 5 0 5 0.5 110.5 6 0 4 3.5 22 7 11 0 12.5 3.5 8 0 5 8 36.5 I want to rearrange the data in this form: DateAmount 1/1/2012 0 2/1/2012

Re: [R] Problem connecting to database via RPostgreSQL/RS-DBI: could not connect error

2014-02-24 Thread Paul Gilbert
A post with subject Basic R to SQL considerations has been put on R-sig-DB to address some of the basic questions here. The R-sig-DB thread is not specific to RPostgreSQL. I have learned enough since this posting to be aware that my question was based on assumptions so false to fact that

Re: [R] plot polar coordinates

2014-02-24 Thread avaneesh
Hi, How do we limit the Theta range plotted? In the current format, R plots the whole 2Pi range, however I want a plot between 0 and pi/2. I do not see any parameter in polar.plot to do the same, am I missing something very obvious? Regards, Avaneesh T -- View this message in context:

Re: [R] Polar coordinate

2014-02-24 Thread avaneesh
Hi, I have another requirement to the above polar.plot problem. I would like a plot from Theta=0 to 90 only and not extend through the whole 2pi range. How can I limit the theta range? Regards, Avaneesh T -- View this message in context:

Re: [R] (no subject)

2014-02-24 Thread arun
Hi, Try: Assuming your dataset looks like below (please use ?dput) dat - read.table(text=Day Jan Feb Mar Apr   1 0 2.5 0.5 2   2 0 6.5 0 29   3 0 9.5 0 0   4 0 0 8 0.5   5 0 5 0.5 110.5   6 0 4 3.5 22   7 11 0 12.5 3.5   8 0 5 8 36.5,sep=,header=TRUE) library(reshape2) res -

[R] fitting a time series into a GARCH model using fGarch

2014-02-24 Thread Charles Thuo
I have been trying to fit a time series object using the garchFit() function. However am getting the results below class(v.ts) [1] ts fit=garchFit(v.ts) Error in if (allVarsTest != 1) { : missing value where TRUE/FALSE needed I do not understand the error. Which missing value is required.