[R] Calculating a P for trend

2018-11-29 Thread Lisa van der Burgh
Hi all, I have a question about calculating a P for trend on my data. Let�s give an example that is similar to my own situation first: I have a continuous outcome, namely BMI. I want to investigate the effect of a specific medicine, let�s call it MedA on BMI. MedA is a variable that is

Re: [R] Question Mixed-Design Anova in R

2018-11-23 Thread Lisa van der Burgh
Dear John and Peter, Thank you both for your answers. I am going to try the solutions you gave me! Thanks again, Lisa From: Fox, John Sent: 23 November 2018 16:54:49 To: Lisa van der Burgh Cc: r-help@R-project.org; peter dalgaard Subject: RE: [R] Question

[R] Question Mixed-Design Anova in R

2018-11-23 Thread Lisa van der Burgh
Hi Everyone, I have a question about Mixed-Design Anova in R. I want to obtain Mauchly�s test of Sphericity and the Greenhouse-Geisser correction. I have managed to do it in SPSS: GLM Measure1 Measure2 Measure3 Measure4 Measure5 Measure6 BY Grouping /WSFACTOR=Measure 6 Polynomial

Re: [R] Recoding variables in R

2018-05-23 Thread Lisa van der Burgh
Thank you all for your help, it worked! Op 23 mei 2018 om 19:27 heeft marta azores <martazo...@gmail.com<mailto:martazo...@gmail.com>> het volgende geschreven: Try that code NewDF<-DF[!DF$Anxiolytics==1,] 2018-05-23 10:14 GMT+00:00 Lisa van der Burgh <lisavdbu...@hotmail.c

[R] Recoding variables in R

2018-05-23 Thread Lisa van der Burgh
Hi all, I have a very general question and I think for you maybe very easy, but I am not able to solve it. I have a dataset and that dataset contains the variable Anxiolytics. This variable is coded as 0, 1, 2. The variable looks as follows: > summary(DF$Anxiolytics) 01 2