Displaying 20 results from an estimated 20000 matches similar to: "how to specify random effects on intercepts for mlogit?"
2011 Aug 12
0
Mixed Logit model mlogit error
I am new to R but I have managed to use mlogit to run multivariate logit
models successfully. My data violates the Independence of Irrelevant
Alternatives assumption and now I would like to run a mixed logit model. It
is a "wide" data set with 9 independent (individual) variables and three
choices (variable Y). The database is in a cvs file called CAU.
This is the code I have run
2013 Jan 10
0
mgcv: Plotting probabilities for binomial GAM with crossed random intercepts and factor by variable
mgcv: Constructing probabilities for binomial GAM with crossed random
intercepts and factor by variable
Hello,
(I'm sorry if this has been discussed elsewhere; I may not have been
looking in the right places.)
I ran a binomial GAM in which "Correct" is modelled in terms of the
participant's age and the modality in which the stimulus is presented
(written vs spoken).
2013 Mar 02
0
glmnet 1.9-3 uploaded to CRAN (with intercept option)
This update adds an intercept option (by popular request) - now one can fit a model without an intercept
Glmnet is a package that fits the regularization path for a number of generalized linear models, with with "elastic net"
regularization (tunable mixture of L1 and L2 penalties). Glmnet uses pathwise coordinate descent, and is very fast.
The current list of models covered are:
2013 Mar 02
0
glmnet 1.9-3 uploaded to CRAN (with intercept option)
This update adds an intercept option (by popular request) - now one can fit a model without an intercept
Glmnet is a package that fits the regularization path for a number of generalized linear models, with with "elastic net"
regularization (tunable mixture of L1 and L2 penalties). Glmnet uses pathwise coordinate descent, and is very fast.
The current list of models covered are:
2006 Aug 16
1
[SPAM] - RE: REML with random slopes and random intercepts giving strange results - Bayesian Filter detected spam
Can you provide the summary(m2) results?
> -----Original Message-----
> From: Simon Pickett [mailto:S.Pickett at exeter.ac.uk]
> Sent: Wednesday, August 16, 2006 7:14 AM
> To: Doran, Harold
> Cc: r-help at stat.math.ethz.ch
> Subject: [SPAM] - RE: [R] REML with random slopes and random
> intercepts giving strange results - Bayesian Filter detected spam
>
> Hi again,
2006 Aug 15
1
REML with random slopes and random intercepts giving strange results
Hi everyone,
I have been using REML to derive intercepts and coeficients for each
individual in a growth study. So the code is
m2 <- lmer(change.wt ~ newwt+(newwt|id), data = grow)
Calling coef(model.lmer) gives a matrix with this information which is
what I want. However, as a test I looked at each individual on its own and
used a simple linear regression to obtain the same information, then
2011 Jun 22
1
mlogit model that contains both individual-specific parameters and universal parameters
Hello,
I am pretty new to mlogit, and still trying to figure out what models to use.I have a data set of N individuals, each of which faces I alternatives. The utility function of individual n, for choice i is:
u(i,n) = alpha(i) * x1(i,n) + beta * x2(i,n)
where alpha(i) is the individual specific parameter, and beta is shared among all individuals. I don't really know how to set this up
2012 Jun 03
1
Multiple imputation, multinomial response & random effects
Dear R-group,
Could somebody recommend a package that can deal with a multinomial response variable (choice of breeding tactic in mice, which has four unordered levels), multiply-imputed data (generated using the Amelia package) and two non-nested random effects: individual identity (133 individuals made up to four choices each) and year (for which there are six levels and sample size varies
2008 Jul 03
0
Random effects and lme4
I'm running some multi-level binomial models with lme4 and have a question
regarding the estimated random effects.
Suppose I have nested data e.g. clinic and then patient within clinic. The
standard deviations of the random effects at each level are roughly equal in
a model for real life data. Attention then turns to examining the individual
random effects at each level. I'm extracting
2011 Jul 02
0
The test of randomized slopes(intercepts)
Hi all:
I perform the linear mixed model for 300 persons, y is CD4 count,x is time.
I randomized slope and intercept,so I can get 300 slopes and 300 intercepts.Now I wanna test wheter the variance of 300 slopes and 300 intercepts differs from zero. If the variance of 300 slopes(or intercepts) differs from zero at 0.05 significant level,I should randomize the slope(or intercept), and if not,I
2012 Apr 19
1
mlogit learning error
I am learning five mlogits as follows
v1.model<-mlogit(v1~1|v2+v3+v4+v5, data=mlogit.v1.data, reflevel="1")
v2.model<-mlogit(v2~1|v1+v3+v4+v5, data=mlogit.v2.data, reflevel="1")
v3.model<-mlogit(v3~1|v1+v2+v4+v5, data=mlogit.v3.data, reflevel="1")
v4.model<-mlogit(v4~1|v1+v2+v3+v5, data=mlogit.v4.data, reflevel="1")
2024 Jan 08
1
how to specify uncorrelated random effects in nlme::lme()
Dear professor,
I'm using package nlme, but I can't find a way to specify two uncorrelated random effects. For example, a random intercept and a random slope. In package lme4, we can specify x + (x ll g) to realize, but how in nlme?
Thanks!
????????????????????????
Zhen Wang
Graduate student, Department of Medical Statistics, School of Public Health, Sun Yat-sen
2003 Sep 12
1
rsync logfile - daemon does not log enough
I am running rsync version 2.56 in daemon mode on a server running Redhat 8.0.
When I check my log file (located in /var/log/rsyncd.log), the only lines I see
have to do with the server starting up, like so:
2003/09/11 16:53:42 [15025] rsyncd version 2.5.6 starting, listening on port 873
I would like to see output relating to connections, usernames etc., so I set up
the following rsyncd.conf
2018 Feb 21
1
Specify multiple nested random effects in lme with heteroskedastic variance across group
I want to fit a random effects model with two separate nested random
effects. I can easily do this using the `lmer` package in R. Here's how:
model<-lmer(y ~ 1 + x + (1 | oid/gid) + (1 | did/gid), data=data)
Here, I'm fitting a random intercept for `oid` nested within `gid` and
`did` nested within `gid`. This works well. However, I want to fit a model
where the variance of the
2010 Mar 07
3
mlogit
I am trying to follow this example for multinomial logistic regression
http://www.ats.ucla.edu/stat/r/dae/mlogit.htm
However, I cannot get it to work properly.
This is the output I get, and I get an error when I try to use the mlogit
function. Any ideas as to why this happens?
> mydata <- read.csv(url("http://www.ats.ucla.edu/stat/r/dae/mlogit.csv"))
> attach(mydata)
>
2009 Dec 01
1
LMER: How to specify Random Effects
I saw different specifications for Random Effects and I'm confused about
the use of "/" and the use of "(0+...|)" .
Let say we have a nested structure where some countries have some
several plants in different states and we measure the reaction to a drug.
The list of Countries = USA, France, Italy
The States for USA = Michigan, Florida, California
The States for France
2012 Oct 01
2
mlogit and model-based recursive partitioning
Hello:
Has anyone tried to model-based recursive partition (using mob from package
party; thanks Achim and colleagues) a data set based on a multinomial logit
model (using mlogit from package mlogit; thanks Yves)?
I attempted to do so, but there are at least two reasons why I could not.
First, in mob I am not quite sure that a model of class StatModel exists for
mlogit models. Second, as
2010 Feb 10
0
mlogit: Error reported using sample dataset
I've been working on a multinomial logit model, trying to predict
vegetation types as a function of total phosphorus. Previous responses to
my postings have pointed me to the mlogit package. I'm now trying to work
examples and my data using this package.
data("Fishing", package = "mlogit")
Fish <- mlogit.data(Fishing, varying = c(4:11), shape = "wide",
2010 Feb 14
1
mlogit function cut off formular
I'm trying to fit a multinominal logistic model using package mlogit. I have
15 independent variables. The code looks like this:
m<-mlogit(score~0|f1+f2+f3+f4+f5+f6+f7+f8+f9+f10+f11+f12+f13+f14+f15, data,
reflevel="1")
And it gives the following error message:
Error in parse(text = x) :
unexpected ')' in "score ~ 0 + alt:(f1 + f2 + f3 + f4 + f5 + f6 + f7 + f8
+ f9
2010 Feb 24
2
mlogit is not an S4 object error
Hello,
I've been getting the following error when using the mlogit function from
the mlogit package
This is one of the examples provided in the Package "mlogit" January 27,
2010 description
data("Fishing", package="mlogit")
Fish <- mlogit.data(Fishing, varying = c(4:11), shape="wide",
choice="mode")
summary(mlogit(mode ~ pr + ca - 1,