PhDPublications | R Documentation |
Data on the scientific productivity of PhD students in biochemistry.
data("PhDPublications")
A data frame containing 915 observations on 6 variables:
Number of articles published during last 3 years of PhD.
Factor indicating gender.
Factor indicating the marital status.
Number of children less than 6 years old.
Prestige of the graduate program.
Number of articles published by student's mentor.
Imported directly from CRAN package AER (Kleiber and Zeileis, 2013) for the sake of convenience.
Chen, Y. and Samworth, R. J. (2016). Generalized additive and index models with shape constraints. Journal of the Royal Statistical Society: Series B, 78, 729-754.
Kleiber, C. and Zeileis, A. (2013). AER: applied econometrics with R. R package version 1.2-0, http://cran.r-project.org/web/packages/AER/
Long, J.S. (1990). Regression Models for Categorical and Limited Dependent Variables. Thousand Oaks: Sage Publications.
Long, J.S. (1997). The origin of sex differences in science. Social Forces, 68, 1297–1315.
## Some data pre-processing data(PhDPublications) dat = matrix(0,ncol=4,nrow=nrow(PhDPublications)) dat[,1] = as.numeric(PhDPublications$gender == "female") dat[,2] = as.numeric(PhDPublications$married == "yes") dat[,3] = as.numeric(PhDPublications$kids) dat[,4] = as.numeric(PhDPublications$mentor) y = PhDPublications$articles ## Run scar on the dataset object = scar(dat,y,shape=c("l","l","de","ccv"),family=poisson()) ## Check the effects of mentor plot(object,which=c(4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.