search for: sampleselection

Displaying 20 results from an estimated 30 matches for "sampleselection".

2010 Jan 03
1
Interpreting coefficient in selection and outcome Heckman models in sampleSelection
Hi there Within sampleSelection, I'm trying to calculate the marginal effects for variables that are present in both the selection and outcome models. For example, age might have a positive effect on probability of selection, but then a negative effect on the outcome variable. i.e. Model<-selection(participation~age, freq...
2008 Mar 07
0
Packages micEcon, sampleSelection, and maxLik
Dear R Users: We have splitted up the micEcon package into three packages: a) Package "maxLik" provides tools for maximum likelihood estimations (see http://www.maxLik.org). b) Package "sampleSelection" provides tools for estimating Heckman-type sample selection/generalized tobit models (see http://www.sampleSelection.org). c) Package "micEcon" contains the remainder, i.e. mainly tools for microeconomic demand and firm models, e.g. estimating the "Almost Ideal Demand Syste...
2008 Mar 07
0
Packages micEcon, sampleSelection, and maxLik
Dear R Users: We have splitted up the micEcon package into three packages: a) Package "maxLik" provides tools for maximum likelihood estimations (see http://www.maxLik.org). b) Package "sampleSelection" provides tools for estimating Heckman-type sample selection/generalized tobit models (see http://www.sampleSelection.org). c) Package "micEcon" contains the remainder, i.e. mainly tools for microeconomic demand and firm models, e.g. estimating the "Almost Ideal Demand Syste...
2009 Jul 12
2
Heckman Selection MOdel Help in R
...; > Error: could not find function "heckit" > > > > Error: could not find function "invMillsRatio" > > > > Am I missing out something, do i have to install something apart from R > also, so far I have used > > > > install.packages( "sampleSelection", repos="http://R-Forge.R-project.org" ) > > install.packages("Rcmdr", dependencies=TRUE) > > > > Even then I am unable to run heckit, please help You have to install (only once) and *load* the package before you can use it: R> library( "sampleSel...
2008 Jul 16
1
Checking package vignettes: WARNING
...eave file into the /inst/doc subdirectory of this package. Unfortunately, 'R CMD check' gives a warning: ========================================== [...] * checking tests ... OK * checking package vignettes in 'inst/doc' ... WARNING --- f?hre texi2dvi auf Vignetten aus * creating sampleSelection-manual.tex ... OK * checking sampleSelection-manual.tex using pdflatex ... OK WARNING: There was 1 warning, see /home/suapm095/Documents/Econometrics/R/micEcon/micEcon/sampleSelection.Rcheck/00check.log for details ========================================== Since the line below "WARNING&qu...
2013 Nov 13
2
determinacion del tamaño de la muestra
...-project.org/web/packages/elec.strat/index.html> powerMediation<http://cran.r-project.org/web/packages/powerMediation/index.html> powerSurvEpi<http://cran.r-project.org/web/packages/powerSurvEpi/index.html> PowerTOST <http://cran.r-project.org/web/packages/PowerTOST/index.html> sampleSelection<http://cran.r-project.org/web/packages/sampleSelection/index.html> SampleSizeMeans<http://cran.r-project.org/web/packages/SampleSizeMeans/index.html> A usted le corresponde evaluar si alguna de estas librerias solventa su problema. Espero haberle sido de ayuda. Un saludo Javier --...
2011 Nov 25
1
Unable to reproduce Stata Heckman sample selection estimates
Hello, I am working on reproducing someone's analysis which was done in Stata. The analysis is estimation of a standard Heckman sample selection model (Tobit-2), for which I am using the sampleSelection package and the selection() function. I have a few problems with the estimation: 1) The reported standard error for all estimates is Inf ... vcov(selectionObject) yields Inf in every cell. 2) While the selection equation coefficient estimates are almost exactly the same as the Stata results,...
2009 Jan 27
2
Need help on running Heckman Correction Estimation using R
Team, I am trying to resolve the self-selection bias of a sample in an experiment and would like to run the Heckman Correction Estimation using R. Can someone help me with the R-Code... I tried searching for the discussion, but not successful. Thanks in advance, Best, Kishore/.. http://kaykayatisb.blogspot.com [[alternative HTML version deleted]]
2013 Nov 13
2
determinacion del tamaño de la muestra
...> > powerMediation< > http://cran.r-project.org/web/packages/powerMediation/index.html> > > powerSurvEpi< > http://cran.r-project.org/web/packages/powerSurvEpi/index.html> > > PowerTOST <http://cran.r-project.org/web/packages/PowerTOST/index.html> > > sampleSelection< > http://cran.r-project.org/web/packages/sampleSelection/index.html> > > SampleSizeMeans< > http://cran.r-project.org/web/packages/SampleSizeMeans/index.html> > > A usted le corresponde evaluar si alguna de estas librerias solventa su > > problema. > > &gt...
2013 Nov 13
1
Resumen de R-help-es, Vol 57, Envío 13
...trat/index.html> > powerMediation< > http://cran.r-project.org/web/packages/powerMediation/index.html> > powerSurvEpi< > http://cran.r-project.org/web/packages/powerSurvEpi/index.html> > PowerTOST <http://cran.r-project.org/web/packages/PowerTOST/index.html> > sampleSelection< > http://cran.r-project.org/web/packages/sampleSelection/index.html> > SampleSizeMeans< > http://cran.r-project.org/web/packages/SampleSizeMeans/index.html> > A usted le corresponde evaluar si alguna de estas librerias solventa su > problema. > > Espero haberle sid...
2011 Jul 11
1
Robust vce for heckman estimators
When using function heckit() from package ‘sampleSelection’, is there anyway to make t-tests for the coefficients using robust covariance matrix estimator? By “robust” I mean something like if a had an object ‘lm’ called “reg” and then used: > coeftest(reg, vcov = vcovHC(reg)). I’m asking this because in Stata we could use function heckman and then us...
2009 Jul 11
2
Heckman Selection Model/Inverse Mills Ratio
I have so far used the following command glm(formula = s ~ age + gender + gemedu + gemhinc + es_gdppc + imf_pop + estbbo_m, family = binomial(link = "probit")) My question is 1. How do i discard the non significant selection variables (one out of the seven variables above is non-significant) and calculate the Inverse Mills Ratio of the significant variables 2. I need the inverse
2011 Feb 24
0
clog-log based heckit?
Dear R Help, I'm using the sampleSelection library to run a heckman model. The default is to use a probit model for the selection equation. I would like to know if it is possible to use a clog-log for the selection equation either with the sampleSelection library or in a different way. Is this possible? I'd appreciate any advice! -- D...
2013 Nov 13
0
determinacion del tamaño de la muestra
...kages/elec.strat/index.html> > powerMediation<http://cran.r-project.org/web/packages/powerMediation/index.html> > powerSurvEpi<http://cran.r-project.org/web/packages/powerSurvEpi/index.html> > PowerTOST <http://cran.r-project.org/web/packages/PowerTOST/index.html> > sampleSelection<http://cran.r-project.org/web/packages/sampleSelection/index.html> > SampleSizeMeans<http://cran.r-project.org/web/packages/SampleSizeMeans/index.html> > A usted le corresponde evaluar si alguna de estas librerias solventa su > problema. > > Espero haberle sido de ayuda....
2011 Sep 15
2
Tobit Fixed Effects
Hi there, I need to run a Tobit Fixed Effects in a panel data with 4500 units for 8 years. It is a huge data set, my dependent variable is left truncated at zero, the distribution is skewed and my panel is balanced. Any suggestions on how to do that in R? I tried stuff like survreg, censReg, and tobit but none of them were satisfactory. Thanks, *Felipe Nunes* CAPES/Fulbright Fellow PhD
2014 Nov 06
3
Duda_Observed vs Predicted
...jo con dos diferentes: Zero inflated y Binomial Negativo y me gustaría comprobar que diferencia (distancia) existe entre cada uno de ellos y la realidad. Estoy trabajando con los siguientes paquetes: library(pscl) library(MASS) library(AER) library(VGAM) library(truncreg) library(censReg) library(sampleSelection) library(ggplot2) library(boot) library(aod) library(lmtest) library(zoo) library(nlme) library(lmtest) library(boot) library(spatcounts) Mi duda es: ¿Que comando podría utilizar para calcular por valores predichos por el Binomial negativo para los 14 primeros valores de la variable dependiente?...
2010 Oct 24
1
140 packages in R Commander!!
...39; 'numDeriv' 'statnet' 'rgenoud' 'hexbin' 'ellipse' 'gclus' 'mlbench' 'randomForest' 'SparseM' 'Formula' 'ineq' 'mlogit' 'np' 'plm' 'pscl' 'quantreg' 'ROCR' 'sampleSelection' 'scatterplot3d' 'systemfit' 'truncreg' 'urca' 'oz' 'fUtilities' 'fEcofin' 'RUnit' 'quadprog' 'iterators' 'locfit' 'maps' 'rcom' 'rscproxy' 'sp' 'VGAM' 'MCMCpack...
2012 Jul 09
0
Problem in plm package
...la,data, lhs=1,...) if (ncol(X) == 0) stop("empty model") however if I try to replicate this behaviour with the commands I am inputing into the original function, it gives ncol(X) is 17 or something like that. My code is (I am not sure about sharing permissions for dataset... ): library(sampleSelection) library(foreign) library(censReg) library(plm) library(micEcon) library(ggplot2) data <- read.dta('kpfull1.dta') summary(data) attach(data) # profit share ratio. as profit I take profit in 91 which is the closest year and as share I take number of shares offered for voucher scheme data...
2009 Jul 12
0
ERROR message while using <-invMillsRatio()
..." "p" "phi" "capphi" [71] "invmil_4" "subobaby" "fearf_m" "disc_m" "dis_fear" [76] "fearf_r" "fearf_rm" "dis_ff_r" "s" > library("sampleSelection") > myProbit<- glm(s ~ age + gender + gemedu + gemhinc + es_gdppc + + imf_pop + estbbo_m, family = binomial(link = "probit")) > summary(myProbit) Call: glm(formula = s ~ age + gender + gemedu + gemhinc + es_gdppc + imf_pop + estbbo_m, family = binomial(link = "...
2010 Feb 16
1
R_LIBS_USER bugs
...c/R-2.10/library:/develop/lnf/i386/R/LNFr-KernSmooth/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-np/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-plm/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-pscl/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-ROCR/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-sampleSelection/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-systemfit/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-tseries/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-urca/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-quantreg/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-mvtnorm/reloc/R-2.10/library:/develop...