tests/fail.R

library( "sampleSelection2" )

# tobit 2

try( selection( s ~ z1, y ~ x1 ) )

try( selection( "s ~ z1", y ~ x1 ) )

try( selection( ~ z1, y ~ x1 ) )

try( selection( s ~ z1, "y ~ x1" ) )

try( selection( s ~ z1, ~ x1 ) )

# tobit 5

try( selection( s ~ z1, list( y1 ~ x1, y2 ~ x1 ) ) )

try( selection( "s ~ z1", list( y1 ~ x1, y2 ~ x1 ) ) )

try( selection( ~ z1, list( y1 ~ x1, y2 ~ x1 ) ) )

try( selection( s ~ z1, list( "y1 ~ x1", y2 ~ x1 ) ) )

try( selection( s ~ z1, list( ~ x1, y2 ~ x1 ) ) )

try( selection( s ~ z1, list( y1 ~ x1, "y2 ~ x1" ) ) )

try( selection( s ~ z1, list( y1 ~ x1, ~ x1 ) ) )

Try the sampleSelection2 package in your browser

Any scripts or data that you put into this service are public.

sampleSelection2 documentation built on May 2, 2019, 6:08 p.m.