Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-08-02 Thread Rosa Oliveira
Dear all and Pikal (in particular :)) Pikal, I’m sorry. It works!!! Thank you very much :) Best, Rosa Oliveira > On 1 Aug 2017, at 16:31, PIKAL Petr <petr.pi...@precheza.cz> wrote: > > Hi > > Keep your messages coppied to R helplist, others could give you answers t

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread Rosa Oliveira
ou help me on that task? Thanks! Best, Rosa Oliveira > On 31 Jul 2017, at 10:28, Martin Maechler <maech...@stat.math.ethz.ch> wrote: > >>>>>> PIKAL Petr <petr.pi...@precheza.cz <mailto:petr.pi...@precheza.cz>> >>>>>>on Mon, 31 Jul 2017 0

[R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-28 Thread Rosa Oliveira
I am trying to make a x-axis and y-axis titles with both a special character and a subscript. I am not being able to do this. I think its just a placing of my parenthesis, but I've tried (seemingly) everything. Even more, when I try the blog users code it works. Is it because I’m using

Re: [R] spaghetti plot - urgent

2017-07-22 Thread Rosa Oliveira
gt; > point7$y_point7 <- point7$beta0_7 + point7$beta1_7*point7$time + point7 > $epsilon_7 > > ggplot(point7, aes(time, y_point7)) + geom_line() > > HTH > Ulrik > > > On Wed, 19 Jul 2017 at 20:37 Rosa Oliveira <rosit...@gmail.com> wrote: > >> Hi everyone, &

[R] spaghetti plot - urgent

2017-07-19 Thread Rosa Oliveira
Hi everyone, I’m trying to do a spaghetti plot and I know I’m doing all wrong, It must be. What I need: 15 subjects, each with measurements over 5 different times (t1, ..., t5), and the variable that I need to represent in the spaguetti plot is given by: PCR = b0 + b1 * ti + epsilon B0, -

[R] outliers in Box Plot

2016-09-05 Thread Rosa Oliveira
FALSE)$out # find outliers values to age 1 (example) I attach the data. Best, Rosa Oliveira __ Antes de imprimir este e-mail pense bem se tem mesmo que o fazer. Há cada vez menos árvores. Não imprima, pense na sua responsabilidade e compromisso com o MEIO AMBIE

[R] substring simultaneous conditions

2016-09-05 Thread Rosa Oliveira
in positions 11 and 12 of ID, neither 11 in positions 11 and 12 of ID variable.variable. So, it seems, that the code exclude all the conditions, as it was a OR (|) condition in spite of AND (&) condition. Can anyone help me please? I attach the data. Be

[R] boostrap - not converging cycles

2016-05-05 Thread Rosa Oliveira
and therefore left out of coverage. A. Is there a way of knowing which were the cycles that did not converge and correct the estimates? B. For this I have the "results” saved - save.image("~/Documents/phd_april_v16.RData”) will this be useful for something? Best, RO Atenciosamente, Ros

[R] help with OR confidence interval using probit link

2016-04-14 Thread Rosa Oliveira
d get the CI with confint(naïve) command, but with probit I don't think so. Is there a way? What should I do? Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com &

[R] Odds Ratio and OR CI

2016-04-14 Thread Rosa Oliveira
I would get the CI with confint(naïve) command, but with probit I don't think so. Is there a way? What should I do? Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit.

[R] Help in meta-analysis (URGENT please)

2016-02-08 Thread Rosa Oliveira
? or simply concerning the risk of hiv among MSM If yes, How? Metafor? I’ve tried, but wasn’t succeed :( Best, RO Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com

Re: [R] doubt with Odds ratio - URGENT HELP NEEDED

2015-09-24 Thread Rosa Oliveira
Dear Michael (and all :)) Thank you very much. I fixed my problem, I think ;) Best, RO Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com Tlm: +351 939355143 Linkedin

Re: [R] doubt with Odds ratio - URGENT HELP NEEDED

2015-09-23 Thread Rosa Oliveira
ys<-data.frame(tas.6days[order(tas.6days[,1]),]) + tas.6days$tas[tas.6days$tas==8|tas.6days$tas==9 ]<-NA + + #mixed model for the longitudinal tas + lme.1 <- lme(tas~ time+1, random = ~ time+1 |i

[R] doubt with Odds ratio - URGENT HELP NEEDED

2015-09-22 Thread Rosa Oliveira
Dear all, I’m trying to compute Odds ratio and OR confidence interval. I’m really naive, sorry for that. I attach my data and my code. I’m having lots of errors: 1. Error in data.frame(tas1 = tas.data$tas_d2, tas2 = tas.data$tas_d3, tas3 = tas.data$tas_d4, : arguments imply differing

Re: [R] HELP IN GRAPHS - slip screen (URGENT)

2015-09-20 Thread Rosa Oliveira
ylab="") abline(h = -.5, col = "gray60") mtext(expression(paste(lambda)),side=1,line=2, cex.main=1.5) screen(10) par(mar=c(3,0,0,0)) # now the second set n1000<-SE.alpha2$nsample==1000 matplot(x=SE.alpha2$lambda[n1000],y=SE.alpha2[n1000,3:5], type="l",pch=1:3,

[R] HELP IN GRAPHS - slip screen

2015-09-16 Thread Rosa Oliveira
side=1,line=2, cex.main=1.5) screen(10) par(mar=c(3,0,0,0)) # now the second set n1000<-SE.alpha2$nsample==1000 matplot(x=SE.alpha2$lambda[n1000],y=SE.alpha2[n1000,3:5], type="l",pch=1:3,col=c(4,2,3),yaxt="n",ylim=c(0, 1.1)) abline(h = -.5, col = "gray60") mte

[R] split.screen to draw graphs - ggplot2 and lattice (can't slip in 4 cells)

2015-09-06 Thread Rosa Oliveira
x.main=1.5) screen(2) par(mar=c(0,0,0,0)) # plot an empty plot to get the coordinates plot(0:1,0:1,type="n",axes=FALSE) legend(0,0.6,c("OLS", "GLS", "Reg. Cal.", "true coefficient"),bty = "n", lty=1:3,col=c(4,2,3,"g

Re: [R] LMER - generate data and define model (2 fixed effects and 1 random effect or 1 fixed effect and 2 random effects)

2015-08-11 Thread Rosa Oliveira
a model and I’m trying to figure if it makes sense to add some variables into the model. Another doubt, 3. LMER only accepts categorical variables? Best, RO Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos

Re: [R] LMER - generate data and define model (2 fixed effects and 1 random effect or 1 fixed effect and 2 random effects)

2015-08-11 Thread Rosa Oliveira
)) 2nd lmer(yy~1+time+(time|id.pat)+(1|id.visit)) the problem remains: variable lengths differ - for the first fixed effect in the model id.age in the first or time in the second Best, RO Atenciosamente, Rosa Oliveira

[R] LMER - generate data and define model (2 fixed effects and 1 random effect or 1 fixed effect and 2 random effects)

2015-08-10 Thread Rosa Oliveira
help me? 1st problem: how do I generate age so I can use it as a fixed factor? 2nd problem: how do I insert age as a fixed factor? 3rd problem: what if I wanted to insert a 2nd random effect based on age? Best, RO Atenciosamente, Rosa Oliveira

Re: [R] multiple graphs with a single legend and trellis graph

2015-07-08 Thread Rosa Oliveira
attach my previous graphs and my data, so you can see :) I’m very naive and new in R :( Thanks again for your help ;) Atenciosamente, Rosa Oliveira Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira

Re: [R] multiple graphs with a single legend and trellis graph

2015-07-08 Thread Rosa Oliveira
, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com Tlm: +351 939355143 Linkedin: https://pt.linkedin.com/in/rosacsoliveira

Re: [R] multiple graphs with a single legend and trellis graph

2015-07-08 Thread Rosa Oliveira
, Was it me that made something wrong? I’m very naive and new in R :( Thanks again ;) Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com Tlm: +351 939355143 Linkedin

[R] multiple graphs with a single legend and trellis graph

2015-07-07 Thread Rosa Oliveira
(Naive, Regression Calibration, Pseudo Likelihood), bty = n,col=c(4,2,3),lty=c(4,2,3)) Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com Tlm: +351 939355143 Linkedin

Re: [R] graphs, need urgent help (deadline :( )

2015-06-11 Thread Rosa Oliveira
;) Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com Tlm: +351 939355143 Linkedin: https://pt.linkedin.com/in/rosacsoliveira

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Rosa Oliveira
Dear Don and all, I’ve read the tutorial and tried several codes before posting :) I’m really naive. what I was trying to : is something like the graph in the picture I drawee. Is it more clear now? Atenciosamente, Rosa Oliveira

Re: [R] graphs, need urgent help [from Rosa Oliveira]

2015-06-10 Thread Rosa Oliveira
in sample, and all the other specificityies. Best, RO Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com Tlm: +351 939355143 Linkedin: https://pt.linkedin.com

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Rosa Oliveira
I should have 3 graphs each one with 3 lines 1 red to factor a, 1 blue to factor b and 1 green to factor c. Do you all think is better? Nonetheless I can’t do it :( best, RO Atenciosamente, Rosa Oliveira -- Rosa

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Rosa Oliveira
$Region[my.data$sample==50],my.data$factor.a[my.data$sample==50],col=4,type=“l”,xlab=“Region”,ylab=“factor) Error: unexpected input in plot(my.data$Region[my.data$sample==50],my.data$factor.a[my.data$sample==50],col=4,type=�” I’m really naive, right? Best, RO Atenciosamente, Rosa Oliveira

[R] graphs, need urgent help (deadline :( )

2015-06-09 Thread Rosa Oliveira
. Best, RO Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com Tlm: +351 939355143 Linkedin: https://pt.linkedin.com/in/rosacsoliveira

Re: [R] problems editing R console

2015-06-08 Thread Rosa Oliveira
Thanks all off you ;) I think I got it. I was saving the workplace and loading it, but after that I wasn’t calling my data ;) really naive. Thanks very much. best RO Atenciosamente, Rosa Oliveira -- Rosa

[R] problems editing R console

2015-06-07 Thread Rosa Oliveira
). And my work is being delayed :( Best, RO Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com Tlm: +351 939355143 Linkedin: https://pt.linkedin.com/in/rosacsoliveira

Re: [R] problems editing R console

2015-06-07 Thread Rosa Oliveira
problem is that the function I use takes 3 days running, and just 500 simulations :( Best, RO Atenciosamente, Rosa Oliveira -- Rosa Celeste dos Santos Oliveira, E-mail: rosit...@gmail.com Tlm: +351 939355143 Linkedin