[R] data analysis. R

2009-03-21 Thread UBC
so i am having this question what should i do if the give data file (.txt) has 4 columns, but different lengths? how can i read them in R? any idea for the following problem? Gas consumption (1000 cubic feet) was measured before and after insulation was put into a house. We are interested in loo

Re: [R] data analysis. R

2009-03-22 Thread UBC
9.71.5" > > nfld <- count.fields(textConnection(Lines)) > data.lines <- readLines(textConnection(Lines)) > data.lines <- ifelse(nfld == 2, paste("NA NA", data.lines), data.lines) > my.data <- read.table(textConnection(data.lines), header = TRUE

[R] Any package to produce QQplot for survival model checking?

2009-07-16 Thread popo UBC
Hi there! S provide some functions, such as "qq.weibull", to produce various qqplot for model checking. But I can't find the corresponding version in R. Does any R package available to produce these qqplots? Many thanks in advance!! Cheers~~~ Popo [[alternative HTML version del

Re: [R] Any package to produce QQplot for survival model checking?

2009-07-16 Thread popo UBC
Hi, Steve! Thanks for reply! Acutally, that's what I thought too. But I believe some special control terms are needed. Do you know how could I find some examples? Thanks again. Popo 2009/7/16 Steve Lianoglou > Hi, > > > On Jul 16, 2009, at 2:03 PM, popo UBC wrote: >

[R] About the efficiency of R optimization function

2009-05-14 Thread popo UBC
Hi all! The objective function I want to minimize contains about 10 to 20 variables, maybe more in the future. I never solved such problems in R, so I had no idea about the efficiency of R's optimization functions. I know doing loop in R is quite slow, so I am not sure whether this shortage influe

Re: [R] About the efficiency of R optimization function

2009-05-14 Thread popo UBC
spent too much time? - Mainly, I need to calculate the MLE. But I really have no idea what the likelihood may looks like. According to your experiences, would the likelihood function be too complicated? Is L-BFGS-B good enough? Thanks again!! Popo 2009/5/14 cls59 > > > popo

[R] A problem about "nlminb"

2009-05-30 Thread popo UBC
Hello everyone! When I use "nlminb" to minimize a function with a variable of almost 200,000 dimension, I got the following error. > nlminb(start=start0, msLE2, control = list(x.tol = .001)) Error in vector("double", length) : vector size specified is too large I had the following setting option