[R] SAS file

2016-08-05 Thread Yuan Jian via R-help
Hello,I have a SAS formatted file as attached, when I use lookup.xport i got error below> lookup.xport("patient.ssd01")Error in lookup.xport.inner(file) :   unable to open file: 'No such file or directory' can anyone please help me to figure it out? thanksyuan ___

[R] lm

2016-02-20 Thread Yuan Jian via R-help
Hello,I used l  to draw a figure, but I got different result (26 vs 301) when I input the same parameters. > length(predict(lm(A$Counts ~ AT),list(ATE=timevalues))) [1] 26 > length(predict(lm(A$Counts ~ ATE),list(ATE=timevalues))) [1] 301 all variables are initialized as below: >A <- structure(l