Re: [R] check.k function in mgcv packages

2012-07-01 Thread ywh123
Hi,thanks very much, I have some another questions about GAM models. First,Is there some restrictions on the sample size? For example,I am studying the GDP and foreign direct investment on 29 provinces in China(N=29).Whether or not N is too samll? If so,could I use pooled data(N=29,T=5)? Sec

[R] mgcv

2012-06-23 Thread ywh123
Hi,Dear Professor Wood, I am studying the generalized additive model(GAM) and I have read your related papers,especially the book named "Generalized Additive Models:An Introduction with R".I am benefit a lots.However,I also have some questions about GAM models. First,Is there some restriction

[R] check.k function in mgcv packages

2012-06-21 Thread ywh123
Hi,everyone, I am studying the generalized additive model and employ the package 'mgcv' developed by professor Wood. However,I can not understand the example listed in check.in function. For example, library(mgcv) set.seed(1) dat <- gamSim(1,n=400,scale=2) ## fit a GAM with quite low `k' b<-gam

[R] the formula of quantile regression for panel data, which is correct?

2010-11-09 Thread ywh123
Hi,everyone I have some trouble in understanding the formula. http://r.789695.n4.nabble.com/file/n3033305/%E6%9C%AA%E5%91%BD%E5%90%8D.jpg http://r.789695.n4.nabble.com/file/n3033305/%E6%9C%AA%E5%91%BD%E5%90%8D1.jpg which is correct? best wish. thanks -- View this message in context: http://

[R] plot graph(quantile regression for panel data)

2010-11-09 Thread ywh123
Hi,everyone I have two group data. x=c(0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9) y=c(1,2,3,4,5,6,7,8,9) and the confidence interval of y [0.9,1.1],[1.9,2.1],[2.9,3.1] [3.9,4.1],[4.9,5.1],[5.9,6.1] [6.9,7.1],[7.9,8.1],[8.9,9.1] How can I get the graph? as follows http://r.789695.n4.nabble.com/file/n3

Re: [R] Question of "Quantile Regression for Longitudinal Data"

2010-10-19 Thread ywh123
Thanks for your help RKoenker I want to deal with the problem through bootstrap.so I can get p-value and T-statistics. Do you think so? -- View this message in context: http://r.789695.n4.nabble.com/Question-of-Quantile-Regression-for-Longitudinal-Data-tp883458p3001875.html Sent from the R he

Re: [R] Question of "Quantile Regression for Longitudinal Data"

2010-10-16 Thread ywh123
I've used the function rq.fit.sfn and rq.fit.panel to estimate a quantile regression on a panel data set.Now I would like to compute an statistic to measure the goodness of fit of this model (T-statistics and P-value ). Does someone know how could I do that? best wish -- View this message i