Re: [R] package to fit mixtures of student-t distributions

2017-06-30 Thread Ingmar Visser
gamlss.mx can fit these I believe (although no experience with these myself) flexmix may be (relatively easily) adaptable to accomplish this as well hth, Ingmar Ingmar Visser Universitair Hoofddocent ontwikkelingspsychologie | Directeur College Psychologie Afdeling Psychologie | Faculteit

Re: [R] HMM-Classification

2018-11-04 Thread Ingmar Visser
There are several packages that allow fitting hidden Markov models (assuming that that is what you mean by HMM ...), which you can find here: https://cran.r-project.org/web/packages/ Best, Ingmar Ingmar Visser Universitair Hoofddocent ontwikkelingspsychologie | Directeur College Psychologie

[R] [R-pkgs] standard errors in depmixS4 beta version 1.4 on r-forge

2019-01-14 Thread Ingmar Visser
done and we are confident about the robustness of this new functionality we will post the package to CRAN. Happy mixing, Ingmar Visser & Maarten Speekenbrink Ingmar Visser Universitair Hoofddocent ontwikkelingspsychologie | Directeur College Psychologie Afdeling Psychologie | Faculteit Maatsch

Re: [R] latent class factor analysis (LCFA) in R?

2010-02-23 Thread Ingmar Visser
Dear Mark, I don't know whether it has ... But there are some packages that provide functionality for specifying mixtures of user-defined distributions, in your case a factor model. package flexmix has an example of how to fit mixtures of user-defined models and so does my own package depmixS4 (wh

Re: [R] Bimodal distribution

2010-02-24 Thread Ingmar Visser
Samor, A somewhat indirect answer: you could fit a mixture distribution to your data and test how many components are needed to best describe your data. hth, Ingmar On Wed, Feb 24, 2010 at 1:22 PM, Samor Gandhi wrote: > Hello, > > Is there any test for bimodality in R that > > x <- c(rnorm(1

Re: [R] IMPORTANT! How work "constrOptim"? Why error in this routine???

2010-03-04 Thread Ingmar Visser
The objective function, scarti, needs a vector as input and not 4 separate arguments. constrOptim will call pp<- c(0.0088,0.3339,0.3092,1.7530) scarti(pp) which produces the error hth, Ingmar On Thu, Mar 4, 2010 at 10:27 AM, wrote: > > I have to calculate the value of a set of parameter that

Re: [R] Package for Clustering - Query

2009-06-02 Thread Ingmar Visser
hi Lars, a number of packages do this: flexmix does latent class regression, depmix does lca on mixed variables, depmixS4 does lca regression on mixed variables. hth, Ingmar On 28 May 2009, at 23:53, Lars Bishop wrote: Dear R users, Is there any package for Latent Class Analysis (to be used in

Re: [R] "R CMD check" does not find a mistake

2009-06-09 Thread Ingmar Visser
try issueing this before calling R CMD check export _R_CHECK_CODOC_S4_METHODS_=true hth, Ingmar On 9 Jun 2009, at 16:17, Christophe Genolini wrote: Hi the list, I build a package. They was a mistake in it, but R CMD check did not find it. Is that normal ? Here is what Kurt gets (which i

Re: [R] Fitting Mixture of Non-Central Student's t Distributions

2009-06-15 Thread Ingmar Visser
Dear Susanne & Dave, The gamlss package family has an enormous variety of distributions and a function to combine them into mixtures. In particular, the 3 parameter student's t and the 4 parameter generalized t distribution. Hth, Ingmar On 15 Jun 2009, at 17:12, David Hunter wrote: Hi Sus

Re: [R] Latent Profile Analysis Package?

2010-01-15 Thread Ingmar Visser
Jon, There are packages that fit mixtures of multivariate normals (mclust) and in flexmix one can also model multiple measures (with local independence assumption). hth, Ingmar On Fri, Jan 15, 2010 at 11:08 AM, Jon Toledo wrote: > > I扉e several packages for latent class analysis, but I was won

Re: [R] HMM Package parameter estimation

2013-04-16 Thread Ingmar Visser
It seems that indeed providing other starting values initiates iterations to take place. However, more worrisome is that the does not seem to converge, even when upping the number of iterations. Below I run a 2 state model on the same as well for comparison (I have added set.seed statements to make

Re: [R] Regression and FMMs with flexmix

2013-04-25 Thread Ingmar Visser
Robin, On Wed, Apr 24, 2013 at 11:24 AM, Robin Tviet wrote: > > I am trying to understand how to use the flexmix package, I have read the > Leisch paper but am very unclear what is needed for the M-step driver. I > am just fitting a simple linear regression model. The documentation is far > fro

Re: [R] Strange result from GAMLSS

2012-09-11 Thread Ingmar Visser
Hi John, I don't have access to R right now but do remember that some of the parametersin gamlss have log and/or logit link functions which would give the possibility for negative values. Hth, Ingmar Department of Psychology University of Amsterdam Op 11 Sep 2012 om 21:01 heeft John Kerpel he

Re: [R] Fitting a Mixture of Noncentral Student t Distributions to a one-dimensional sample

2014-05-08 Thread Ingmar Visser
Hi Johannes, Below code gives good results for me; note that trying multiple starting is often important in fitting mixture models, even in simple cases like this. Note also that the sigma and nu parameters in gamlssMX are fitted on a log scale, hence the possible occurrence of negative results. ht

Re: [R] Bayesian HMM

2014-05-23 Thread Ingmar Visser
Searching on r-project for bayesian hidden Markov model gives several potentially useful links: https://www.google.com/search?q=bayesian+hidden+markov+model&domains=r-project.org&sitesearch=r-project.org&btnG=Google+Search hth, Ingmar On Fri, May 23, 2014 at 12:09 PM, Bukar Alhaji wrote: > Dea

Re: [R] Forward and backward algorithm in R?

2012-10-31 Thread Ingmar Visser
R-site search with 'forward backward' returns references to packages for fitting hidden Markov models. hth, Ingmar https://www.google.com/search?q=forward+backward&domains=r-project.org&sitesearch=r-project.org&btnG=Google+Search On Wed, Oct 31, 2012 at 3:50 PM, quantum wrote: > How can I wrti

Re: [R] cluster analysis in R

2012-11-15 Thread Ingmar Visser
Dear KitKat, After installing R and reading some introductory material on getting started with R you may want to check the CRAN task view on cluster analysis: http://cran.r-project.org/web/views/Cluster.html which has many useful references to all kinds and flavors of clustering techniques, hierar

Re: [R] depmixS4 prediction

2012-11-15 Thread Ingmar Visser
Dear EJ, The depmixS4 package has no forecasting or predict functions, but as you note, the forecast distribution is a relatively straightforward function of the parameters. The posterior function provides you with the probability distribution over the states at the end of your sequence and the tr

Re: [R] cluster analysis in R

2012-11-22 Thread Ingmar Visser
It's hard to answer these questions without knowing what the errors are and how they can be reproduced. Best, Ingmar On Thu, Nov 22, 2012 at 1:03 AM, KitKat wrote: > Thanks, I have been trying that site and another one > (http://www.statmethods.net/advstats/cluster.html) > > I don't know if I sh

Re: [R] what is wrong with for and if cycle in R

2013-12-19 Thread Ingmar Visser
I get this error below, there seems to be hidden character in your input instead of a parenthesis: > for(ity in 1:4) + { + if (ity==1) Error: unexpected input in: "{ if (ity==1Ô" > { + print(ity) + } Error in print(ity) : object 'ity' not found > } Error: unexpected '}' in "}" > hth, Ingmar On

[R] [R-pkgs] depmixS4 version 1.3-0 on CRAN

2013-09-20 Thread Ingmar Visser
Package news (see below for general description of functionality) depmixS4 version 1.3-0 has been released on CRAN. See the NEWS file for an overview of all changes. The most important user-visible changes are: 1) more compact pretty-printing of parameters in print/summary of (dep)mix objects (fo

Re: [R] problem with MLE estimation using Kalman filter

2013-10-16 Thread Ingmar Visser
On Wed, Oct 16, 2013 at 8:30 PM, Curtis Burkhalter wrote: > I try to use the mle2 function written for R. The error message states > that the argument "minuslog1" is missing with no default, but I've The argument is minuslogl Note: l instead of 1 hth, Ingmar _

Re: [R] Mover Stayer Models

2010-07-09 Thread Ingmar Visser
depmixS4 can fit such models as a constrained latent markov mdoel, best, Ingmar On Fri, Jul 9, 2010 at 7:52 PM, Katherine Sanders < sanders@buckeyemail.osu.edu> wrote: > Does anyone know how to program mover stayer models in R? They are a type > of Markov chain model where there is a group o

Re: [R] latent class analysis with mixed variable types

2010-07-26 Thread Ingmar Visser
Donald, Mixed types are handled in flexmix and in depmixS4, not sure about ordinal in flexmix (depmixS4 does not handle ordinal but does handle multinomial, constraints may be an option to deal with ordinal); both have glm distributions, ie gaussian, binary and many others. Best, Ingmar On Sat, Ju

[R] [R-pkgs] depmixS4 1.0-0 on CRAN & vignette/paper on jstatsoft.org

2010-09-23 Thread Ingmar Visser
Software http://www.jstatsoft.org/v36/i07 which is also included as a vignette http://cran.r-project.org/web/packages/depmixS4/index.html The development version of depmixS4 can be found on the R-forge site: https://r-forge.r-project.org/projects/depmix/ best, Ingmar Visser & Maarten Speekenb

Re: [R] Ordinal response model in depmixS4

2010-11-05 Thread Ingmar Visser
Penny, The ?makeDepmix page has an example of how to add your own response distribution model. hth, Ingmar On Fri, Oct 22, 2010 at 3:08 PM, Penny Adversario wrote: > I am running a latent class regression with 3 nominal and 2 ordinal > variables using depmixS4 but the available response models d

Re: [R] plot & xlim/ylim & range of axis

2010-11-10 Thread Ingmar Visser
Steffen, Consider the input you have given to range: > 1e-9:1 [1] 1e-09 1e+00 versus > 1e-9:1e-3 [1] 1e-09 > hth, Ingmar On Wed, Nov 10, 2010 at 10:00 AM, Steffen Uhlig < steffen.uh...@htw-saarland.de> wrote: > Dear mailing list readers! > > Using R and the plot function I stumbled over this

Re: [R] LTA

2011-01-24 Thread Ingmar Visser
Sebastian, There is a number of packages that fit hidden (or latent) Markov models which are in most regards identical to latent transition analysis. Best, Ingmar 2011/1/24 Sebastián Daza > Hi everyone, > Does anyone know if there is a package to run Latent Transitional Analysis > using R? > >

Re: [R] help

2010-08-25 Thread Ingmar Visser
Martin, On Wed, Aug 25, 2010 at 10:17 AM, Loos, Martin wrote: > Good afternoon! > > It may seem trivial to some/most of You, but I found it difficult to > properly include a C++-based .dll into a package that I want to build for > usage in R. I read through the "Writing R extensions..." & "R adm

Re: [R] LFA package

2010-08-27 Thread Ingmar Visser
The sem package may be what you are looking for, hth, Ingmar On Thu, Aug 26, 2010 at 9:24 PM, David Joubert wrote: > > Hello all- > > Just wondering if anyone has heard of a package performing latent factor > analysis, similar to what is done with LatentGold. I know that PoLCA does > latent clas

Re: [R] Vermunt's LEM in R

2011-05-06 Thread Ingmar Visser
poLCA is an option, as is randomLCA, flexmix, and depmixS4, and there are likely to be more What specific models are you interested in? Best, Ingmar On Fri, May 6, 2011 at 6:13 AM, Wincent wrote: > I guess LEM is a software for latent class analysis. If so, you may > want to have a look at poLCA

Re: [R] Vermunt's LEM in R

2011-05-11 Thread Ingmar Visser
depmixS4 can fit equality constraints in latent class and latent markov models, best, Ingmar On Wed, May 11, 2011 at 1:04 PM, David Duffy wrote: > I don't know of any R package that can match all the functionality of LEM > eg fitting equality constraints to model parameters a la LISREL. > > WRT

Re: [R] Latent class analysis, selection of the number of classes

2011-05-24 Thread Ingmar Visser
function ?stepFlexmix in the flexmix package may be what you're looking for hth, Ingmar On Mon, May 23, 2011 at 11:21 PM, Daniel Malter wrote: > Hi, > > I perform latent class analysis on a matrix of dichotomous variables to > create an indicator of class/category membership for each observation

Re: [R] Counting the Number of Letters in a row

2011-06-10 Thread Ingmar Visser
something like this: sapply(strsplit(as.character( f1$keyword), " "), function(x){sum(nchar(x))}) hth, Ingmar On Fri, Jun 10, 2011 at 6:48 PM, Abraham Mathew wrote: > I'm trying to find the total number of letters in a row of a data frame. > > Let's say I have the following data frame. > > f1 <-

Re: [R] Latent Class Logit Models in discrete choice experiments

2011-01-31 Thread Ingmar Visser
Daniel, searching for 'latent class analysis' on http://www.r-project.org/search.html gives many results: the CRAN taskviews on psychometrics and the one on clustering both contain relevant links to packages that may do what you are looking for. In particular, for general LCA there is package e107

Re: [R] fitdistr question

2011-02-11 Thread Ingmar Visser
The ML estimate of lambda is the mean, so no need for (iterative) optimization. See eg: http://mathworld.wolfram.com/MaximumLikelihood.html hth, Ingmar On Fri, Feb 11, 2011 at 8:52 AM, Antje Niederlein wrote: > Hello, > > I tried to fit a poisson distribution but looking at the function > fitdis

Re: [R] markov-switching models

2011-02-13 Thread Ingmar Visser
typing 'markov switching' into the R site search box gives 127 results, certainly a few of which on the first page are possibly of interest to you. among them packages MSBVAR and bayesGARCH hth, best, Ingmar On Sat, Feb 12, 2011 at 12:53 PM, Nanda Mendez wrote: > > I'm looking for Markov switchi

Re: [R] Teaching R: To quote, or not to quote?

2011-03-09 Thread Ingmar Visser
> FWIW, the style for JSS now enforces (via Achimitization) the use of quotes > as you show above. > An excellent candidate for the fortunes package! best, Ingmar [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https:

Re: [R] confirmatory factor analysis in R

2011-03-11 Thread Ingmar Visser
lavaan, sem, openMx all do this (there may be others) hth, Ingmar On Fri, Mar 11, 2011 at 8:26 AM, rvohen wrote: > In R software,does it have packages about confirmatory factor analysis in R > software? 3Q > > -- > View this message in context: > http://r.789695.n4.nabble.com/confirmatory-factor

Re: [R] Longitudinal categorical response data

2011-03-24 Thread Ingmar Visser
package msm has some examples with this type of type, ie modeling disease state transitions in continuous time, using multi-state markov models. hth, Ingmar On Thu, Mar 24, 2011 at 6:22 PM, Rasanga Ruwanthi wrote: > Dear List, > > I have some longitudinal data, each patient was followed at times

Re: [R] What to do with positive likelihoods

2011-04-20 Thread Ingmar Visser
Michael, It's not entirely clear what you are doing from the text (and the code is incompplete), so just a few remarks. I assume you are after the log likelihood rather than the likelihood (otherwise the issue of positive/negative would not show up, dnorm always returns positive numbers). Taking

Re: [R] finite mixture modeling

2012-06-15 Thread Ingmar Visser
[plug to follow] depmixS4 fits hidden/latent Markov models on (mixed mode) multivariate longitudinal data (and it can be found on the cluster task view). hth, Ingmar On Thu, Jun 14, 2012 at 1:12 PM, ya wrote: > Hi all, > > I have a question, is there any R package dealing with latent transition

Re: [R] Hidden Markov Models in R

2011-07-28 Thread Ingmar Visser
Dear Edward, Without knowing what you want exactly, it is basically impossible to help you out. The following code (with simulated data) works just fine. In what sense did you not have success with HMM and/or depmixS4? Best, Ingmar library(HMM) dat <- data.frame(Slide1_ACC=sample(c(0,1),100,rep=T

Re: [R] fitting Markov Switching Model

2012-07-29 Thread Ingmar Visser
mething like this (untested): x[x<23.65] <- 0 x[x>23.65] <- 1 will give you the markov state sequence and the transition matrix follows from that. hth, Ingmar Visser On Fri, Jul 27, 2012 at 8:52 PM, cesare orsini wrote: > Dear Users, > > i have this time series, the tree line

Re: [R] length of variable in mlogit

2012-07-31 Thread Ingmar Visser
hard to judge what the problem is without an example and without the actual error message that mlogit (which one? there are several functions with that name in various packages) gives you. best, Ingmar On Mon, Jul 30, 2012 at 11:30 AM, Lee van Cleef wrote: > Dear all, > > does anybody have exper

Re: [R] length of variable in mlogit

2012-08-02 Thread Ingmar Visser
Lee, A working, or in this case failing, example is necessary to detect what the problem is. This would include a statement loading the package that you use to run your mlogit models; the latter is necessary because there are various packages with functions that are called mlgoit. Best, Ingmar On

Re: [R] negative AIC and BIC values in gls

2012-08-23 Thread Ingmar Visser
> It's fine. Just interpret them as you would any other (lower is better). >> >> > And it is the printed logLik that is out of step here. log-likelihoods > _should_ be negative. > That is not quite the case; in models with small variances log-likelihoods can easily become positive, consider eg: >

Re: [R] randomLCA

2012-08-28 Thread Ingmar Visser
use str(dentistry.lca2) to see all values of the output; among them a value np for number of parameters, in this case 5*2 for the 5 binary items of 2 classes + 1 for the class proportions, total 11. hth, Ingmar On Mon, Aug 27, 2012 at 6:05 PM, Gabriele Accetta < gabriele.acce...@gmail.com> wrote:

Re: [R] Sequence Prediction

2011-11-16 Thread Ingmar Visser
Searching: time series forecasting on the R website gives quite a few potentially useful options. hth, Ingmar On Wed, Nov 16, 2011 at 1:55 PM, Aher wrote: > I have a data with the sequence of events with millions records and more > than > 24 time stamped variables. > > sample data: > 1 2

Re: [R] Estimation of AR(1) Model with Markov Switching

2011-12-04 Thread Ingmar Visser
I did not quite get what the problem was from your description ... However, I did search on CRAN and found at least two packages that can fit markov switching ar models so that may be an easier way to go. Hth, Ingmar On Thu, Dec 1, 2011 at 5:58 PM, napps22 wrote: > Dear R users, > > I have been

Re: [R] Training parameters for a HMM

2011-12-19 Thread Ingmar Visser
Claus, Given that you have observed the hidden states they are not really hidden anymore ... so maybe an HMM is not what you are looking for. Assuming that you had such super observation powers using something like: by(obs,hid,table) will get you the state dependent counts of the categories of

Re: [R] Pascal's Triangle

2011-12-28 Thread Ingmar Visser
binomial coeffecients can be computed using ?choose hth, Ingmar On Wed, Dec 28, 2011 at 10:42 AM, Jason J. Pitt wrote: > Hi Matilda, > > My ignorance of the mathematical properties of Pascal's > Triangle might make me overlook a much easier way to do this, > but my first brute force thought was

Re: [R] R package for segmentation with both continuous and categorical input variables XXXX

2011-11-11 Thread Ingmar Visser
Th CRAN taskview on clustering has many clustering and mixture packages which may be useful for your precise situation: http://cran.r-project.org/web/views/Cluster.html hth, Ingmar On Thu, Nov 10, 2011 at 7:41 PM, Dan Abner wrote: > Hello everyone, > > Can anyone suggest a decently documented

Re: [R] How to use Latex code in R loop?

2012-04-01 Thread Ingmar Visser
Look into Sweave or knitr to combine R and LaTeX for producing reports. hth, Ingmar http://www.statistik.lmu.de/~leisch/Sweave/ https://github.com/yihui/knitr On Sun, Apr 1, 2012 at 4:48 PM, Manish Gupta wrote: > Hi, > > I am newbie in Latex and R. I am working on one report in which i need to >

Re: [R] Flexmix new data classification

2012-02-07 Thread Ingmar Visser
?clusters tells you how to get class membership for new data (and the appropriate way of getting cluster membership is to use clusters(newModel) rather newModel@clusters) hth, Ingmar On Tue, Feb 7, 2012 at 8:48 AM, loyolite270 wrote: > Hi > > I built a flexmix GLM binomial model with 200 observa

Re: [R] Week number from a date

2012-02-22 Thread Ingmar Visser
?strptime is a good place to start hth, Ingmar On Wed, Feb 22, 2012 at 2:09 PM, arunkumar wrote: > Hi > > My data looks like this > > startDate="2008-06-01" > > dateRange =c( "2008-10-01","2008-12-01") > Is there any method to find the week number from the startDate range > > - > Thanks

Re: [R] depmixS4+transition

2012-04-20 Thread Ingmar Visser
<- depmix(list(rt~1,corr~1),data=speed,transition=~Pacc+x2,nstates=2, family=list(gaussian(),multinomial("identity")),ntimes=c(168,134,137)) set.seed(3) fmod1 <- fit(mod1) Above code produces sensible results. Hth, Ingmar Visser On Fri, Apr 20, 2012 at 5:14 AM, nglthu wro

Re: [R] DepmixS4

2012-05-02 Thread Ingmar Visser
Deepak, On Wed, May 2, 2012 at 7:53 AM, deepakw wrote: > Hi I am trying to use depmixS4 package. Based on the documentation, it > seems > that depmix allows one to fit an HMM model based on a training data with > time-varying co-variates. However, I did not find any routines which can > help tes

Re: [R] splitting data frame based on a criteria

2008-06-03 Thread Ingmar Visser
?by may be helpful here eg if dat is your data.frame and yf is a factor (created using ifelse) use by(dat,yf,mean) to compute the means for each level of yf hth, Ingmar On Jun 3, 2008, at 8:37 PM, Marvin Lists wrote: Hi, I have a data frame that I want to split into two based on the values of

[R] avoiding loops

2008-03-26 Thread Ingmar Visser
Hi, I need to compute an array from a matrix and an array: A <- array(1:20,c(2,2,5)) B <- matrix(1:10,5) And I would like the result to be an array consisting of the following: rbind(A[1,,1]*B[1,], A[2,,1]*B[1,]) rbind(A[1,,2]*B[2,], A[2,,2]*B[2,]) rbind(A[1,,3]*B[2,], A[2,,3]*B[2,]) etc. He

[R] recursive multivariate filter with time-varying coefficients

2008-03-26 Thread Ingmar Visser
Hi, I've been searching CRAN and the web for a recursive multivariate filter with time-varying coefficients. What I mean is the following: I have a series of square matrices A_t an initial value vector y_0 and I need to compute y_t =A_t%*%y_t-1 As these y_t may diverge quickly and/or lead t

Re: [R] avoiding loops

2008-03-27 Thread Ingmar Visser
: +61 7 3826 7251 > Fax (if absolutely necessary): +61 7 3826 7304 > Mobile: +61 4 8819 4402 > Home Phone: +61 7 3286 7700 > mailto:[EMAIL PROTECTED] > http://www.cmis.csiro.au/bill.venables/ > > -Original Message- > From: [EMAIL PR

Re: [R] Comparing Time Series

2008-03-31 Thread Ingmar Visser
95 >> >> __ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, mi

[R] tcltk issue remains

2008-04-07 Thread Ingmar Visser
can I do about this? Best, Ingmar > sessionInfo() R version 2.6.2 (2008-02-08) powerpc-apple-darwin8.10.1 locale: en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packa

Re: [R] GLM fitting in R and Statistica

2008-04-09 Thread Ingmar Visser
> I have a problem concerning discrepances between R (which I use) and > Statistica (which uses my supervisor). --- can this be submitted as a fortune? any other programs around that use supervisors, it's always good to have a couple of those around ingmar

Re: [R] New user, requesting help with MAC installation of R

2008-04-10 Thread Ingmar Visser
HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-con

Re: [R] mixture distribution analisys

2008-04-10 Thread Ingmar Visser
The CRAN task view on cluster and mixture models likely has what you need. hth, Ingmar http://cran.r-project.org/web/views/Cluster.html On Apr 10, 2008, at 11:20 PM, Antonio Olinto wrote: > Hello, > > I'm analyzing some fish length-frequency data to access relative > age and growth > informa

Re: [R] Feature selection

2008-04-20 Thread Ingmar Visser
leaps or regsubsets in the leaps package does subset regression which seems to be what you're looking for. hth, Ingmar On Apr 19, 2008, at 11:51 PM, Computer- programmer wrote: > > Dear R helpers, >I'm trying to fit a model for prediction, but I have 18 > variables to choose from. So, my

Re: [R] how to read in multiple files with unequal number of columns

2008-04-22 Thread Ingmar Visser
nt me > to the post. Else any help/suggestions would be greatly appreciated. > > Many thanks in advance, > tania > > D.Phil student > Department of Physiology, Anatomy and Genetics > University of Oxford > > __ > R-help@r-pro

Re: [R] K-Means Clustering

2008-05-09 Thread Ingmar Visser
> R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contain

Re: [R] Max consecutive increase in sequence

2008-05-13 Thread Ingmar Visser
rle(diff(sq)) could be helpful here, best, Ingmar On May 13, 2008, at 11:19 PM, Marko Milicic wrote: Hi all R helpers, I'm trying to comeup with nice and elegant way of "detecting" consecutive increases/decreases in the sequence of numbers. I'm trying with combination of which() and diff(

Re: [R] A very simple question

2008-05-14 Thread Ingmar Visser
.. > {{dropped:13}} > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-c

Re: [R] creating discretized data

2007-11-16 Thread Ingmar Visser
lp@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. Ingmar Visser Department of Psychology, Univ

Re: [R] rbinom with computed probability

2007-11-23 Thread Ingmar Visser
__ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. Ingmar Visser D

Re: [R] Replacing values job

2007-11-28 Thread Ingmar Visser
; http://www.wifo.ac.at/Serguei.Kaniovski > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html >

Re: [R] Function to tell you how an object is put together

2007-12-10 Thread Ingmar Visser
R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. Ingmar Visser Department of Psychology, University of Amsterda

[R] repeated measures aov with weights

2008-12-17 Thread Ingmar Visser
roduct 60] do not match the length of object [100] In addition: Warning message: In resid * wt^0.5 : longer object length is not a multiple of shorter object length Ingmar Visser Department of Psychology, University of Amsterdam Roetersstraat 15 1018 WB Amsterdam The Netherlands t: +

Re: [R] repeated measures aov with weights

2008-12-17 Thread Ingmar Visser
, Prof Brian Ripley wrote: > Weights are not supported: multistratum aov is designed for > balanced designs and uses projection for which weighting is > inappropriate. > > On Wed, 17 Dec 2008, Ingmar Visser wrote: > >> Dear R-help, >> >> I'm facing a proble

Re: [R] Time-Ordered Clustering

2009-03-13 Thread Ingmar Visser
ustering taking dependencies over time into account by specifying a transition matrix. Similarly, there are other packages that fit similar models, searching for hidden markov model provides a number of them. hth, Ingmar Visser On 12 Mar 2009, at 23:39, Prew, Paul wrote: Hello All, Does anyone know of

Re: [R] mixture models

2009-03-16 Thread Ingmar Visser
Dear Rita, The depmixS4 package handles such models. It is still in beta testing so I would appreciate it if you share your experiences with it. Also let me know if you have further questions. Best, Ingmar On 16 Mar 2009, at 10:19, Rita Gaio wrote: Dear R users, I want to apply latent

Re: [R] Latent class analysis

2008-02-15 Thread Ingmar Visser
; > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproduci

Re: [R] [OT] "normal" (as in "Guassian")

2008-03-04 Thread Ingmar Visser
t;> R-help@r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/r-help >>> PLEASE do read the posting guide http://www.R-project.org/posting- >>> guide.html >>> and provide commented, minimal, self-contained, reproducible code. >> >>

Re: [R] Re action Time and Time Series Analysis

2008-03-07 Thread Ingmar Visser
rchive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, m

[R] R cmd check error reg namespace

2008-03-08 Thread Ingmar Visser
rrespond to syntactically valid R code. See the chapter 'Writing R documentation files' in manual 'Writing R Extensions'. Error in get(cname, where) : promise already under evaluation: recursive default argument reference or earlier problems? Error: .onLoad failed in &#x

Re: [R] choice of an HMM package

2008-11-12 Thread Ingmar Visser
s welcome. > > Best regards, > > -- > Maura E.M > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > gu

Re: [R] R: R: Hidden Markov Models

2008-11-12 Thread Ingmar Visser
HMMs and is >>> reasonably well documented. That might make it easier to get >>> started. >>> >>> Thank you in advance for your attention and help. >>> Kind regards, >>> >> >> >> >> Alice Messenger ;-) chatti anche con

Re: [R] R: choice of an HMM package

2008-11-14 Thread Ingmar Visser
> Thank you in advance, > Maura > > http://cat.inist.fr/?aModele=afficheN&cpsidt=18787092 > -Messaggio originale- > Da: [EMAIL PROTECTED] per conto di Ingmar Visser > Inviato: mer 12/11/2008 15.10 > A: Maura E Monville > Cc: r-help@r-project.org > Oggetto: Re: [R]

Re: [R] multiply for vector in R

2007-10-24 Thread Ingmar Visser
iling list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. Ingmar Visser Department of Psychology, University of

Re: [R] C++ and R interface

2007-11-06 Thread Ingmar Visser
___ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. Ingmar Visser Depar

Re: [R] k-means clustering

2007-09-12 Thread Ingmar Visser
Googling for sphericity gives wikipedia as a first link which says: Sphericity is a measure of how spherical (round) an object is. The second hit gives the connection with statistics, in particular ANOVA, http://www.linguistics.ucla.edu/faciliti/facilities/statistics/spher.htm hth, Ingmar On S