mod <- gam(ACS_sum~PM10avg+s(RHavg,k=4,fx=TRUE)+s(time,k=4,fx=TRUE)+s(tempavg,k=4,fx=TRUE), family=poisson, data=ACS, na.action=na.omit(
predmod1 <- predict(mod)
plot(ACS$PM10avg, ACS$ACS_sum) ## Working J
points(ACS$PM10avg, predmod1, pch=17,col=3)## Here i get an error
Error in xy.coords(x, y) : 'x' and 'y' lengths differ
ניסיתי לקרוא על הטעות הזאת, ובדקתי שהערכים שלי בעלי אותו אורך:
> length(PM10avg)
[1] 3652
> length(ACS_sum)
[1] 3652
אז מה יכולה להיות הבעיה?
תודה
אלינה
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.