Displaying 20 results from an estimated 1000 matches similar to: "poLCA"
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
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 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
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
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
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
_________________________________________________________________
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
2013 Apr 03
0
Help with lmRob function
Hi,
I am fairly new to R and have encountered an issue with the lmRob function that I have been unable to resolve. I am trying to run a robust regression using the lmRob function which runs successfully, but the results are rather strange. I'm not sure it's important, but my model has 3 dichotomous categorical variables and 2 continuous variables in it. When I look at a summary of my
2011 Dec 23
2
Latent class multinomial (or conditional) logit using R?
Hi everyone?
Does anybody know how can I estimate a
Latent class multinomial (or conditional) logit using R?
I have tried flexmix, poLCA, and
they do not seem to support this model.
thanks in advance
adan
--
View this message in context: http://r.789695.n4.nabble.com/Latent-class-multinomial-or-conditional-logit-using-R-tp4230083p4230083.html
Sent from the R help mailing list archive at
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
2009 Jul 22
1
R extract vertices for polygon
Dear R users,
I'm trying to extract from a given matrix (GROUP) the coordinates of the vertices of the different groups (i.e. 3, 7, 1 . . .) to plot the polygons to delineate the area in which each group "wins" and colour it diferentially. I can make a simple point plot, but I would like to add polygons with full colored area. The example is with a 5x5 matrix, but I'm working
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 Feb 02
2
Help with one of "those" apply functions
Hello there,
I'm still struggling with the *apply commands. I have 5 people with id's
from 10 to 14. I have varying amounts (nrep) of repeated outcome (value)
measured on them.
nrep <- 1:5
id <- rep(c("p1", "p2", "p3", "p4", "p5"), nrep)
value <- rnorm(length(id))
I want to create a new vector that contains the sum of the
2001 Feb 09
2
Announce: VCE v0.1.1
Hi All,
I have released VCE v0.1.1. It is primarily a bug fix/cleanup release. I
recommend all users to upgrade (It's only a 50k download).
VCE is still lacking UTF-8 support. This is planned for the next release. I
have already got UTF-8/unicode working on my Windows 2000 box. I just need
to get Win 95/98/ME to work.
VCE needs an icon. If anybody has a good icon, design, or idea please let
2001 Feb 15
2
Announce: VCE v0.1.2
Hello All,
VCE does unicode/utf-8. I recommend all users to upgrade as it now handles
extended characters correctly.
There are now two binary versions of VCE. There is an NT version (for
Windows NT/2000) and a 95 version (for Windows 95/98/ME). They will
eventually be merged into one executable again. Download the appropriate
file for your platform.
Writing unicode/international apps for
2006 Nov 23
1
statistics help
hi
im a bioinformatics student as i have never had any previous programming
experience
i need help
this is the question i need to answer:
Random walk model
we want to model a random walk where you take a step to the left with
probability p
and one to the right with probability 1-p. Now assume that there is a line
of 11 squares.
once you are in square 0 or in square 10 the walk ends. The aim
2011 Mar 03
3
Probabilities greather than 1 in HIST
Dear all,
I am a newbie in R and could not find help on this problem. I am trying to
plot an histogram with probabilities in the y axis. This is the code I am
using:
#TLC uniform
n=30
mi=1; mx=6
nrep=1000
xbar=rep(0,nrep)
for (i in 1:nrep) {xbar[i]=mean(runif(n,min=mi,max=mx))}
hist(xbar,prob=TRUE,breaks="Sturges",xlim=c(1,6),main=paste("n =",n),
xlab="Média",