[R] MCMCglmm to fit dependent variable [0,1]

2013-03-30 Thread Markian Pahuta
Hi Everyone, my outcome is a number between 0 and 1. I have a fair number of 0s and 1s. I would like to fit a model using 5 binary predictors. I have 6 repeated measurements from each respondent, each with a different set of covariates. I've done a logit transform on my outcome. I've subtracted a

Re: [R] [Rd] R/Sweave/cairo/freetype bug fix.

2013-03-30 Thread Hin-Tak Leung
"... was committed to freetype in January and will form the next release (2.4.12)". -- On Sat, Mar 30, 2013 18:54 GMT Simon Urbanek wrote: >On Mar 30, 2013, at 9:24 AM, Hin-Tak Leung wrote: > >> Perhaps that's too much details. There is (will be) a new freetype be

[R] special character encoding problem

2013-03-30 Thread Huidong TIAN
Hi, I have a question about special character: when I create a data frame including some special characters, like 'ø', it displayed as ''. I understand that it's one encoding code for 'ø'. but I want to display the letter as 'ø' on my screen. And more, when I save the data frame to a local pos

Re: [R] Rgl

2013-03-30 Thread Duncan Murdoch
On 13-03-30 3:27 PM, Benjamin Caldwell wrote: Dear r users, I have two kinds of data I'm trying to represent in Rgl. The first are measurements of soils: heights, diameters, and centerpoints of each. I would typically represent these in 3d space as cylinders or cones. The second are radar data o

[R] Rgl

2013-03-30 Thread Benjamin Caldwell
Dear r users, I have two kinds of data I'm trying to represent in Rgl. The first are measurements of soils: heights, diameters, and centerpoints of each. I would typically represent these in 3d space as cylinders or cones. The second are radar data of the area under the solids , xyz plus amplitude

Re: [R] how to draw the math graph?

2013-03-30 Thread David Winsemius
On Mar 30, 2013, at 1:08 AM, 水静流深 wrote: > how can i draw the graph in R?__ I'm guessing you attached a graphic or other file in some format other than .png or .pdf and that it was stripped by the mail-server that only accepts text format or a very l

Re: [R] [Rd] R/Sweave/cairo/freetype bug fix.

2013-03-30 Thread Simon Urbanek
On Mar 30, 2013, at 9:24 AM, Hin-Tak Leung wrote: > Perhaps that's too much details. There is (will be) a new freetype because of > cairo's unanticipated usage (which R uses, among other cairo users). Most > people should upgrade or request an upgrade eventually, when they are > comfortable. >

Re: [R] how to draw the math graph?

2013-03-30 Thread Marc Girondot
Le 30/03/13 09:08, 水静流深 a écrit : how can i draw the graph in R? Can you ask a more precise question and show that you have tried to do something before asking such a general question: How the world has been created... Sincerely Marc Girondot --

Re: [R] normal mixture EM not working?

2013-03-30 Thread David Winsemius
Dear Stat Tistician; Have you looked at the original distribution graphically? When I use densityplot on that data I am unable to discern even a hint of two separate peaks. Furthermore the density looks peaked versus what I would expect from a "true" normal distribution with those empiric param

Re: [R] how to draw the math graph?

2013-03-30 Thread John Kane
> -Original Message- > From: 1248283...@qq.com > Sent: Sat, 30 Mar 2013 16:08:07 +0800 > To: r-help@r-project.org > Subject: [R] how to draw the math graph? > > how can i draw the graph in R? Many ways. What graph? http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-repr

[R] vcovHC and arima() output

2013-03-30 Thread N. Janz
Dear all, how can I use vcovHC() to get robust/corrected standard errors from an arima() output? I ran an arima model with AR(1) and got the estimate, se, zvalue and p-value using coeftest(arima.output). However, I cannot use vcovHC(arima.output) to get corrected standard errors. It

[R] how to draw the math graph?

2013-03-30 Thread ????????
how can i draw the graph in R?__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] [Rd] R/Sweave/cairo/freetype bug fix.

2013-03-30 Thread Hin-Tak Leung
Perhaps that's too much details. There is (will be) a new freetype because of cairo's unanticipated usage (which R uses, among other cairo users). Most people should upgrade or request an upgrade eventually, when they are comfortable. --- On Sat, 30/3/13, peter dalgaard wrote: > Huh? > > Thi

[R] ~3/30/2013 3:09:18 PM~

2013-03-30 Thread Gregory Gentlemen
http://www.rideonthewaves.com/gtbzkeql/yi.mceeu?pihsc Gregory Gentlemen [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting g

[R] .::Gregory Gentlemen::.

2013-03-30 Thread Gregory Gentlemen
http://www.rumipambadelzuro.com/waqztn/hyd.cn?gdqk Gregory Gentlemen [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guid

Re: [R] From a vector with characters to binary information

2013-03-30 Thread arun
Hi,  1*is.na(match(scm,c("keine"," "))) # [1] 0 0 0 1 1 1 1 0 0 1 1 0 0 0 0 0 1 0 0 1 #or  1*(!scm%in%c("keine"," "))  #[1] 0 0 0 1 1 1 1 0 0 1 1 0 0 0 0 0 1 0 0 1 A.K. - Original Message - From: Hermann Norpois To: r-help@r-project.org Cc: Sent: Friday, March 29, 2013 3:01 PM Subject:

Re: [R] [Rd] R/Sweave/cairo/freetype bug fix.

2013-03-30 Thread peter dalgaard
Huh? This is utterly incomprehensible without reading the redhat bugzilla, and even after reading, I'm not sure what the issue is. Something with bold Chinese fonts in X11, but maybe also affecting Latin fonts, ? Please explain yourself. -pd On Mar 30, 2013, at 09:25 , Hin-Tak Leung wrote

[R] normal mixture EM not working?

2013-03-30 Thread Stat Tistician
Hi, I am currently working on fitting a mixture density to financial data. I have the following data: http://s000.tinyupload.com/?file_id=00083355432555420222 I want to fit a mixture density of two normal distributions. I have the formula: f(l)=πϕ(l;μ1,σ21)+(1−π)ϕ(l;μ2,σ22) my R code

[R] R/Sweave/cairo/freetype bug fix.

2013-03-30 Thread Hin-Tak Leung
The problem was first seen with R/Sweave (#c0) then reproduced directly with cairo (#c10) and was eventually traced to freetype. The 5-part bug fix: 610ee58e07090ead529849b2a454bb6c503b4995 da11e5e7647b668dee46fd0418ea5ecbc33ae3b2 e1a2ac1900f2f16ec48fb4840a6b7965a8373c2b 869fb8c49ddf292d6daf482617

Re: [R] Dataframe manipulation

2013-03-30 Thread englishfellow
Fantastic, thanks alot for that! Take care. Adam. Date: Sat, 30 Mar 2013 01:14:49 -0700 From: ml-node+s789695n466289...@n4.nabble.com To: english.fel...@hotmail.com Subject: Re: Dataframe manipulation Hi Adam, I hope this is what you wanted: dat1<- read.csv("example.csv",sep="\t",s

[R] Oversampling in R

2013-03-30 Thread Nicolás Sánchez
Hello! I have a doubt about Data Mining, perhaps this message would have to be commented in a data-mining forum I am with a classification problem. I have 4 classes: g0,g1,g2,g3. These are my factors. The question is : Is it possible to apply oversampling in a problem with more than 2 classes ?

Re: [R] From a vector with characters to binary information

2013-03-30 Thread Berend Hasselman
On 29-03-2013, at 20:01, Hermann Norpois wrote: > Hello, > > I would like to transform a character vector into a "binary" vector > ("keine" and " " become 0 and the rest 1). > >> dput (scm) > c("keine", " ", "keine", "Erstgradverw.", "Mutter", "Erstgradverw.", > "Erstgradverw.", "keine", " ",

Re: [R] From a vector with characters to binary information

2013-03-30 Thread Berend Hasselman
On 29-03-2013, at 20:01, Hermann Norpois wrote: > Hello, > > I would like to transform a character vector into a "binary" vector > ("keine" and " " become 0 and the rest 1). > >> dput (scm) > c("keine", " ", "keine", "Erstgradverw.", "Mutter", "Erstgradverw.", > "Erstgradverw.", "keine", " ",

Re: [R] Dataframe manipulation

2013-03-30 Thread arun
Hi Adam, I hope this is what you wanted: dat1<- read.csv("example.csv",sep="\t",stringsAsFactors=FALSE)  str(dat1) #'data.frame':    102 obs. of  5 variables: # $ species  : chr  "B. barbastrellus" "E. nilssonii" "H. savii" "M. alcathoe" ... # $ period   : chr  "dusk" "dusk" "dusk" "dusk" ... # $

[R] From a vector with characters to binary information

2013-03-30 Thread Hermann Norpois
Hello, I would like to transform a character vector into a "binary" vector ("keine" and " " become 0 and the rest 1). > dput (scm) c("keine", " ", "keine", "Erstgradverw.", "Mutter", "Erstgradverw.", "Erstgradverw.", "keine", " ", "Vater", "Erstgradverw.", "keine", "keine", "keine", "keine", " ",

[R] Scoping issue with irf() from {vars}

2013-03-30 Thread Tobias Muhlhofer
Dear all: There seems to be a problem with scoping, for irf() in vars, when called within a function. Try the following: --- testfun <- function(lags){ data(Canada) var.2c <- VAR(Canada, p = lags, type = "const") print(var.2c) } testfun(lags=3) ## Everything OK. Now this:

Re: [R] Installing views in R2.15.3

2013-03-30 Thread Prof Brian Ripley
Note that the Mac OS X binary packages for R pre-3.0.0 are still being made (and those for 2.15.x being updated). There are known inconsistencies in the indices, which should go away in a day or two. On 29/03/2013 20:41, David Winsemius wrote: On Mar 29, 2013, at 11:19 AM, Uwe Ligges wrote: