Guest User

Untitled

a guest
Nov 16th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. y=rnorm(50)
  2. x1=rnorm(50)
  3. x2=rnorm(50)
  4. unit=rep(1:5,each=10)
  5. time=rep(1:10,5)
  6. unit=as.factor(unit)
  7. time=as.factor(time)
  8. df = data.frame(cbind(y,x1,x2,unit,time))
  9. require(rqpd)
  10. form = y~x1+x2-1 | c(unit,time)
  11. m = rqpd(formula = form, panel = panel(taus=c(0.25, 0.5, 0.75),
  12. method = 'pfe', tauw=c(.25, .5, .25), lambda = 1), data = df,
  13. se = 'boot', R=50)
  14. summary(m)
  15.  
  16. Error in rqpd(formula = form, panel = panel(taus = c(0.25, 0.5, 0.75), :
  17. Formula must on the form 'y ~ x + ... | s', see documentation.
Add Comment
Please, Sign In to add comment