search for: newda

Displaying 1 result from an estimated 1 matches for "newda".

Did you mean: newdf
2003 May 19
1
plotting a simple graph
...the three different groups, covarying grp, log(x2)... #log(x6)x6 and grp:log(x2)....grp:log(x6). This what I tried:- plot(log(x1)[grp==0],log(y)[grp==0], main='Differential relations between log(y) and log(x1) in 3 groups, adjusted for x2-x5', xlab='log(x1)', ylab='log(y)') newdat=data.frame(x1=seq(min(x1),max(x1),(max(x1)-min(x1))/10)) points(log(x1)[grp==1],log(y)[grp==1],pch=3) lines(predict(lm(log(y)~log(x2)+log(x3)+log(x4)+log(x5),subset=grp==0),newda t),lty=1) lines(predict(lm(log(y)~log(x2)+log(x3)+log(x4)+log(x5),subset=grp==1),newda t),lty='dashed') This p...