Re: [R] R 3.2.3 on Win8; mkdir command produces error

2016-02-14 Thread Ista Zahn
This mailing list is not meant for homework help, you should ask your instructor to clarify the assignment. Best, Ista On Feb 14, 2016 9:24 PM, "HEATHER MICHEL via R-help" wrote: > > As a follow-up to my request for help this morning, I have watched tutorials on R all afternoon. Many topics come

Re: [R] R 3.2.3 on Win8; mkdir command produces error

2016-02-14 Thread HEATHER MICHEL via R-help
As a follow-up to my request for help this morning, I have watched tutorials on R all afternoon. Many topics come close to my problem, but none specifically address my situation where "specdata" is not a text file but a list of small files in a folder.I found a command that should be more right

Re: [R] R 3.2.3 on Win8; mkdir command produces error

2016-02-14 Thread Boris Steipe
Also ... it doesn't make sense to create a directory that already exists in the first place. Are you perhaps thinking about setting the working directory to "specdata"? That would be the setwd() command. B. On Feb 14, 2016, at 6:52 PM, Duncan Murdoch wrote: > On 14/02/2016 2:40 PM, HEATHER M

[R] cut-off point to separate overlapping distributions

2016-02-14 Thread Luigi Marongiu
dear all, I have a set of data that can be defined as bimodal; would be possible to define a cut-off to split it? my mathematical/statistical knowledge is limited, my apologies, thus i am not sure what kind of area this problem belongs to; at the moment I can fit -- thanks to previous help from the

Re: [R] R 3.2.3 on Win8; mkdir command produces error

2016-02-14 Thread Duncan Murdoch
On 14/02/2016 2:40 PM, HEATHER MICHEL via R-help wrote: I am trying to complete a homework assignment, but I know very little about R.The assignment says, "For this programming assignment you will need to unzip this file and create the directory 'specdata".I unzipped the file on my desktop, and

Re: [R] Estimating Mean of a Poisson Distribution Based on Interval censoring

2016-02-14 Thread mohsen hs
Hi John and Peter, Thanks for your reply. I found that fitdistcens, is a good approach. I did that for lognormal, exp ,and other distributions. Values for lnorm from SAS and R were close, but slightly different. At the moment, my main concern is finding the estimated lambda value for poisson for

[R] R 3.2.3 on Win8; mkdir command produces error

2016-02-14 Thread HEATHER MICHEL via R-help
I am trying to complete a homework assignment, but I know very little about R.The assignment says, "For this programming assignment you will need to unzip this file and create the directory 'specdata".I unzipped the file on my desktop, and my computer automatically created a new folder which I r

[R] How to run a hierarchical bayes model using runiregGibbs

2016-02-14 Thread lululu
I want to run a hierarchical Bayes regression model using this runiregGibbs function. My data is like the following: y userid Proximity TimeKnowledge Test Purchase Service1 8 1 422 132 7 1 222 2

Re: [R] Error on Text Mining for WordCloud

2016-02-14 Thread S Ellison
No specific experience of the package you are using, but you have > as.character(nwCorp1) This does nothing to nwCorp1; it just returns a character version of it to the console. If it was not the right kind of object you can expect later commands to throw errors. Perhaps you meant nwCorp1 <- a

Re: [R] NaNs produced as a returned value for a function

2016-02-14 Thread William Dunlap via R-help
You can do things like while ( !is.nan( r <- randomFunction(x) )) {} # r will be a non-NaN value of randomFunction(x) now or for(i in seq_len(1000)) { if (!is.nan( r <- randomFunction(x))) { break } if (i == 1000) { stop("no good values of randomFuncti

[R] NaNs produced as a returned value for a function

2016-02-14 Thread Maram SAlem
Hi all, I'm trying to write 2 functions(as a part of a larger code) to evaluate a certain equation. The function is : X= c (0.3893094 2.0962311 2.6007558 3.0761810 3.3246947 3.3917976 4.1981546 6.8826140 12.3128013 15.5588470) R=c (0 1 0 0 0 1 1 1 0 1) alpha.update=function(X, R, alpha.c

Re: [R] Estimating Mean of a Poisson Distribution Based on Interval censoring

2016-02-14 Thread John Kane
Thank you, kind sir, you are correct but I was too rushed to write more as the bread needed to be taken out of the oven. John Kane Kingston ON Canada > -Original Message- > From: pda...@gmail.com > Sent: Sun, 14 Feb 2016 15:37:22 +0100 > To: jrkrid...@inbox.com > Subject: Re: [R] Esti

Re: [R] Estimating Mean of a Poisson Distribution Based on Interval censoring

2016-02-14 Thread peter dalgaard
Fortune candidate :-) However, the more scientific approach would be to ask for evidence to be scrutinized, acknowledging that R might be fallible, however unlikely that may seem. Also, there is always the possibility that there are two answers because the question is not the same. -pd > On

Re: [R] Estimating Mean of a Poisson Distribution Based on Interval censoring

2016-02-14 Thread John Kane
> By the way, is there anything for lognormal?I think fitdistcens is not > good for this purpose as it gives me different result compared to SAS The general assumption is that if Excel or any other spreadsheet gives a result that is different from R then R will be correct. Generally with SAS it