x<−as.matrix(x)y<−dataugini
y<-as.matrix(y)
fit<- rq.fit.panel(X,y,s)
数据格式是
name year ug shz pgdp ed ope urat fd ir
1 hb 1996 0.2278 14.8343 0.4311 6.9428 0.0609 0.3374 1.8193 0.2870
2 hb 1997 0.2446 51.1836 0.4884 7.2215 0.0931 0.3124 1.8064 0.2690
3 hb 1998 0.2446 57.9077 0.5287 7.2980 0.0753 0.3190 2.0237 0.2500
。。。
结果总显示错误
Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), :
'data' must be of a vector type, was 'NULL'
> fit<- rq.fit.panel(X,y,s)
Error in rq.fit.panel(X, y, s) : dimensions of y,X,s must match