[R] probability of occurrence of an event and the probability of an event upon the occurrence of another event

2013-09-06 Thread Francesco Miranda
how can i calculate the probability of occurrence of an event and the probability of an event upon the occurrence of another event. P (A) and P (A | B) .. [[alternative HTML version deleted]] __

Re: [R] probability of occurrence of an event and the probabilityof anevent upon the occurrence of another event

2013-09-06 Thread Gerrit Eichner
Hello, Francesco, these could be considered as two of the central questions in statistics in general ... but they do not necessarily have anything to do with R. Regards -- Gerrit On Fri, 6 Sep 2013, Francesco Miranda wrote: how can i calculate the probability of occurrence of an event and

Re: [R] read.dta()

2013-09-06 Thread Carlos Valenzuela
It should work. I've used it several times with 3.01 in Linux. Just make sure you load the library: library(foreign) day-read.dta(filelocation/abc.dta) Carlos On Thursday, September 5, 2013, Debasish Roy wrote: I've been using R 3.0.1 version. I tried to read a file named abc.dta() I used

Re: [R] probability of occurrence of an event and the probabilityof anevent upon the occurrence of another event

2013-09-06 Thread peter dalgaard
On Sep 6, 2013, at 12:34 , Gerrit Eichner wrote: Hello, Francesco, these could be considered as two of the central questions in statistics in general ... but they do not necessarily have anything to do with R. Regards -- Gerrit Yes. However, since it is Friday and my brain is fried

Re: [R] xyplot() with discontinuous x-axis variable

2013-09-06 Thread S Ellison
My xyplot() with superposed multiple condiions looks better with lines than with points (it's easier to see changes over time with the lines). But, there are gaps in the years (the x axis) for which there are data to be plotted. For example, there are data for years 2004-2006 and

Re: [R] plot densities outside axis

2013-09-06 Thread Dustin Fife
That's perfect. Thanks! On Fri, Sep 6, 2013 at 12:45 AM, Pascal Oettli kri...@ymail.com wrote: Hello, Using a web search engine, I found, for example: http://www.unt.edu/benchmarks/archives/2003/february03/rss.htm http://sas-and-r.blogspot.jp/2012_09_01_archive.html Hope this helps,

[R] calculate the probability

2013-09-06 Thread Francesco Miranda
How to calculate the probability P (xt q | yt q) where xt and yt are two time series and q is a conditional quantile. thankFrancesco Miranda [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] calculate the probability

2013-09-06 Thread Marc Schwartz
On Sep 6, 2013, at 9:36 AM, Francesco Miranda kicco1...@hotmail.it wrote: How to calculate the probability P (xt q | yt q) where xt and yt are two time series and q is a conditional quantile. thankFrancesco Miranda You were told previously,

Re: [R] Y-axis labels as decimal numbers

2013-09-06 Thread jim holtman
Does this modification work for you: par(mar=c(10,4,4,2)) plot(set1$duration,set1$duration.1,type=b,col = blue, ylab=, xaxt = 'n', xlab=,las=2,lwd=2.5, lty=1,cex.axis=2.5) # now plot you times axis(1 , at = set1$duration , labels = format(set1$duration, format = %H:%M) , las = 2

[R] error with RNetLogo on a mac

2013-09-06 Thread Ricardo Pietrobon
gist with code and respective errors: http://goo.gl/r6VrHl would appreciate any input on how to get around the java vm problem. btw, the very idea of connecting R and netlogo is superb copying Jan in case he might have some input many thanks __

[R] melt error that I don't understand.

2013-09-06 Thread Nutter, Benjamin
I'm stumped. I have a dataset I want to melt to create a temporal sequence of events for each subject, but in each row, I would like to retain the baseline characteristics. D - structure(list(ID = c(A, B, C, D, E, F, G, H, I, J), AGE = structure(c(68L, 63L, 55L, 64L, 60L,

Re: [R] Impute missing data by regression in R

2013-09-06 Thread gaofield
i dont think it works. is there any function in any package? -- View this message in context: http://r.789695.n4.nabble.com/Impute-missing-data-by-regression-in-R-tp2996520p4675516.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Fwd:

2013-09-06 Thread Berend Hasselman
On 06-09-2013, at 19:32, Waqas Shafqat waqas1...@gmail.com wrote: -- Forwarded message -- From: Waqas Shafqat waqas1...@gmail.com Date: Fri, Sep 6, 2013 at 10:31 PM Subject: To: rosy...@msu.edu sorry sir i have istalled plantbreeding libraray..but when i give

Re: [R] how to define ordinal, nominal and scale type variables?

2013-09-06 Thread Duncan Murdoch
On 06/09/2013 5:29 AM, Markus Gschwind wrote: Hello, I am a beginner of R but knowing SPSS and matlab. I need to analyse my data with a mixed type cluster analysis, that's why I am looking into R. I have a datasheet with 45 subjects (rows) and 30 variables of each subjet (columns) in Excel

Re: [R] melt error that I don't understand.

2013-09-06 Thread Ista Zahn
Hi Benjamin, This looks like a bug, whereby melt fails when numeric id.vars have attributes. Consider: D - structure(list(ID = c(A, B, C, D, E, F, G, H, I, J), AGE = structure(c(68L, 63L, 55L, 64L, 60L, 78L, 60L, 62L, 60L, 75L), label =

Re: [R] Fwd:

2013-09-06 Thread John Clark
It looks like all of your problem are associated with failing to installing dependencies of the plantbreeding package. install.packages(qtl) install.packages(ggplot2) install.packages (onemap) install.packages(grid) install.packages (agricolae) install.packages (reshape) install.packages (lme4)

Re: [R] Fwd: calculating dissimilarity index of islands (vegan and betapart)

2013-09-06 Thread Bert Gunter
Elaine: You would do better posting this on the R-sig-ecology list, I believe. THE r-help list is mostly for general R programming questions, while the ecology list readers will have expertise more closely related to your specific issues. Cheers, Bert On Fri, Sep 6, 2013 at 3:25 PM, Elaine

Re: [R] using correlation compound correlation structure with nlme; how to incorporate multple random effects?

2013-09-06 Thread Bert Gunter
You would do better to post this on the R-sig-mixed-models or R-sig-ecology list. Cheers, Bert On Fri, Sep 6, 2013 at 9:57 AM, Meredith, Christy S -FS csmered...@fs.fed.us wrote: Hello, I have developed this model to test change in PTFines6 over time. I have random effects of watershed

Re: [R] While using R CMD check: LaTex error: File `inconsolata.sty' not found

2013-09-06 Thread Jixiang Wu
I have been struggling to try many ways with old version of R tools, MikTex, and R versions including R-patached and R-devel, os version (windows 7 and 8), but no luck to pass R CMD check at all. It seems that the missing inconsolata.sty is a key issue to bother so many R users, especially for

Re: [R] Looping an lapply linear regression function

2013-09-06 Thread arun
HI, Using the example dataset (Test_data.csv): dat1- read.csv(Test_data.csv,header=TRUE,sep=\t,row.names=1) indx2-expand.grid(names(dat1),names(dat1),stringsAsFactors=FALSE) indx2New- indx2[indx2[,1]!=indx2[,2],] res2-t(sapply(seq_len(nrow(indx2New)),function(i) {x1- indx2New[i,];

Re: [R] Assessing temporal correlation in GAM with irregular time steps

2013-09-06 Thread Worthington, Thomas A
Dear Gavin I got the code to work by setting the 'bar' to DOY as this was the measured time step. I stumbled across another problem, on some days I have multiple measurements which isn't allowed in corCAR1, therefore I've had to take the average of the replicates as suggested in another R

Re: [R] binary symmetric matrix combination

2013-09-06 Thread arun
HI, No problem.  Suppose you have many matrices and you want to sum up the repeated variables, may be this helps: #Creating one more matrix which has some repeated variables. m6- as.matrix(read.table(text=y1 e5 s2  y1 0 1 1  e5 1 0 1  s2 1 1 0,sep=,header=TRUE)) #m1:m5 same as previous

[R] using correlation compound correlation structure with nlme; how to incorporate multple random effects?

2013-09-06 Thread Meredith, Christy S -FS
Hello, I have developed this model to test change in PTFines6 over time. I have random effects of watershed (HUC3) and management type (mgmt3), and then I have the YrC/SiteID random effect which is the longitudinal time effect. But I recently found out that I need to incorporate a compound

Re: [R] Combining rasters

2013-09-06 Thread Barry Rowlingson
[Probably an R-Sig-geo question...] On Fri, Sep 6, 2013 at 3:57 PM, philippe massicotte pmassico...@hotmail.com wrote: Hi everyone. I would like to know if it is possible to combine rasters in R to form a collage. For example, I would like to place 2 copies of the R logo side by side.

[R] Combining rasters

2013-09-06 Thread philippe massicotte
Hi everyone. I would like to know if it is possible to combine rasters in R to form a collage. For example, I would like to place 2 copies of the R logo side by side. r = raster(system.file(external/rlogo.grd, package = raster)) After reading the help file (maybe I missed it) I did not

[R] How do I parse text?

2013-09-06 Thread Robertson, Henry T.
I have a data frame with a character field of the form ACUTE URI NOS, OPEN WOUND OF FOREHEAD, CROUP, STREP SORE THROAT, How can I get counts of all the words and their co-occurences? I've spent a long time searching on google, but it just takes me on a wild goose chase of dozens of

[R] How do I parse text?

2013-09-06 Thread Robertson, Henry T.
I have a data frame with a character field of the form ACUTE URI NOS, OPEN WOUND OF FOREHEAD, CROUP, STREP SORE THROAT, How can I get counts of all the words and their co-occurences? I've spent a long time searching on google, but it just takes me on a wild goose chase of dozens of

[R] Alignment of data sets

2013-09-06 Thread Mostafavipak, Nasrin
Hi all; I have a data set with the format below: Year, Day, Hour, Value 2010, 001,0,15.9 2010, 001,1,7.3 2010, 001,2,5.2 2010, 001,3,8.0 2010, 001,4,0.0 2010, 001,5,12.1 2010, 001,6,11.6 2010, 001,7,13.9 2010, 001,8,

[R] Java exception error (Jcheck) while running an R script

2013-09-06 Thread Panagiotis Isigonis
Dear all, I am facing a problem with running a script that i have written in R and i hope you can help me spot which exactly is the problem and how i can solve it. The error I get is the following: Error in .jcheck(silent = FALSE) : Java Exception no description because toString()

Re: [R] How do I parse text?

2013-09-06 Thread Tyler Rinker
Henry, Have look at the qdap package's termco, wfm, adjacency_matrix, and (possibly) word_associate functions.  I'm not sure if they'll work as you really don't give much in the way of what the data is and the desired output (an example of the output). Cheers, Tyler Rinker  

Re: [R] Alignment of data sets

2013-09-06 Thread arun
HI, The question is not clear. Lines1- readLines(textConnection(Year, Day, Hour, Value 2010,  001,    0,    15.9 2010,  001,    1,    7.3 2010,  001,    2,    5.2 2010,  001,    3,    8.0 2010,  001,    4,    0.0 2010,  001,    5,    12.1 2010,  001,    6,    11.6 2010,  001,    7,    13.9 2010,