plotCrs: Plot Results of CRS Models

Description Usage Arguments Author(s) See Also Examples

Description

This command creates plots that show the relationship between each explanatory variable and the dependent variable of CRS models holding all other explanatory variables constant at their median/modal values.

Usage

1
   plotCrs( x )

Arguments

x

an object of class crs (returned by crs).

Author(s)

Arne Henningsen

See Also

crs.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
   set.seed(42)
   n <- 250
   num.eval <- 50
   myData <- data.frame( x1 = runif( n ), x2 = runif( n ) )
   myData$z <- round( runif( n, min = 0, max = 3 ) )
   myData$dgp <- cos( 2 * pi * myData$x1 ) + sin( 2 * pi * myData$x2 ) +
      myData$z / 5
   myData$z <- factor( myData$z )
   myData$y <- myData$dgp + rnorm( n, sd = 0.5 )
   
   model <- crs( y ~ x1 + x2 + z, deriv = 1, nmulti = 1, data = myData )
   
   plotCrs( model )

micEconNP documentation built on May 2, 2019, 6:30 p.m.

Related to plotCrs in micEconNP...