[R] installing package lme4

2017-08-18 Thread Lucy McMahon
I am hoping to run a generalised linear mixed effect model but I don't seem to have access to package lme4. library (lme4) Error in library(lme4) : there is no package called �lme4� I'm unsure of how to go about installing this package and I haven't been able to find much online either. I a

[R] ANOVA test to decide whether to use multiple linear regression or linear mixed effects model

2017-08-15 Thread Lucy McMahon
R-help: I am trying to decide between using a multiple linear regression or a linear mixed effects model for my data: model1 <- lm (responsevariable ~ predictor1 + predictor2 + predictor3 + predictor4, data= data) model2 <- lme (responsevariable ~ predictor1 + predictor2 + predictor3 + pred

[R] Tukey tests in two-way ANOVA

2017-05-15 Thread Lucy McMahon
R-help: I'm looking into the abundance of an algal species over site and years using a two-way ANOVA: > summary (aov (fserratus ~ site+year)) Df Sum Sq Mean Sq F value Pr(>F) site 1 1487 1486.6 6.094 0.0155 * year 1 1173 1172.8

[R] mstate with multiple initial states?

2017-01-09 Thread Lucy Leigh
l is correct. However, I am not sure whether adding this extra initial state is a valid option? Thanks in advance for anyone who can help me out, Lucy Leigh mstate: An R Package for the Analysis of Competing Risks ...<https://www.jstatsoft.org/article/view/v038i07> www.jstatsoft.org A

Re: [R] Simulating from a Weibull distribution

2014-09-02 Thread Lucy Leigh
Awesome, thankyou! From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Wednesday, 3 September 2014 12:04 PM To: Lucy Leigh Cc: r-help@R-project.org Subject: Re: [R] Simulating from a Weibull distribution Hi Lucy, Try the gamlss.dist package, specifically the rWEI2() function. Cheers

[R] Simulating from a Weibull distribution

2014-09-02 Thread Lucy Leigh
oint me to that demonstrates how to simulate data from any given distribution? Cheers, Lucy [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

[R] 'rms' package error

2014-04-02 Thread Lucy Leigh
to get this function to work? Or if there is an alternative package that can implement a Weibull PH model? Cheers, Lucy [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Simulating from the Weibull with right censoring

2014-03-23 Thread Lucy Leigh
} if (Y[i] > censorT){ Y[i] <- censorT death[i] <- 0} else {Y[i] <- Y[i] death[i] <- 1 } } Thankyou for the tip about the random seed. Lucy -Original Message- From: Dennis Murphy [mailto:djmu...@gmail.com] Sent: Monday, 24 March 2014 4:12 PM To

[R] Simulating from the Weibull with right censoring

2014-03-23 Thread Lucy Leigh
second opinion? Thanks in advance, this list has been immensely helpful with some previous questions I have had about the survival package. Lucy [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mai

Re: [R] survfit question - Q1 and Q3 survival time?

2014-03-20 Thread Lucy Leigh
Excellent! Thank you for your help. -Original Message- From: Therneau, Terry M., Ph.D. [mailto:thern...@mayo.edu] Sent: Monday, 17 March 2014 11:15 PM To: Lucy Leigh; r-help@R-project.org Cc: David Winsemius Subject: Re: survfit question - Q1 and Q3 survival time? Try help

[R] survfit question - Q1 and Q3 survival time?

2014-03-14 Thread Lucy Leigh
median 0.95LCL 0.95UCL 10761.0 10761.0 10761.0 5289.015.515.515.5 I was wondering, is it possible to also output the quartiles Q1 and Q3 survival times? Regards, Lucy [[alternative HTML version deleted]] __ R-help@r-project.

[R] Survfit Error

2014-03-05 Thread Lucy Leigh
d sleepfit <- survfit(Surv(starttime, endtime, death), data = sleep) Can anyone tell me what I might be doing wrong? Thanks, Lucy [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

[R] Strange gcfit output in R package Grofit

2014-01-21 Thread Lucy Rayner
Hi all, I'm trying to use the R growth curve analysis package Grofit. I've used it successfully before but the protocol which previously worked for me is now not giving me the expected output. Entering my data and time info and running Test<-grofit(time,data,FALSE) gives me the expected growth cu

Re: [R] Help with installing a .tar.gz package on windows

2013-07-11 Thread Lucy Leigh
ciate you taking the time to write it all out for me. Regards, Lucy Leigh >>> Prof Brian Ripley 12/07/2013 6:03 am >>> On 11/07/2013 20:21, David Winsemius wrote: > > On Jul 11, 2013, at 1:37 AM, Rolf Turner wrote: > >> On 11/07/13 17:57, Prof Brian Ripley

Re: [R] Help with installing a .tar.gz package on windows

2013-07-10 Thread Lucy Leigh
Hi, I have had a look at the manual but it makes no sense to me. I have downloaded RTools, and the InnoSetup, but I don't understand how to use these to install my package? Am I meant to be writing commands in R itself, or in these other things I've downloaded? Lucy >>> Erin H

Re: [R] Help with installing a .tar.gz package on windows

2013-07-08 Thread Lucy Leigh
Great thank you - are there any resources that step through how to use RTools to compile the source package and install it in R on (64-bit windows) ? >>> Berend Hasselman 8/07/2013 6:38 pm >>> On 08-07-2013, at 02:15, "Lucy Leigh" wrote: > Hi, > I have a s

[R] Help with installing a .tar.gz package on windows

2013-07-08 Thread Lucy Leigh
INSTALL -l "C:\Program Files\R\R-3.0.1\library" "PReMiuM_3.0.21.tar.gz"' had status 1 2: In install.packages("PReMiuM_3.0.21.tar.gz", type = "source") : installation of package ‘PReMiuM_3.0.21.tar.gz’ had non-zero exit status > Thanks for any

[R] R error message

2012-04-12 Thread Harriet Lucy Stubbs
Hi, I'm trying to do an exploratory factor analysis for a uni assignment but I keep getting this error message coming up [1] "One of your variables is a constant. Constants are disallowed as part of a scale." when I turn the data into a matrix and look at the stats. I've been told that

Re: [R] poLCA

2012-03-09 Thread lucy
I understand that the NaN's mean that something can't be computed, I'm just unsure as to what they refer to. Can anyone shed some light as to what the beta and mix matrices are? -- View this message in context: http://r.789695.n4.nabble.com/poLCA-tp4458635p4461091.html Sent from the R help mailin

[R] poLCA

2012-03-08 Thread Lucy
NaNs produced 5: In sqrt(diag(VCE.mix)) : NaNs produced What does this mean for the model? Cheers, Lucy __ 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

[R] Poisson GLM using non-integer response/predictors?

2011-12-30 Thread Lucy Dablin
Great lists, I always find them useful, thank you to everyone who contributes to them. My question is regarding non-integer values from some data I collected on parrots when using the poisson GLM. I observed the parrots on a daily basis to see if they were affected by tourist presence. My key pr

[R] Sorting DataFrames

2011-06-07 Thread Cox, Samantha Lucy
I am a new user, and i am trying to sort out a data frame. I have for example bins of data. Within each bin i have multiple counts of animals and the depths at which these count were taken. How would I summarise this to being only the maximum count per bin alongisde the corresponding height

[R] Bayesian PCA

2011-04-12 Thread Lucy Asher
t research to inform my priors. I wondered if anyone knew whether Bayesian PCA was better suited to smaller datasets than traditional (ML) PCA? If not I wondered if anyone knew of packages in R that could do dimension reduction on datasets with small sample sizes? Many Thanks, Lucy This messa

[R] looping through data frames in a workspace

2008-03-04 Thread lucy b
Thanks for helpful replies. Unfortunately, I didn't mention that I want to overwrite the existing data frame with the corrected one using the same name. Here's what I have: ## get names of data frames frames <- names(Filter(function(x) x=="data.frame", sapply(objects(),function(

[R] looping through data frames in a workspace

2008-03-03 Thread lucy b
All, I have a workspace containing only data frame objects. I would like to loop though each one and clean-up text columns in them. How can I have R loop through the list? I have tried to find an answer in R help but the closest solution I can find is to make a static list of data frames, as illus

[R] Attributes of lm, gee and lme functions

2008-01-31 Thread Lucy Radford
ients or ideally the p-value of the cofficient? Many thanks Lucy __ 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, mi

Re: [R] extracting data using strings as delimiters

2007-09-26 Thread lucy b
has same number of returned words > strapply(Lines, ": *(\\w+)", backref = -1, simplify = rbind) > > This matches a colon (:) followed by zero or more spaces ( *) > followed by a word ((\\w+)) and backref= - 1 causes it to return > only the first backreference (i..e. the portion

[R] extracting data using strings as delimiters

2007-09-25 Thread lucy b
Dear List, I have an ascii text file with data I'd like to extract. Example: Year Built: 1873 Gross Building Area: 578 sq ft Total Rooms: 6 Living Area: 578 sq ft There is a lot of data I'd like to ignore in each record, so I'm hoping there is a way to use strings as delimiters to get the da