search for: distance3

Displaying 3 results from an estimated 3 matches for "distance3".

Did you mean: distance
2008 Mar 24
1
Great difference for piecewise linear function between R and SAS
...02))2 -4.426 1.614 - 2.742 0.006105 ** bs(y, degree = 1, knots = c(-0.4357, -0.3202))3 -11.216 2.861 - 3.920 8.86e-05 *** #SAS codes data b; set a; if distance > 16.13 then d1=1; else d1=0; distance2=d1*(distance - 16.13); if distance > 24 then d2=1; else d2=0; distance3=d2*(distance - 24); if y>-0.4357 then dd1=1; else dd1=0; y2=dd1*(y+0.4357); if y>-0.3202 then dd2=1; else dd2=0; y3=dd2*(y+0.3202); run; proc logistic descending data=b; model mark =x elevation elevation*elevation distance distance2 distance3 y y2 y3; run; The LOGISTIC P...
2009 Dec 14
2
Bug in lnme package?
...ance,random=~Week|Uniquesite/Uniqueplot,method="REML") > ModelNoInteraction<-lme(Webslog1~Treatment+Distance,random=~Week|Uniquesite/Uniqueplot,method="REML") Error in model.frame.default(formula = ~Week + Webslog1 + Treatment + : invalid type (list) for variable 'Distance3' > Model<-lme(Webslog1~Treatment*Distance,random=~Week|Uniquesite/Uniqueplot,method="REML") Error in model.frame.default(formula = ~Week + Webslog1 + Treatment + : invalid type (list) for variable 'Distance3'* *>* Someone any idea? Bug or just my poor R skills?...
2008 Mar 24
0
What is the correct model formula for the results of piecewise linear function?
...unctions. Now i hope to write the model formua for the above results, but not very sure about how to write the correct results for *distance* and *y,* because they have three parts . Logitp=12.104 + 5.815*x + 6.654*elevation - 6.755*elevation^2 -1.291*distance1 - 10.348*distance2 - 3.53*distance3 -6.828*y1 - 4.426*y2 - 11.216*y3 In the above formula, distance1-3 denotes the three linear functions for*distance *, my problem is how to replace distace1-3 using original variable *distance *? The same question is for *y*. Could anybody please show me the correct model formula accord...