Displaying 1 result from an estimated 1 matches for "caltulate".
Did you mean:
calculate
2008 Jan 12
2
glm expand model to more values
Hi
I have the problem with fitting curve to data with lm and glm. When I
use polynominal dependiency, fitted values from model are OK, but I
cannot recive proper values when I use coefficents to caltulate this.
Let me present simple example:
I have simple data.frame: (dd)
a: 1 2 3 4 5 6
b: 3 5 6 7 9 10
I try to fit it to model:
model=glm(b~poly(a,3),data=dd)
I have following data fitted to model (as I expected)
> fitted(model)
1 2 3 4 5...