Learn R Programming

erer (version 1.3)

plot.maTrend: Plot for Marginal Effect Trends

Description

Plot the probability values versus a continous variable with a stratification by a dummy variable.

Usage

## S3 method for class 'maTrend':
plot(x, \dots)

Arguments

x
an object of class "maTrend".
...
additional arguments to be passed.

Value

  • A plot of probability values

Details

Plot the probability values for a continuous variable. If a strata is specified through nam.d in maTrend(), then the stratified values also are shown.

References

Greene, W.H. 2003. Econometric Analysis (5th ed.). Prentice Hall, New York. 1026 P.

See Also

maTrend; print.maTrend.

Examples

Run this code
data(daPe)
ma <- glm(grade ~ gpa + tuce + psi, x = TRUE, 
    data = daPe, family = binomial(link = "probit"))
ea <- maBina(w = ma, x.mean = TRUE, rev.dum = TRUE)
ta <- maTrend(q = ea, nam.c = "gpa", nam.d= "psi")
plot(ta)

Run the code above in your browser using DataLab