On Jan 29, 2013 6:43 PM, "nserdar" <snes...@gmail.com> wrote:
>
> Lenght of Data Set= 522
>
> # Works Properly
>
> ggplot(tdata,aes(x=X2,y=X1))+geom_point()+stat_smooth(method=lm)
>
>
> # warning message
> ggplot(tdata,aes(x=X2,y=X1))+geom_point()+stat_smooth(method=lm,formula=X1~X2,se=F)
This should be formula = y~x
>
> Error in data.frame(x = xseq, y = as.vector(pred)) :
> arguments imply differing number of rows: 80, 522
> In addition: Warning message:
> 'newdata' had 80 rows but variable(s) found have 522 rows
>
> # How to stat_smooth for X1~ X2+X2^2+X2^3 ??? I use "ns" in formula part, than give same warnings message like above !!
I don't think you can
>
> ##################################################
>
> gam () function smooth
>
> #Warning message
>
> Error in data.frame(x = xseq, y = model$family$linkinv(as.vector(pred$fit)), :
> arguments imply differing number of rows: 80, 522
> In addition: Warning messages:
> 1: In predict.gam(model, newdata = data.frame(x = xseq), se = se, type = "link") :
> not all required variables have been supplied in newdata!
>
> 2: 'newdata' had 80 rows but variable(s) found have 522 rows
>
> ##################################################
>
> Please let me know how to solve these warnings
>
> Regards,
> Serdar
>
> --
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google Groups "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
has anyone used the chain ladder package