[R] glmmADMB error

2014-01-30 Thread Sebastián Daza
d): [1] grid_3.0.2 lattice_0.20-24 Matrix_1.1-1.1 nlme_3.1-113 sandwich_2.3-0 tools_3.0.2 zoo_1.7-10 -- Sebastián Daza [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel

[R] CTM and survival analysis with heterogeneity

2012-12-03 Thread Sebastián Daza
cases the baseline hazard is fully parametric, it can be specified as a sufficiently rich function of time to capture a very wide set of duration dependencies. Any references? Thanks! -- Sebastián Daza __ R-help@r-project.org mailing list https

Re: [R] survey package question

2012-10-11 Thread Sebastián Daza
narrow using svyratio. Could you give me any clue about what is going on? Thank you in advance. Sebastian On Thu, Oct 11, 2012 at 7:50 PM, Sebastián Daza wrote: > Hello Thomas, > > I use both svymean (with the expanded sample = people), and svyratio > (voting unit level), using th

[R] survey package question

2012-10-11 Thread Sebastián Daza
Hello, I have got a cluster sample using an election dataset where I already had the final results of a county-specific election. I am trying to figure out what would be the best sampling design for my data. The structure of the dataset is: 1) polling station (in general schools where people vo

[R] Loop question

2012-05-30 Thread Sebastián Daza
each ed of numlist 1/5 {; local f = `s'+5; scalar define rL`r'`ed'_`f'over`s' = L`r'`ed'_`f' / L`r'`ed'_`s'; }; }; }; but I do not how to do it in R. Thank you in advance

Re: [R] trellis plot

2012-03-26 Thread Sebastián Daza
cording to disruption, not to >>> get two different lines: >>> >>> xyplot(income~time|as.factor(person),data=dat, >>>        type=c("p","g","o"), col.line="black", groups=disruption, &

[R] trellis plot

2012-03-25 Thread Sebastián Daza
ot;Familiar Income") # I just want to change dots' colors according to disruption, not to get two different lines: xyplot(income~time|as.factor(person),data=dat, type=c("p","g","o"), col.line="black", groups=disruption, xlab=

[R] calculations combining values from different rows

2012-02-09 Thread Sebastián Daza
0 x10= NA For example, x2 would be equal to: -2/24*4 +4/2*3 + 1/24 *5 Any ideas? Thank you in advance. -- Sebastián Daza __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr

[R] data management question

2012-02-07 Thread Sebastián Daza
<- 10 data[2,"lx"] <- data[1,"lx"]*data[1,"npx"] data[3,"lx"] <- data[2,"lx"]*data[2,"npx"] data[4,"lx"] <- data[3,"lx"]*data[3,"npx"] ... data[19,"lx"] <- data[18,"lx&qu

Re: [R] raking weighting

2011-11-09 Thread Sebastián Daza
I did. However, I am not sure that I can create a "weight variable" in my database with the rake function you mention. That is why I am asking. El día 9 de noviembre de 2011 13:44, David Winsemius escribió: > > On Nov 9, 2011, at 2:27 PM, Sebastián Daza wrote: > >> Hi

[R] raking weighting

2011-11-09 Thread Sebastián Daza
Hi everyone, Does anyone know if there is a package to compute raking weights using R? What I need is to create a variable with weights base in some demographic variables (e.g. sexo, age group, area) using the raking procedure. Thank you in advance! -- Sebastián Daza

[R] identifying groups

2011-05-20 Thread Sebastián Daza
ut 80 networks clustered in schools. So, I have to identify groups for each school. Thank you in advance! -- Sebastián Daza sebastian.d...@gmail.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] data network format and grouping analysis

2011-05-18 Thread Sebastián Daza
t question, anyone knows if there is a package to perform a Moody's Crowds routine to identify groups using R, or other algorithms designed to search groups by maximizing modularity scores? Thank you in advance! -- Sebastián Daza sebastian

[R] style question

2011-04-03 Thread Sebastián Daza
se", + summary.stats=c("Deviance","AIC","N")) Error in dim(ans) <- newdims : dims [product 1] do not match the length of object [2] Thank you in advance. -- Sebastián Daza sebastian.d...@gmail.com __ R-hel

[R] coefficients style

2011-04-03 Thread Sebastián Daza
se", + summary.stats=c("Deviance","AIC","N")) Error in dim(ans) <- newdims : dims [product 1] do not match the length of object [2] Thank you in advance. -- Sebastián Daza sebastian.d...@gmail.com __ R-hel

[R] setCoefTemplate

2011-04-03 Thread Sebastián Daza
t;est.se", + summary.stats=c("Deviance","AIC","N")) Error in dim(ans) <- newdims : dims [product 1] do not match the length of object [2] Thank you in advance. -- Sebastián Daza sebastian.d...@gmail.com

[R] setCoefTemplate

2011-04-03 Thread Sebastián Daza
t;est.se", + summary.stats=c("Deviance","AIC","N")) Error in dim(ans) <- newdims : dims [product 1] do not match the length of object [2] Thank you in advance. -- Sebastián Daza sebastian.d...@gmail.com

[R] simple if question

2011-03-26 Thread Sebastián Daza
nly the first element will be used) data$selection <- ifelse(data$school %in% sample1, 1, 0) data$selection <- ifelse(data$school %in% sample2, 2, 0) Any ideas? Thank you in advance. -- Sebastián Daza sebastian.d...@gmail.com __ R-help@r-project.org

Re: [R] pattern of panel waves using R

2011-03-18 Thread Sebastián Daza
Finally, I solved my problem using the following procedure and a database called ej ej$a <- 1 head(ej) ano nunico a 1 2008 1 1 2 2009 1 1 3 2008 2 1 4 2009 2 1 5 2008 3 1 6 2009 3 1 library(reshape) dej <- cast(ej, nunico ~ ano, sum, margins = FALSE) head(dej

[R] pattern of panel waves using R

2011-03-17 Thread Sebastián Daza
2009 2010 = 30 2008 2009 = 10 and so on Thank you in advance! -- Sebastián Daza sebastian.d...@gmail.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

[R] lavaan diagram

2011-03-08 Thread Sebastián Daza
Hi everyone, I got the following error when I tried to diagram a confirmatory factor analysis using lavaan: lavaan.diagram(conf) Error in strwidth(xvars) : plot.new has not been called yet Does anyone have any idea about what is happening? Thank you in advance. -- Sebastián Daza sebastian.d

[R] lavaan diagram

2011-03-06 Thread Sebastián Daza
Hi everyone, I get the following message when I try to get a diagram of a CFA: Error in lavaan.diagram(fit) : no slot of name "GLIST" for this object of class "Fit" Does anyone know what the problem is? Regards. -- Sebastián Daza seba

Re: [R] "aggregate" in R

2011-02-22 Thread Sebastián Daza
[[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 and provide com

[R] id number by group and correlative

2011-02-16 Thread Sebastián Daza
re is another way to do it). With regard to the correlative_group, I don't have any clue about how to do it. PD: Last question. Is there any way to save in a variable the internal that R uses (those numbers that appear on left side of a dataframe)? Thank you, Sebastian. -- Sebastián Daza s

Re: [R] very basic HLM question

2011-02-06 Thread Sebastián Daza
ame thing, fits model only once): anova2<- lmer(math ~ 1 + (1|schoolid), data=nels88) summary(anova2) Note that lmer is going to estimate a normally distributed random effect for each school, as well as an individual observation random effect (usual error term) that is assumed ind

[R] very basic HLM question

2011-02-05 Thread Sebastián Daza
is 59.004. Does anyone know what the problem is? How can I get the 59.004 figure using R? -- Sebastián Daza sebastian.d...@gmail.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide h

[R] grey scale graphs

2011-02-02 Thread Sebastián Daza
added the following option: trellis.device(color=FALSE) but I got a pdf file with color graphs. Thank in advance. -- Sebastián Daza sebastian.d...@gmail.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

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

2011-01-31 Thread Sebastián Daza
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Sebastián Daza sebastian.d...@gmail.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

[R] rj packages and eclipse

2011-01-30 Thread Sebastián Daza
Hi everyone! Does anyone know how to install the rj package in Windows (7)? I am trying to set up eclipse, but I got [INFO] The R package 'rj' is not available, R-StatET tools cannot be initialized. Thank you in advance! __ R-help@r-project.org mai

[R] LTA

2011-01-24 Thread Sebastián Daza
Hi everyone, Does anyone know if there is a package to run Latent Transitional Analysis using R? Regards! -- Sebastián Daza sebastian.d...@gmail.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] sweave.bat

2011-01-17 Thread Sebastián Daza
rterm.exe in my computer is: C:\R\R-2.12.1\bin\x64 thank you in advance! -- Sebastián Daza sebastian.d...@gmail.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-projec

Re: [R] Using summaryBy with weighted data

2011-01-17 Thread Sebastián Daza
rterm.exe in my computer is: C:\R\R-2.12.1\bin\x64 thank you in advance! -- Sebastián Daza sebastian.d...@gmail.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-projec

[R] easy loop question

2011-01-12 Thread Sebastián Daza
Hi everyone, I am new in R and programming. I have tried to remove the values out of range in some variables using a loop: 1) var <- names(est8vo[, 77:83]) # I got the variable names > var [1] "p16.1" "p16.2" "p16.3" "p16.4" "p16.5" "p16.6" "p16.7" for (i in 1:7) { var.i <- var[i] est8

[R] integration Sweave and TexMakerX

2011-01-05 Thread Sebastián Daza
Hi, Does anyone know how to integrate texmakerx and sweave on Windows? I mean, to run .rnw files directly from texmakerx and get a pdf or dvi file. Thank you in advance, -- Sebastián Daza sebastian.d...@gmail.com __ R-help@r-project.org mailing

[R] two-part growth analysis

2010-12-21 Thread Sebastián Daza
Hi everyone! Does anyone know if there is a package to do two-part growth analysis with R? Regards, Sebastian -- Sebastián Daza sebastian.d...@gmail.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do