Re: [R] How to catch data from the different dataframes and lm problem?

2007-12-30 Thread Hsin-Ya Lee
Dear all: I used lm to perform a regression in R and and intercept is -0.01894 and X is 0.185758. This is my target. Y<-(c(0,4.95,9.95,0,2.5,20,0,1.1,2.85,0,2.5,5)) X<-(c(0.1,10,20,20,25,60,0.6,2.5,6,35,40,45)) lm(Y~X) anova(wnlm<-lm( Y~X)) summary(wnlm<-lm( Y~X)) I catch test (Y) values and

Re: [R] How to catch data from the different dataframes and lm problem?

2007-12-30 Thread Hsin-Ya Lee
Dear Richie: 1) I have a mistake in the code that “A.split[[1]][["time"]][i]” should replace with “A.split[[j]][["time"]][i]”. The “test” value is “auc” which is a cumulative rate of change of concentration with respect to time. for (j in 1:length(A.split)){ test <- 0 for(i in 2:length(A.spli

Re: [R] How to catch data from the different dataframes and lm problem?

2007-12-28 Thread Richard . Cotton
> 1) I have a dataframe. Based on “formulation” and “subject”, a > dataframe is split into 4 dataframes. The > example is as follows. Moreover, I want > to calculate “test” value for these 4 dataframes. My question is > that the “test” values not > correct and I do not know where the problem i

[R] How to catch data from the different dataframes and lm problem?

2007-12-27 Thread leeznar
Dear all: I am a new R-user and I have 2 questions about it. 1) I have a dataframe. Based on “formulation” and “subject”, a dataframe is split into 4 dataframes. The example is as follows. Moreover, I want to calculate “test” value for these 4 dataframes. My question is that the “test