Learn R Programming

scar (version 0.2-0)

PhDPublications: Doctoral Publications

Description

Data on the scientific productivity of PhD students in biochemistry.

Usage

data("PhDPublications")

Arguments

source

Imported directly from CRAN package AER (Kleiber and Zeileis, 2013) for the sake of convenience.

References

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.

Examples

Run this code
## 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))

Run the code above in your browser using DataLab