[R] Combining two models into one

2013-10-20 Thread luana
Hi guys, I'm trying to combining 2 models into 1 but maybe I'm not doing this in the right way. my dataset is about the level of the vitamin A in the blood measured at different times with two different treatments (ie. I have 6 coloums, vit A1 , time1, treat1, vit A2, time2, treat2, n=28). It wants

[R] integer -> factor

2013-10-22 Thread luana
Hi! I have a dataset composed by bmi, sex, age, and race. I have to convert bmi, sex and race in factor and they have still to be in the same dataset with their names. That's because I need to do an Ordered Logistic Regression. Can you help me? really tnx! -- View this message in context: http:

[R] Using pre-defined IRT parameters in ltm package

2014-04-16 Thread Luana Marotta
Hi all, I want to estimate scores using IRT when the model parameters are known. I'd like to define my parameters a priori using the ltm package, but haven't found much information on the manual. I appreciate any help on this. Thanks, Luana [[alternative HTML versi

[R] Simple loop question

2014-03-27 Thread Luana Marotta
Hi all, I'm trying to find out what is the equivalent in R for the following Stata code: Let's say I have the variables: a1, a2, a3, a4, a5 forvalues i = 1(1)5 { summary a`i' } That is, I want to know how to loop through variables in R. Thank you in advance, Luana

[R] Specify a minimum number of valid arguments for the mean function

2010-09-13 Thread Luana Marotta
Hello all, I want to specify a minimum number of valid arguments for the mean function--I have 5 variables but I want the mean only of cases that have at least 3 valid answers. What is the best way to do that? Thank you very much! Luana [[alternative HTML version deleted

[R] reliability of the level-1 random coefficients (lme4)

2010-09-22 Thread Luana Marotta
level models. I tried to use the formula but I can't find specific information such as the sigma squared. Thank you, Luana Marotta [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

[R] Sequence for repeated numbers

2010-12-01 Thread Luana Marotta
nce": Data: ID GradeSequence: 1 4 1 2 4 2 3 4 3 4 5 1 5 5 2 6 7 1 7 7 2 8 7 3 9 7 4 Any help is very much appreciate! Thank you, Luana Marotta [[alternative HTML

[R] Lmer binomial distribution x HLM Bernoulli distribution

2011-02-01 Thread Luana Marotta
ension of a binomial distribution. Is that right? If so, how can I adapt my R model to a Bernoulli distribution so that my R results are the same as my HLM results? Thank you so much, Luana Marotta [[alternative HTML version deleted]] __ R-help@r