1

I have a quantile regression that I'm running in the quantreg package of R as below:

read19 <- rq(comppercentile~q19*mothered+ethnicity+gender,tau=.5,data=medmodel)

q19 is quantitative and mothered is a 2 level factor.

Once I get a significant interaction between q19 and mothered, how do I get the effect of q19 at each level of mothered?

lmo
  • 37,904
  • 9
  • 56
  • 69
SJB
  • 11
  • 1

1 Answers1

2

Add -1 at the end of your formula:

read19 <- rq(comppercentile~q19*mothered+ethnicity+gender -1, tau=.5, data=medmodel)

With your current formula, you are getting an estimate for your base "mothered" level except it is labeled as "Intercept".

IRTFM
  • 258,963
  • 21
  • 364
  • 487