Displaying 20 results from an estimated 1000 matches similar to: "Inverse Mills in clustered (multilevel) cross-sectional panel data"
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
2009 Oct 17
0
lmer function and Inverse mills ratio
Dear R users
I have two questions, I have been on this problem for last 3 months, please
help
First question:
*How can I use the lmer function for a three level probit ( ie please help
me with the command syntax)?*
The second question is,
*how can I then subsequently calculate the Inverse Mills ratio after the
above probit is calculated using lmer?* Is there any other way (if lmer does
not do
2009 Oct 18
2
How to create MULTILEVELS in a dataset??
Dear R users
I have a data set which has five variables. One depenedent variable y, and 4
Independent variables (education-level, householdincome, countrygdp and
countrygdpsquare). The first two are data corresponding to the individual
and the next two coorespond to the country to which the individual belongs
to. My data set does not make this distinction between individual level and
country
2009 Jun 29
1
Stata file Import and Analysis in R
Hi
I have a stata data set (.dta file) of size 600 MB, I need to import it in
R and do a 2SLS multilevel analysis on the data set. I would eb grateful if
help is provided for the first part of how to import this big file from
Stata to R and then how to open the imported Stata file in R?
Kindly help
Thanks in advance
--
Dr.Saurav Pathak
PhD, Univ.of.Florida
Mechanical Engineering
Doctoral
2009 Jul 01
2
getOptions("max.print") in R
I am typing the following on the command prompt:
>variab = read.csv(file.choose(), header=T)
>variab
It lists 900,000 ( this is the total number of observations in "variab" )
minus 797124 observations and prompts the following message
[ reached getOption("max.print") -- omitted 797124 entries ]]
Is there a way to see the entire set of data, ie all of 900,000 obs, and
2009 Jul 12
0
ERROR message while using <-invMillsRatio()
Hi
I have been trying so many different things to get my Inverse Mills Ratio
going for a Two stage Heckman Model, I have tried the following so far (the
commands are listed below till teh point where I get an error), I get an
error in the last sentence (marked in bold below), if this were successful
then I could have used the IMR as a control in my OLS (which would be the
OLS for the outcome
2009 Jul 15
0
DECLARING A PANEL VARIABLE???
Hi
I am working on a panel data, my data are clustered/grouped by the variable
"yearctry", I am running the regression below, but I cant make the
regression recognise "yearctry" as the panel variable in the regression
myProbit<- glm(s ~ age + gender + gemedu + gemhinc + es_gdppc +
imf_pop + estbbo_m, family = binomial(link = "probit"), data =
adpopdata)
Can
2009 Jul 10
0
GLM for Probit for Panel Data
Hello
I am working on a panel data, my panel variable is the variable "yearctry",
let me explain what I mean, yearctry is calculated based on the year and the
ISD phone code of a country, eg, for the year 2000 say and for country USA
say (code = 001), my yearctry variable will then be 2000001, there are 2000
observations (ie 2000 individual responses with yearctry = 2000001), I have
65
2009 Oct 17
0
how to cluster data for use with lmer
Dear R users
My data set is e
> names(e)
[1] "yearctry" "discent" "age" "gender"
"gemeduc" "gemhhinc" "ref_group" "fearfail_ref" "knowent_ref"
"nbgoodc_ref"
[11] "nbstatus_ref" "estbbuso_ref" "lngdp" "lngdpsq"
2009 Jun 30
1
Stata file and R Interaction :File Size Problem in Import
Hi
I am using Stata 10 and I need to import a data set in stata 10 to R, I
have saved the dataset in lower versions of Stata as well by using saveold
command in Stata.
My RAM is 4gb and the stata file is 600MB, I am getting an error message
which says :
"Error: cannot allocate vector of size 3.4 Mb
In addition: There were 50 or more warnings (use warnings() to see the
first
2009 Jun 29
2
Large Stata file Import in R
Hi
I am using Stata 10 and I need to import a data set in stata 10 to R, I have
saved the dataset in lower versions of Stata as well by using saveold
command in Stata.
My RAM is 4gb and the stata file is 600MB, I am getting an error message
which says :
"Error: cannot allocate vector of size 3.4 Mb
In addition: There were 50 or more warnings (use warnings() to see the first
50)"
Thus
2009 Jul 16
1
PROBIT REGRESSION FOR GROUPED/CLUSTERED DATA
Hello all
I have been working to fix this for weeks now, It should be simple to fix.
Please help
Let me explain what I am doing, I have a data set for 65 countries over a
period of 9 years (2000-2008). Each country has on an average say 2000
interviews, so that the total set has roughly 65*9*2000 data
points/observations (of course there are missing vales as well). Now let me
explain how are the
2009 Jul 12
2
Heckman Selection MOdel Help in R
Hi Saurav!
On Sun, Jul 12, 2009 at 6:06 PM, Pathak,
Saurav<s.pathak08 at imperial.ac.uk> wrote:
> I am new to R, I have to do a 2 step Heckman model, my selection equation is
> below which I was successful in running but I am unable to proceed further,
>
>
>
> I have so far used the following command
>
> glm(formula = s ~ age + gender + gemedu + gemhinc + es_gdppc +
2004 Aug 19
1
sample selection problem, inverse mills ratio (Heckman, Lewbel, ...)
-----Ursprüngliche Nachricht-----
Von: Wildi Marc, wia
Gesendet: Mittwoch, 18. August 2004 10:11
An: r-help@lists.R-project.org
Betreff:
Hi
Does anybody know from an R-package devoted to sample selection problems (Heckman's lambda, Lewbel, ...)?
Thanks and best regards
Marc Wildi
[[alternative HTML version deleted]]
2010 Jun 30
6
Multiline and grouping in R
Hi All,
this is my first mail here.
I'm trying to plot a multiline chart grouping values with no success. I have
read a lot in the official Wiki and also searched via Google, but I did not
find anything.
I'm importing some data from a cvs file. Here is a sample:
YEAR,AREA,CASES
1988,CONTRACTS,286
1988,INTERNATIONAL,189
1988,FAMILY,385
1988,TAXATION,177
1989,CONTRACTS,233
2010 Mar 26
1
Multilevel modeling with count variables
I am using a multilevel modeling approach to model change in a person's
symptom score over time (i.e., longitudinal individual growth models). I
have been using the lme function in the multilevel package for the analyses,
but my problem is that my outcome (symptoms) and one of my predictors
(events) are count data, and are non-normal. Do you have any suggestions
for how to deal with them?
2003 Aug 25
2
Book recommendations: Multilevel & longitudinal analysis
Hi, does anyone out there have a recommendation for multilevel / random
effects and longitudinal analysis?
My dream book would be something that's both accessible to a
non-statistician but rigorous (because I seem to be slowly turning into a
statistician) and ideally would use R.
Peter
2005 Nov 27
2
multilevel models and sample size
It is not a pure R question,but I hope some one can give me advices.
I want to use analysis my data with the multilevel model.The data has 2 levels---- the second level has 52 units and each second level unit has 19-23 units.I think the sample size is quite small,but just now I can't make the sample size much bigger.So I want to ask if I use the multilevel model to analysis the data set,will
2006 Mar 01
1
Book: Multilevel Modeling in R ETA?
Hi R folks (Dr. Bates in particular),
In August 2005, Dr. Bates mentioned that the documentation for lme4
"will be in the form of a book with the working title 'Multilevel
Modeling in R'" and I'm just wondering if there is an estimated date of
publication or if it's still a long way off. The Rnews article does a
great job of introducing the package, but I'm
2007 Jul 23
1
Multilevel package: Obtaining significance for waba within-group correlation?
Hello everyone,
I am employing the waba method from the multilevel package for obtaining
a within-group correlation (Description:
http://bg9.imslab.co.jp/Rhelp/R-2.4.0/src/library/multilevel/man/waba.html).
Does anybody know a way or a calculation for obtaining a significance
value for that correlation?
And another question: Does anybody know whether it is possible to save
individual