| wageTUnion | R Documentation |
Hourly wage and trade union membership of 534 workers (the Current Population Survey of 1985, Berndt 1991), the data of M. P. Wand's penalised spline logistic regression example.
data(wageTUnion)
A data frame with 534 rows and 2 columns:
hourly wage (US dollars).
1 for a union member, 0 otherwise.
Berndt, E. R. (1991). The Practice of Econometrics: Classic and Contemporary. Addison-Wesley.
Ruppert, D., Wand, M. P. and Carroll, R. J. (2003). Semiparametric Regression. Cambridge University Press.
data(wageTUnion)
# the probability of union membership as a smooth function of the wage
fit <- semireg(unionMember ~ s(wage, bs = "os", k = 15), family = binomial, data = wageTUnion)
anova(fit)$smooth
semipred(fit, "wage", "wage")$plt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.