Displaying 20 results from an estimated 300 matches similar to: "Latent class multinomial (or conditional) logit using R?"
2009 Feb 25
2
run latent class analysis with R
What's the best approach to running latent class analysis with R? I've downloaded both randomLCA and poLCA packages, but I am interesting in running a standard LCA with individual records (not frequency table) as input data.
Wen Gu
John Jay College of Criminal Justice445 West 59 StreetNew York, NY 10029
wgu@gc.cuny.edu
_________________________________________________________________
2011 Jan 31
2
Latent Class Logit Models in discrete choice experiments
Dear R users,
I would like to perform Latent Class Logit Models for the analysis of choice experiments in environmental valuation.
This kind of analysis is usually performed with NLogit Software (http://www.limdep.com).
I attach the results I usually obtain using NLogit and NLogit model specifications.
For Random parameter models and Logit Models I usually perform my analysis with the package
2012 Jul 04
1
How do you impute missing data using Latent Class Model (poLCA package)
My problem is I have data with both categorial and numerical data,
currently only the categorical number contains missing data, was wondering
do I make a new dataframe containing only the categorical columns?
How would you use Latent Class Model specifically poLCA to impute the
missing data?
http://www.sscnet.ucla.edu/polisci/faculty/lewis/pdf/poLCA-JSS-final.pdf
The reason why I chose not to
2006 Jul 13
1
TR: Latent Class Analysis
_____
De : Pousset [mailto:maud.pousset@noos.fr]
Envoyé : mardi 4 juillet 2006 18:38
À : 'r-help@stat.math.ethz.ch'
Objet : Latent Class Analysis
Hello everybody,
I am working on latent class analysis and have already used the ‘R’ function
« lca » (in the e1071 package). I ‘ve got interesting results but I can’t
simply find out the methodology used by this routine :
1) What
2012 Feb 13
1
Retrieve by Id from an R list
Hi everyone,
I'm using the poLCA module for some analysis work.
Basically, Im using the command >poLCA(f, data=response,nclass=2)
This returns a poLCA object (a list)
>From this data, I need to retrieve certain indexes, such as[[5]] as seen
below.
[[5]]
Pr(1) Pr(2) Pr(3)
class 1: 0 1.0 0.0
class 2: 0 0.5
2013 Apr 03
1
(no subject)
Hello,
I want to perform a latent class analysis using poLCA package. My formula
is:
substances <- cbind(subs1, subs2, subs3, subs4, subs5, subs6) ~
gender+age+education+income+occupation+urban+dbehavior+incarceration+treatment+depression+alcriteria
I want to include sample weights in the model, I have read that poLCA does
not take into account weights, but when I introduce them, it seems
2012 Feb 09
1
poLCA and conditional dependence
Dear all,
I'm an Sri Lankan undergraduate student. I'm also a total newbie to R.
My aim is to use the poLCA package to do a latent class analysis.
I found the documentation very helpful, but need to make a small
clarification that has stumped me awhile.
In my work, I need to make provision for conditional dependence. I'm told
that poLCA lets you do that. Unfortunately, I
2012 May 29
1
model frame and formula mismatch with latent class analysis poLCA
Dear R-users,
I keep getting an ERROR saying " Error in model.matrix.default(formula,
mframe) : model frame and formula mismatch in model.matrix() " when i fit
poLCA with more than 63 variables. Below are the details.
I am trying to do a Latent Class Analysis using poLCA. My data set contains
binary scores of, for instance, 200 students on 100 items. These numbers
could even be more
2009 Jul 02
1
Windows zip-files (binaries) for older version of scatterplot3d
Hi,
I am working with -poLCA- which uses the package -scatterplot3d- in
order to work. However, I work on a restricted server that is not
online. The R-version installed there is 2.6. However, running
library(poLCA) after installing the most recent -scatterplot3d- on the
server leaves me with R telling me that scatterplot3d needs R-version
2.7 or a more recent versions. Since I cannot install the
2009 Sep 08
1
cbind formula definition
Hi there,
I have the following problem:
I have a package called "polLCA" which has the following syntax:
poLCA(formula, data)
and needs the following formula definition:
formula <- cbind(V1,V2,V3,...)
So far so good.
What I tried now was the following:
#Get "data" with the "read.table" fuction
data <- read.table("d:/ .....)
#Select cols to use in the
2011 Aug 05
0
Latent Class with covariates
Dear all
Last week, I posted a question and some of you spent their valuable time to respond. Thank you (once again). This time, after doing a lot of homework, I return with a second question on the issue.
I was advised to use poLCA for a Latent Class Analysis with covariates. The software works well, although I feel a bit uncomfortable with the fact that you need to run many times the
2012 Mar 08
1
poLCA
Hi,
I am running some latent class models with civariates using poLCA in R, and
have a question the meaning of some error messages.
My model has 8 y-variables (dichotomous) and 2 x-variables (also dichotomous),
and I am trialling different numbers of classes.
When I run a 2-class model, the model runs fine without any error messages. I
used the nrep = 10 option to avoid local maxima. Class %
2008 Nov 05
0
latent class analysis of nominal and continuous indicators
Dear R-help listers,
I am a new convert to R. I am trying to use a r package to conduct latent
class analysis as a triangulation check of my cluster analysis using the
cluster package in R. I have about 30 cases and 6 indicators, some of which
are binary indicators and others are ratio-level variables (percentages). I
looked around for information in flexmix, lca, and poLCA, and couldn't find
2013 Oct 25
2
R CMD check problem with R 3.0.2
Using SUSE Linux, Windows 32 bit and Windows 64 bit R 3.0.2 , I am unable
to use R CMD check successfully. Here is the Windows 64 bit report:
Z:\R\source\effects>R CMD check pkg
* using log directory 'Z:/R/source/effects/pkg.Rcheck'
* using R version 3.0.2 (2013-09-25)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* checking for file
2012 Feb 12
3
Writing output into a file
Hi everyone,
I'm an R newbie working with the poLCA module. I achieved my target without
having to bother anyone, but It seems that I've got stuck at the last
minute.
My problem is simple. I need to write my results into a file.
My results are in the shape of a list (unbalanced columns)
I've considered several methods (sink(), write.file) etc. etc.
Unfortunately, I'm not the best
2011 Dec 21
0
Estimating a latent class multinomial logit regression with flexmix
I am trying to estimate a latent class multinomial logit regression with
flexmix.
I am not sure if I should do it as follows:
m4<-flexmix(cbind(y,1-y)~x1+x2|id,model=FLXMRglm(family="binomial"),data=NPreg,k=2)
,
where id links each row with the corresponding respondent.
Each respondent has 4 alternatives to chose from.
y takes the value 1 only for the alternative chosen;
x1 and
2011 Aug 05
2
[?]apply functions or for loop
Hello,
First time posting to this mail list.
I'd like to use R in the most efficient way. I'm accomplishing what I want,
but feel there is a more R'ish way to do it. Just learning R.
*My goal: get ranks of value across rows with row names and column names
intact.*
I'm guessing one of the [?]apply functions will do what I need, but I
couldn't sort out which one (after a lot
2020 Jun 26
2
R 4.0.0 rebuild status
On Friday, 26 June 2020 10.47.13 WEST I?aki Ucar wrote:
> I used bcond locally and wrongly assumed that fedpkg build would
> support --with BCOND and --without BCOND. Instead, the way to activate
> it is to change to "%bcond_with check" and then revert to
> "%bcond_without check". The only difference with bootstrap is that
> "bootstrap" is recognized
2010 Mar 05
0
Still on poLCA
Dear all,
I have just sent a message asking about poLCA but I thought of another question I wanted to ask. I get the G^2 statistic in my output and want to test for its significance. I get that the degrees of freedom for the test are (S-1-p) where S is the number of different patterns observed and p is the number of estimated parameters. Are these the "residual degrees of freedom" that
2005 Apr 14
0
latent class regression
As far as I know, there are 2 libraries for latent class regression,
flexmix and mmlrc. Since I don't have experience with either one, can
someone give me some advice which library is better?
Thank you so much.