R Under development (unstable) (2024-09-30 r87204 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library( "urbin" ) > > # Example > ela8a <- urbinElaInt( allCoef = c( 0.33, 0.22, 0.05, 0.6 ), + allXVal = c( 1, 0.4, 0.12, 0.13 ), + xPos = c( 2, 0, 3, 4 ), + xBound = c( 0, 500, 1000, 1500, Inf ), + model = "logit" ) > ela8a semEla stdEr 0.008228764 NA > > ela8b <- urbinElaInt( allCoef = c( 0.33, 0.22, 0.05, 0.6 ), + allXVal = c( 1, 0.4, 0.12, 0.13 ), + xPos = c( 2, 0, 3, 4 ), + xBound = c( 0, 500, 1000, 1500, Inf ), + allCoefVcov = c( 0.003, 0.045, 0.007, 0.009 ), + model = "logit" ) > ela8b semEla stdEr 0.008228764 0.003959305 > > # Example > ela9a <- urbinElaInt( allCoef = c( 0.2, 0.3, 0.5, -0.2, 0.03, 0.6 ), + allXVal = c( 1, 0.4, 0.12 ), + xPos = c( 2, 0, 3 ), + xBound = c( 0, 500, 1000, Inf ), yCat = 2, + model = "mlogit" ) > ela9a semEla stdEr 0.04186674 NA > > ela9b <- urbinElaInt( allCoef = c( 0.2, 0.3, 0.5, -0.2, 0.03, 0.6 ), + allXVal = c( 1, 0.4, 0.12 ), + xPos = c( 2, 0, 3 ), + xBound = c( 0, 500, 1000, Inf ), yCat = 2, + allCoefVcov = c( 0.003, 0.045, 0.007, 0.009, 0.0008, 0.9 ), + model = "mlogit" ) > ela9b semEla stdEr 0.04186674 0.09570526 > > proc.time() user system elapsed 0.14 0.06 0.18