Re: [R] Converting CSV file to numeric and calculate ttest

2015-09-04 Thread PIKAL Petr
Hi Well, you want us to help you but you do not provide any relevant information This is a result of first line of your code on my computer > FCPval <- read.csv("C:/Users/shawin/Desktop/RProgramms/RAdipose/FCPval.csv") Error in file(file, "rt") : cannot open the connection In addition: Warning

[R] simulation in vector autoregressive model (VAR)

2015-09-04 Thread Aziz Mensah via R-help
I have a data from 4 variables ( STOCK, CPI, EXC, and CCI) from 1980 to 2012. I want to do a forecast using VAR(12) model with a simulation of 100,000 for 5 years. And also estimate the RMSE, MAPE, and Theil Inequality. Can anyone help me with this problem in R? Thanks so much. 

[R] Plotting a fourth variable on a persp plot

2015-09-04 Thread Chelsea Edwards
Hi all, I'm trying to plot colour as a fourth variable onto a persp plot to highlight the multiple modes in my dataset. A plot with 3 variables (frequency, time and depth) has been created using the code below: require(MASS) require(graphics) require(plot3D) require(pdfCluster) ## density

Re: [R] lsqlin in R package pracma

2015-09-04 Thread Hans W Borchers
On Tue, Sep 1, 2015 at 11:24 PM, Wang, Xue, Ph.D. wrote: > > slsqp in R seems quite slow. Does anyone have some suggestion as how to speed > up this? > It is no surprise that a general solver like slsqp() takes longer than specialized quadratic solvers such as solve.QP,

Re: [R] Unable to run RcmdrPlugin.survival using 3.2.2 with Windows 10

2015-09-04 Thread Jeff Newmiller
This is a major point... do not make the mistake that you can "get by" using MSWord as a text editor because it actively changes your code in ways that make sense in a word processor but change code in ways that corrupt it.

[R] Gamma count

2015-09-04 Thread callyak4real via R-help
I intend to simulate data from gamma distribution. I plan rounding the observations into counts. What I want to know is how I will manipulate the parameters of gamma to have both over and under dispersed count scenarios. [[alternative HTML version deleted]]

Re: [R] Unable to run RcmdrPlugin.survival using 3.2.2 with Windows 10

2015-09-04 Thread jwd
On Fri, 4 Sep 2015 21:07:19 +1000 "Joyaa Antares" wrote: > Dear John, > > Very many thanks. Your hypothesis was completely correct - I did > save the workspace, and this is what created the problem. As a > newbie, being part way through an "exercise", saving

Re: [R] groups Rank

2015-09-04 Thread Sarah Goslee
Hi Ragia, I can't make out your data or desired result, but it sounds like aggregate() might get you started. If you need more help, please repost your data using dput() and do NOT post in HTML so that we can see what your desired result looks like. Sarah On Fri, Sep 4, 2015 at 10:12 AM, Ragia

[R] groups Rank

2015-09-04 Thread Ragia Ibrahim
Dear Group,kinldy, I have the following data frame df id value1 1 4 2 1 4 3 1 6 4 1 6 5 2 1.5 6 2 2.5 7 2 2.5 8 2 2.5 add rank column regarding id coulmn where rank for the highest

Re: [R] Unable to run RcmdrPlugin.survival using 3.2.2 with Windows 10

2015-09-04 Thread Joyaa Antares
Dear John, Very many thanks. Your hypothesis was completely correct - I did save the workspace, and this is what created the problem. As a newbie, being part way through an "exercise", saving my workspace intuitively seemed the right thing to do. Clearly not!So now, before I closed R

Re: [R] Visualization of people's interactions by participation to parties

2015-09-04 Thread Adams, Jean
Hendrik, It's not clear to me what kind of R help you are looking for. I suggest you provide more information on the data that you have and the questions that you want answered. Is it in an external file? Is it an R object? What code have you written or tried? Including example data, for

Re: [R] Visualization of people's interactions by participation to parties

2015-09-04 Thread Clint Bowman
Hendrik, As a start, I'd make a matrix of zeros with the parties in rows and all of the participants as columns and put a one for each participant at each party. The matrix will consist of a vector for each participant showing the parties attended. The pattern may suggest the next step.

[R-es] Añadir escala a un mapa

2015-09-04 Thread Marcos Bermejo
Hola a tod@s, Este es el c�digo principal que utilizo para dise�ar mi zona de estudio (cuenca): png("mapa_zona_estudio.png", units="in", width=9, height=8.5, res=300) # Vamos a pintar los distintos instrumentos de medida sobre el mapa (junto con �ste) y a�adimos leyenda ggmap(mapa,

Re: [R] simulation in vector autoregressive model (VAR)

2015-09-04 Thread David Winsemius
Before you post on Rhelp you should first read the Posting Guide. It tells you that requests for statistical advice might be answered but are not really on-topic. Furthermore requests for tutorials or extended worked examples should probably be accompanied by evidence of searching using Google

[R] getting a vector of unown size

2015-09-04 Thread Marcelo Kittlein
Hi all! I have written some code in C for simulating the fate of population using a dll loaded in R. During this simulation the population may go extinct such that the length of its trajectory is unknown beforehand. I wonder there is a way to define the size of the result in C and make it

Re: [R] getting a vector of unown size

2015-09-04 Thread Jeff Newmiller
If you had read the Posting Guide as every posting admonishes you in the footer, you would know that this question about C belongs on R-devel, not R-help. I think a lot of C questions are addressed in the Writing R Extensions document also, so be sure to convey how the documentation failed to

[R] Manova: Data similarly generated are significantly different.

2015-09-04 Thread Roger Xu
Dear R users, Hi. I don't know if my understanding of Manova test is correct. So I test with the following code and got strange results. Any help would be appreciated. y0, y1, and y2 are independently generated by the same method. They are each split into 20 groups by the same method. The

[R] Composite index reliability questions - cronbach()

2015-09-04 Thread Nick Petschek
Hi All, I have two questions on using cronbach() from the psy() package. My simplified situation is the following: I have a survey of 10 questions (column names are "Q1", "Q2", etc.) that went out to 100+ people. I have the responses to the questions, plus additional variables (demographics,

Re: [R] Manova: Data similarly generated are significantly different.

2015-09-04 Thread Duncan Murdoch
On 04/09/2015 5:18 PM, Roger Xu wrote: > y0 <- runif(100, 0, 1) > y1 <- runif(100, 0, 1) > y2 <- runif(100, 0, 1) > > y0 <- c(y0, runif(100, 0, 10) ) > y1 <- c(y1, runif(100, 0, 10) ) > y2 <- c(y2, runif(100, 0, 10) ) > > y0=as.numeric(unlist(y0)) > y1=as.numeric(unlist(y1)) >

Re: [R] Unable to run RcmdrPlugin.survival using 3.2.2 with Windows 10

2015-09-04 Thread Fox, John
Dear Joyaa, > -Original Message- > From: Joyaa Antares [mailto:jo...@goldcoastosteopathy.com.au] > Sent: Friday, September 4, 2015 7:07 AM > To: Fox, John > Cc: r-help@r-project.org > Subject: Re: [R] Unable to run RcmdrPlugin.survival using 3.2.2 with > Windows 10 > > Dear John, > >

Re: [R] Gamma count

2015-09-04 Thread Dan D
Pick the mean (mu) and variance (sig2) you want. Then, shape = mu^2/sig2 and scale = sig2/mu. This should work fine if your mean is large enough so that p(x = 0 or 1) is small. -- View this message in context: http://r.789695.n4.nabble.com/Gamma-count-tp4711845p4711853.html Sent from the R

Re: [R] Urgent query

2015-09-04 Thread peter dalgaard
> On 03 Sep 2015, at 19:34 , Bert Gunter wrote: > > You still failed to post to the list! Please learn how to use your > mail client properly and **always** cc the list. > > Anyway, here is an answer (there may be other ways): > >>

Re: [R] Urgent query

2015-09-04 Thread Bert Gunter
Yup. Me too. Much better. -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Sep 4, 2015 at 2:57 PM, peter dalgaard wrote: > >> On 03 Sep 2015, at 19:34 , Bert Gunter