[R] Confidence intervals pointwise and family

2004-05-01 Thread Linda portman
How can I add confidence intervals (pointwise and family) around the curves? The curve is made by plot(x,y). Thanks! - [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing lis

[R] estimate distributed lag model using matrix algebra

2004-04-15 Thread Linda portman
Has anyone writtent an R function for estimating linear models with distributed lags(using matrix algebra)? Yt=B0+S j=1j=10 Xt-j+e Thanks a lot! - [[alternative HTML version deleted]] __ [

[R] install packages

2004-04-15 Thread Linda portman
I am trying to install packages, WHat i did is: options(CRAN= "http://cran.us.r-project.org/";) install.packages("pakgs") However I got error message like: trying URL `http://cran.us.r-project.org//bin/windows/contrib/PACKAGES' Error in download.file(url = paste(contriburl, "PACKAGES", sep = "

[R] Distributed lag model

2004-04-15 Thread Linda portman
Has anyone writtent an R function for estimating linear models with distributed lags(using matrix algebra)? Y(t) = Bo + B1Xt-1+ B2Xt-2+e Thanks, - [[alternative HTML version deleted]] __

[R] plot question

2004-04-11 Thread Linda portman
I have a variable named "Medicine" which has seven values in date format, on the following plot, how can I use a red line to indicate the time when the medicine was taken on x axis? The following is my original plot of blood pressure vs. time. plot(time, bloodpressure,xlab="Time",ylab="bPress"

[R] question on plot dates

2004-04-11 Thread Linda portman
I am trying to plot "time" variable (the time is recoded for three days at 5 minutes interval in the format of 2001-05-14 13:45:00) VS. blood pressure. My code is the following: plot(time, bloodpressure,xlab="Time",ylab="bPress",main="Time VS Blood Pressure", type="l", xaxt="n") r <- as.P