Re: [R] factor analysis of dynamic structure (FADS) for a huge time-series data

2021-05-09 Thread Hyun Soo Park
Dear Newmiller, Thank you for your reply. I’ve just posted the same question in the another forum for stats as you suggested. Meanwhile, I would like to keep the question submitted to learn from R users, if it is available . Park On Sun, May 9, 2021 at 6:01 AM Jeff Newmiller wrote: > This

Re: [R] factor analysis of dynamic structure (FADS) for a huge time-series data

2021-05-08 Thread Ranjan Maitra
: Saturday, May 08, 2021 at 5:05 AM From: "Hyun Soo Park" To: "r-help@r-project.org" Subject: [R] factor analysis of dynamic structure (FADS) for a huge time-series data Dear R users, I want to find the latent factors from a kind of time-series data describing temporal changes of

Re: [R] factor analysis of dynamic structure (FADS) for a huge time-series data

2021-05-08 Thread Jeff Newmiller
This not being a question about R, but rather about statistics, or possibly about a contributed package, means (per the Posting Guide) that you should be asking in a statistics forum like stats.stackexchange.com or corresponding with the author of the package in question. If you are lucky

[R] factor analysis of dynamic structure (FADS) for a huge time-series data

2021-05-08 Thread Hyun Soo Park
Dear R users, I want to find the latent factors from a kind of time-series data describing temporal changes of concentration using a factor analysis technique called 'factor analysis of dynamic structure (FADS).' I learned how to form the data for the analysis using a proper package embedding

Re: [R] SPSS R Factor v2.4.2

2017-08-06 Thread Uwe Ligges
ntegration which requires linking to R3.20 I have installed R Factor v2.4.2 This package requires 'polycor' library Unfortunately, 'polycor' does not exist in R3.20 That's not really correct. There is an archived version that should be compatible with your out-of-date version of R. See: ftp://cr

Re: [R] SPSS R Factor v2.4.2

2017-08-05 Thread David Winsemius
> On Aug 5, 2017, at 7:02 PM, Gavin Brown <gt.br...@auckland.ac.nz> wrote: > > I am not an R-Head, hence I use nice utilities that integrate R into SPSS > I have SPSS v24, R3.20 and R3.40 > I have run IBM SPSS R Integration which requires linking to R3.20 > I have i

Re: [R] SPSS R Factor v2.4.2

2017-08-05 Thread Bert Gunter
SPSS > I have SPSS v24, R3.20 and R3.40 > I have run IBM SPSS R Integration which requires linking to R3.20 > I have installed R Factor v2.4.2 > This package requires 'polycor' library > Unfortunately, 'polycor' does not exist in R3.20 > > DATASET ACTIVATE DataSet1. > *Mário

[R] SPSS R Factor v2.4.2

2017-08-05 Thread Gavin Brown
I am not an R-Head, hence I use nice utilities that integrate R into SPSS I have SPSS v24, R3.20 and R3.40 I have run IBM SPSS R Integration which requires linking to R3.20 I have installed R Factor v2.4.2 This package requires 'polycor' library Unfortunately, 'polycor' does not exist in R3.20

Re: [R] Factor vs character in a data.frame vs vector

2017-07-08 Thread John Kane via R-help
Clearly I have been doing something weird. Thanks >It is possible that somewhere along the way, you set options(stringsAsFactors = FALSE)No not in a long time. I found that it was great for any personal work but any time I tried to use someone' else's raw data, say from a text file, it would

Re: [R] Factor vs character in a data.frame vs vector

2017-07-07 Thread John Kane via R-help
Thanks Marc. It never occurred to me that I would need a ""stringsAsFactors" expression in a data.frame.  I could have sworn I never did before when mocking up some data but clearly I was wrong or there has been a change in R v. 3.4.1 which seems unlikely. On Friday, July 7, 2017, 10:37:29 AM

Re: [R] Factor vs character in a data.frame vs vector

2017-07-07 Thread Marc Schwartz
> On Jul 7, 2017, at 7:03 PM, John Kane wrote: > > Thanks Marc. > It never occurred to me that I would need a ""stringsAsFactors" expression in > a data.frame. I could have sworn I never did before when mocking up some > data but clearly I was wrong or there has been a

Re: [R] Factor vs character in a data.frame vs vector

2017-07-07 Thread Marc Schwartz
> On Jul 7, 2017, at 6:03 AM, John Kane via R-help wrote: > > This is not serious problem but I just wonder if someone can explain what is > happening. > The same command within a dataframe is giving me a factor and as a plain > vector is giving me a character. It's

[R] Factor vs character in a data.frame vs vector

2017-07-07 Thread John Kane via R-help
This is not  serious problem but I just wonder if someone can explain what is happening. The same command within a dataframe is giving me a factor and as a plain vector is giving me a character.  It's probably something simple that I have read and forgotten but I thought I'd ask. Thanks

[R] Factor Analysis fit statistics from zelig() model = "factor.bayes" (executes mcmcfactanal() function)

2016-12-25 Thread Heather Kettrey
Hello, I am running a factor analysis with a multiply imputed dataset in zelig (specifying model = factor.bayes). I cannot find a way to get fit statistics for the specified model (a 2-factor model in this particular analysis). The summary() function only returns lambda (factor loadings) and psi

Re: [R] Factor analysis and time as an offset variable

2016-09-06 Thread Tahereh Dehdarirad
Thank you for your reply. I am grouping citation and some social media indictors ( number of tweets, mendeley readers, etc). The number of citaions a paper recievs or the number of social media indicators that a papers receives depends on time. For example a paper published in 2009 has more time

Re: [R] Factor analysis and time as an offset variable

2016-09-06 Thread Jeff Newmiller
That step is easy, but context is hard. You really need to provide a reproducible example. There are many models, many analysis tools, and many timescales to choose from. In fact, this could easily be mistaken for a question about statistics (not really on-topic here) since you have failed to

[R] Factor analysis and time as an offset variable

2016-09-06 Thread Tahereh Dehdarirad
Hi, Is it possible to use time as an offset (exposure variable) in factor analysis? If yes, would you please advise how? Thanks, Tahereh Tahereh Dehdarirad PhD Student of Library and Information Science University of Barcelona, Spain [[alternative HTML version deleted]]

Re: [R] Factor levels in training set

2016-06-15 Thread PIKAL Petr
sed to be numeric you can check if they really are by str(df) Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of ch.elahe > via R-help > Sent: Tuesday, June 14, 2016 5:29 PM > To: R-help Mailing List <r-help@r-project.org> >

[R] Factor levels in training set

2016-06-14 Thread ch.elahe via R-help
Hi all, I want to use Supervised Self organizing Maps from Kohonen package for my data. I need to divide my df into training set and test set, but a part of my df contains column with factor levels and I don't know how to bring them into my training set. Currently I use the following command

[R] Factor levels in training set

2016-06-14 Thread ch.elahe via R-help
Hi all, I want to use Supervised Self organizing Maps from Kohonen package for my data. I need to divide my df into training set and test set, but a part of my df contains column with factor levels and I don't know how to bring them into my training set. Currently I use the following command

[R] Factor Analysis using weights for each variable

2016-05-26 Thread Preetam Pal
Hi R-users, I have 1020 time series ( each of length 10,000), say, X1,X2,..,X1020 and I want to perform Factor Analysis using 50 factors on their correlation matrix. The issue is: for every series, I have a weight, i.e. *the series X_i has a pre-defined weight of w_i* ( i = 1,2,, 1020).

Re: [R] Factor Variable frequency

2016-05-25 Thread S Ellison
> ruipbarra...@sapo.pt > Maybe the following (untested). > > table(df$Protocol[df$Speed == "SLOW"]) Could also use which.max to get the particular item: ... tprot <- table(df$Protocol[df$Speed == "SLOW"]) tprot[which.max(tprot)] S Ellison

Re: [R] Factor Variable frequency

2016-05-24 Thread ruipbarradas
Hello, Maybe the following (untested). table(df$Protocol[df$Speed == "SLOW"]) Hope this helps, Rui Barradas   Citando ch.elahe via R-help : > Hi all, > I have the following df: > >    $ Protocol       : Factor w/ 48 levels "DP FS QTSE SAG",..: 2 3 > 43 42 31 36 37 30

[R] Factor Variable frequency

2016-05-24 Thread ch.elahe via R-help
Hi all, I have the following df: $ Protocol : Factor w/ 48 levels "DP FS QTSE SAG",..: 2 3 43 42 31 36 37 30 28 5 ... $ Speed : chr "SLOW" "SLOW" "SLOW" "VerySLOW" ... How can I get the most frequent Protocol when Speed is "SLOW"? Thanks for any help! Elahe

Re: [R] factor variables in logistic regression

2016-05-11 Thread Kevin E. Thorpe
On 05/11/2016 08:00 AM, ch.elahe via R-help wrote: Hi all, I have a plot for TSTMean vs. SNRMean and both of these variables are factors. How can I use Logistic Regression for factor variables? Currently I use model=lm(TSTMean~SNRMean,data=df) but when I check summary(model) I get this error:

[R] factor variables in logistic regression

2016-05-11 Thread ch.elahe via R-help
Hi all, I have a plot for TSTMean vs. SNRMean and both of these variables are factors. How can I use Logistic Regression for factor variables? Currently I use model=lm(TSTMean~SNRMean,data=df) but when I check summary(model) I get this error: r error in quartile.default (resid) factors are not

Re: [R] Factor response and explanatory variables.

2015-09-17 Thread Bert Gunter
Best advice I can give: Find a local statistical expert to work with. You appear to be asking for help understanding statistical methodology when you do not have the necessary background to do so. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is

[R] Factor response and explanatory variables.

2015-09-17 Thread Iker Vaquero Alba
   Hello everyone,    I am going to ask this certainly tricky question here not (yet) with the intention of getting a definitive answer, as I need to deepen my questions much more, but just to have an approximate idea of which direction taking next.    I have a dataset where the potential

Re: [R] factor interaction boxplot ordering by median

2015-09-06 Thread Sergio Fonda
Thanks to Marc Schwartz I was able to order a "two factors" interaction boxplot with median associated to one factor alone. I tried further to generate facets plot (3x2 boxplots in ggplot2) for the dataframe reported at bottom and I'm not able to reach a correct plot. The dataframe is a simulation

Re: [R] factor interaction boxplot ordering by median

2015-09-05 Thread Sergio Fonda
Great! Thank you All the best SF Il 05/set/2015 15:08, "Marc Schwartz" ha scritto: > > > On Sep 5, 2015, at 7:29 AM, Sergio Fonda > wrote: > > > > I would to visualize in boxplot a data frame with two factors ordering > one > > factor with the

[R] factor interaction boxplot ordering by median

2015-09-05 Thread Sergio Fonda
I would to visualize in boxplot a data frame with two factors ordering one factor with the median. As example,suppose to have the InsectSprays dataframe, where an "operator" factor with two levels, op1 and op2, has been added as shown at bottom here. How may be generated a boxplot showing boxes

Re: [R] factor interaction boxplot ordering by median

2015-09-05 Thread Marc Schwartz
> On Sep 5, 2015, at 7:29 AM, Sergio Fonda wrote: > > I would to visualize in boxplot a data frame with two factors ordering one > factor with the median. > As example,suppose to have the InsectSprays dataframe, where an "operator" > factor with two levels, op1 and

Re: [R] factor levels numeric values

2015-02-11 Thread JS Huang
Hi, Suppose your data frame is called data and the name of the factor column is named tobeConverted. I have tried this and it worked. Hope this helps. as.numeric(as.character(data$tobeConverted)) -- View this message in context:

[R] factor levels numeric values

2014-11-12 Thread David Studer
Hi everybody, I have another question (to which I could not find an answer in my r-books. I am sure, it's not a great issue, but I simply lack of a good idea how to solve this: One of my variables gets imported as a factor instead of a numeric variable. Now I have a... Factor w/ 63 levels

Re: [R] factor levels numeric values

2014-11-12 Thread Gerrit Eichner
Hello, David, take a look at the beginning of the Warning section of ?factor. Hth -- Gerrit Hi everybody, I have another question (to which I could not find an answer in my r-books. I am sure, it's not a great issue, but I simply lack of a good idea how to solve this: One of my variables

Re: [R] factor levels numeric values

2014-11-12 Thread David L Carlson
-help@r-project.org Subject: Re: [R] factor levels numeric values Hello, David, take a look at the beginning of the Warning section of ?factor. Hth -- Gerrit Hi everybody, I have another question (to which I could not find an answer in my r-books. I am sure, it's not a great issue, but I

Re: [R] factor levels numeric values

2014-11-12 Thread Ivan Calandra
Eichner Sent: Wednesday, November 12, 2014 8:06 AM To: David Studer Cc: r-help@r-project.org Subject: Re: [R] factor levels numeric values Hello, David, take a look at the beginning of the Warning section of ?factor. Hth -- Gerrit Hi everybody, I have another question (to which I could

Re: [R] factor levels numeric values

2014-11-12 Thread Jeff Newmiller
-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gerrit Eichner Sent: Wednesday, November 12, 2014 8:06 AM To: David Studer Cc: r-help@r-project.org Subject: Re: [R] factor levels numeric values Hello, David, take a look

[R] factor(300000, levels=1:300000) gives NA

2014-09-20 Thread Suharto Anggono Suharto Anggono
In R: factor(30, levels=1:30) [1] NA 30 Levels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ... 30 The NA above is undesirable in my view, because 30 is in 1:30. I have just got bitten by it. I have figured out why it happens. The results

Re: [R] factor(300000, levels=1:300000) gives NA

2014-09-20 Thread Jeff Newmiller
) .OO#. .OO#. rocks...1k --- Sent from my phone. Please excuse my brevity. On September 20, 2014 3:52:15 AM PDT, Suharto Anggono Suharto Anggono suharto_angg...@yahoo.com wrote: In R: factor(30

Re: [R] factor(300000, levels=1:300000) gives NA

2014-09-20 Thread William Dunlap
: 29 3e+05 31 Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, Sep 20, 2014 at 3:52 AM, Suharto Anggono Suharto Anggono suharto_angg...@yahoo.com wrote: In R: factor(30, levels=1:30) [1] NA 30 Levels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

[R] factor() in lm

2013-12-01 Thread Gary Dong
Dear R users, I am running a linear regression in R. My observations are Census Tracts in several metropolitan areas (MSAs). In my data set, each MSA has at least 50 observations. I use factor(msa_code) in the lm formula to control for metropolitan fixed effects. But I kept getting something like

Re: [R] factor() in lm

2013-12-01 Thread Bert Gunter
You may wish to talk to a local statistician or read up on linear models, as you appear to not understand some basics. Anyway, either 1. You have other covariates in your model that you haven't shown and your model is overdetermined. 2. You have NA's in your data that causes 1) to occur. As an

Re: [R] factor() in lm

2013-12-01 Thread Gary Dong
Thanks, Bert. It seems I got these NAs because I already had MSA population controlled for in my model, besides the fixed effect variable, which led to overestimation. Those NAs disappeared after I dropped the population variable. Gary On Sun, Dec 1, 2013 at 10:27 AM, Bert Gunter

[R] factor() without abstract types

2013-08-26 Thread G. Sawitzki
How do you extend factor() without abstract data types? The idea is to have factor (x, TYPE) to transform all or selected components of x to factor TYPE. Value: a data structure of same type as x, with factor-like components transformed to be like TYPE. In the Pascal family, you

Re: [R] Factor deletion criteria

2013-05-04 Thread Greg Snow
In addition to David's great answer also read ?contr.SAS ?contr.treatment ?relevel and also sections 4 and 11.1.1 in An Introduction to R. On Fri, May 3, 2013 at 9:47 PM, David Winsemius dwinsem...@comcast.netwrote: On May 3, 2013, at 3:32 PM, Iuri Gavronski wrote: Hi, I would like to

[R] Factor deletion criteria

2013-05-03 Thread Iuri Gavronski
Hi, I would like to know the criteria by which R removes a factor in linear models. For example, I have a four level factor, and R creates 3 dummies to estimate coefficients. Which level is chosen? Can I chance it? Thanks, Iuri [[alternative HTML version deleted]]

Re: [R] Factor deletion criteria

2013-05-03 Thread David Winsemius
On May 3, 2013, at 3:32 PM, Iuri Gavronski wrote: Hi, I would like to know the criteria by which R removes a factor in linear models. For example, I have a four level factor, and R creates 3 dummies to estimate coefficients. Which level is chosen? Can I chance it? The default order is

[R] Factor to numeric conversion - as.numeric(as.character(f))[f] - Language definition seems to say to not use this.

2013-04-01 Thread Matthew Lundberg
These two seem to be at odds. Is this the case? From help(factor) - section Warning: To transform a factor f to approximately its original numeric values, as.numeric(levels(f))[f] is recommended and slightly more efficient than as.numeric(as.character(f)). From the language definition -

Re: [R] Factor to numeric conversion - as.numeric(as.character(f))[f] - Language definition seems to say to not use this.

2013-04-01 Thread Ista Zahn
Hi Mathew, In what way are they at odds? On Mon, Apr 1, 2013 at 1:48 PM, Matthew Lundberg matthew.k.lundb...@gmail.com wrote: These two seem to be at odds. Is this the case? From help(factor) - section Warning: To transform a factor f to approximately its original numeric values,

Re: [R] Factor to numeric conversion - as.numeric(as.character(f))[f] - Language definition seems to say to not use this.

2013-04-01 Thread Peter Ehlers
On 2013-04-01 10:48, Matthew Lundberg wrote: These two seem to be at odds. Is this the case? From help(factor) - section Warning: To transform a factor f to approximately its original numeric values, as.numeric(levels(f))[f] is recommended and slightly more efficient than

Re: [R] Factor to numeric conversion - as.numeric(as.character(f))[f] - Language definition seems to say to not use this.

2013-04-01 Thread Matthew Lundberg
When used as an index, the factor is implicitly converted to integer. In the expression as.numeric(levels(f))[f], the vector as.numeric(levels(f)) is indexed by as.integer(f). This appears to rely on the current implementation, as mentioned in section 2.3.1 of the language definition. On Mon,

Re: [R] Factor to numeric conversion - as.numeric(as.character(f))[f] - Language definition seems to say to not use this.

2013-04-01 Thread Bert Gunter
Yup. Note also: as.character.factor function (x, ...) levels(x)[x] But of course this is OK, since this can change if the implementation does. Which is the whole point, of course. -- Bert On Mon, Apr 1, 2013 at 12:16 PM, Matthew Lundberg matthew.k.lundb...@gmail.com wrote: When used as an

Re: [R] Factor to numeric conversion - as.numeric(levels(f))[f] - Language definition seems to say to not use this.

2013-04-01 Thread Matthew Lundberg
Note the edited subject line! I don't know why I typed it as it was before. This says that as.numeric(as.character(f)) will work regardless of the implementation, and I agree. It's the recommendation to use as.numeric(levels(f))[f] that has me wondering about section 2.3.1 of the language

Re: [R] Factor to numeric conversion - as.numeric(levels(f))[f] - Language definition seems to say to not use this.

2013-04-01 Thread Peter Ehlers
On 2013-04-01 13:08, Matthew Lundberg wrote: Note the edited subject line! I don't know why I typed it as it was before. This says that as.numeric(as.character(f)) will work regardless of the implementation, and I agree. It's the recommendation to use as.numeric(levels(f))[f] that has me

Re: [R] Factor function for coded numerical values

2012-11-29 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of maths123 Sent: Monday, November 26, 2012 8:25 PM To: r-help@r-project.org Subject: Re: [R] Factor function for coded numerical values The question says

Re: [R] Factor function for coded numerical values

2012-11-26 Thread maths123
The question says that there is an experiement to investigate the effect on breathing rate when doing different types of exercise with wearing more clothes or less clothes (factor A, coded 1,2). The duration of exercise was 10min, 20min, 30min (factor B, coded 1,2,3). Could you give m anymore

Re: [R] Factor function for coded numerical values

2012-11-23 Thread Milan Bouchet-Valat
Le jeudi 22 novembre 2012 à 13:12 -0800, maths123 a écrit : I have s data set where 2 of the columns give the coded versions of the factors A and B. Factor A is coded with 1, 2, 3. Factor B is coded with 1,2. How do use the factor function to convert these variables into factors, and also

[R] Factor function for coded numerical values

2012-11-22 Thread maths123
I have s data set where 2 of the columns give the coded versions of the factors A and B. Factor A is coded with 1, 2, 3. Factor B is coded with 1,2. How do use the factor function to convert these variables into factors, and also use the labels= command to give them a more informative name?

Re: [R] factor or character

2012-10-24 Thread Rui Barradas
Hello, Sorry but, what doesn't work? What is the error message or result? As for stringsAsFactors not keeping character strings as character strings maybe this is from calling data.frame from within the environment used by with(), but you can use other ways of converting to character strings,

Re: [R] factor or character

2012-10-24 Thread Silvano Cesar da Costa
Hi, still doesn't work. Hello, I've just seen the error, you are _not_ searching for colnames in mod5.sig$snps. Corrected: Selec = todos[ , colnames(todos) %in% mod5.sig$snps] Hope this helps, Rui Barradas Em 23-10-2012 21:17, Silvano Cesar da Costa escreveu: Hi Rui, it doesn't

[R] factor or character

2012-10-23 Thread Silvano Cesar da Costa
Hi, The program below work very well. (snps = c('rs621782_G', 'rs8087639_G', 'rs8094221_T', 'rs7227515_A', 'rs537202_C')) Selec = todos[ , colnames(todos) %in% snps] head(Selec) But, I have a data set with 1.000 columns and I need extract 70 to use (like snps in command above). This 70 snps

Re: [R] factor or character

2012-10-23 Thread Rui Barradas
Hello, When creating the data.frame of snps use the option stringsAsFactors = FALSE I believe your error comes from the fact that you are trying to find colnames in a variable coded as integers (a factor, like str shows). Hope this helps, Rui Barradas Em 23-10-2012 19:02, Silvano Cesar da

Re: [R] factor or character

2012-10-23 Thread Rui Barradas
Hello, I've just seen the error, you are _not_ searching for colnames in mod5.sig$snps. Corrected: Selec = todos[ , colnames(todos) %in% mod5.sig$snps] Hope this helps, Rui Barradas Em 23-10-2012 21:17, Silvano Cesar da Costa escreveu: Hi Rui, it doesn't work: (mod5.sig = with(mod5,

Re: [R] factor or character

2012-10-23 Thread Silvano Cesar da Costa
Hi Rui, it doesn't work: (mod5.sig = with(mod5, data.frame(snps = SNP[pvalor5e-8], stringsAsFactors=FALSE))) str(mod5.sig) 'data.frame': 76 obs. of 1 variable: $ snps: Factor w/ 220 levels rs10058955_A,..: 89 59 88 73 40 35 97 55 87 204 ... Selec = todos[ , colnames(todos) %in% mod5.sig]

[R] factor score from PCA

2012-10-19 Thread ya
Hi everyone, I am trying to get the factor score for each individual case from a principal component analysis, as I understand, both princomp() and prcomp() can not produce this factor score, the principal() in psych package has this option: scores=T, but after running the code, I could

Re: [R] factor score from PCA

2012-10-19 Thread Sarah Goslee
From ?princomp Arguments: scores: a logical value indicating whether the score on each principal component should be calculated. Value: scores: if ‘scores = TRUE’, the scores of the supplied data on the principal components. These are non-null only if ‘x’ was

Re: [R] factor expansion

2012-09-27 Thread PIKAL Petr
: Wednesday, September 26, 2012 6:39 PM To: PIKAL Petr; r-help@r-project.org Subject: Re: [R] factor expansion Thank you PIKAL Petr, This is used when you have a big data base of a national sample. So, this factor is a variable that uses the sample in order to obtain information about all the people

Re: [R] factor expansion

2012-09-27 Thread Ista Zahn
is spanish). Perhaps, there's a function in R, but I have not idea. Hope it helps. Thanks in advance. José De: PIKAL Petr petr.pi...@precheza.cz l...@r-project.org Enviado: Miércoles 19 de septiembre de 2012 9:19 Asunto: RE: [R] factor expansion Hi I

Re: [R] factor expansion

2012-09-26 Thread Jose Bustos Melo
2012 9:19 Asunto: RE: [R] factor expansion Hi I did not see any answer yet but can you explain what you mean by factor expansion? Something like expand.grid? Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Jose Bustos Melo

Re: [R] factor expansion

2012-09-19 Thread PIKAL Petr
:16 PM To: r-help@r-project.org Subject: [R] factor expansion I'm trying to use a data base from SPSS and get all data representing the true data. I would like to use a variable as expansion data. In our data base we have the variable with the factor expansion, but we have not idea how to set

[R] factor expansion

2012-09-12 Thread Jose Bustos Melo
I'm trying to use a data base from SPSS and get all data representing the true data. I would like to use a variable as expansion data. In our data base we have the variable with the factor expansion, but we have not idea how to set it in R. Any idea? Thanks in advance! José

[R] Factor moderators in metafor

2012-08-09 Thread John Hodgson
I'm puzzled by the behaviour of factors in rma models, see example and comments below. I'm sure there's a simple explanation but can't see it... Thanks for any input John Hodgson - code/selected output - library(metafor) ##Set up data

Re: [R] Factor moderators in metafor

2012-08-09 Thread Viechtbauer Wolfgang (STAT)
://www.wvbauer.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of John Hodgson Sent: Thursday, August 09, 2012 12:56 To: r-help@r-project.org Subject: [R] Factor moderators in metafor I'm puzzled by the behaviour of factors in rma

Re: [R] Factor moderators in metafor

2012-08-09 Thread John Hodgson
=nodenode=4639763i=1] On Behalf Of John Hodgson Sent: Thursday, August 09, 2012 12:56 To: [hidden email] /user/SendEmail.jtp?type=nodenode=4639763i=2 Subject: [R] Factor moderators in metafor I'm puzzled by the behaviour of factors in rma models, see example and comments below. I'm sure

Re: [R] factor coercion with read.csv or read.table

2012-06-07 Thread Rui Barradas
Hello, Try option stringsAsFactors, see ?read.csv or ?read.table As for the thousands separator, see ?format Hope this helps, Rui Barradas Em 07-06-2012 03:09, eric escreveu: How do I fix this error ? I tried coercion to a vector but that didn't work. msci -read.csv(..MSCIexUS.csv,

Re: [R] factor coercion with read.csv or read.table

2012-06-07 Thread peter dalgaard
On Jun 7, 2012, at 09:25 , Rui Barradas wrote: Hello, Try option stringsAsFactors, see ?read.csv or ?read.table As for the thousands separator, see ?format help(as.Date) should also help. (Hint: there's no dateFormat= argument) Hope this helps, Rui Barradas Em 07-06-2012 03:09,

[R] factor coercion with read.csv or read.table

2012-06-06 Thread eric
How do I fix this error ? I tried coercion to a vector but that didn't work. msci -read.csv(..MSCIexUS.csv, header=TRUE) head(msci) Date index 1 Dec 31, 1969100 2 Jan 30, 1970 97.655 3 Feb 27, 1970 96.154 4 Mar 31, 1970 95.857 5 Apr 30, 1970 85.564 6 May 29, 1970 79.005

[R] Factor problem

2012-05-29 Thread Raúl Bajo
HI! I am working with a table with quantitative and qualitative data; one of the columns is Level of education, which is an ordered factor. I want to get rid of the ordered factor, and set my own scale. How to do that? All the time I get the following error: In `[-.factor`(`*tmp*`, educa = Less

Re: [R] Factor problem

2012-05-29 Thread R. Michael Weylandt
Please don't double post. (And see my reply to your other thread) Michael On Tue, May 29, 2012 at 1:50 PM, Raúl Bajo raulba...@gmail.com wrote: HI! I am working with a table with quantitative and qualitative data; one of the columns is Level of education, which is an ordered factor. I want

[R] factor conversion to date/time

2012-05-02 Thread marjolein post
Hi, I've been trying to convert numbers from an online temperature database into dates and time that R recognizes. I've tried as.Date, as.POSIXlt and strptime the problem is that the database has put a T between the numbers and R will not accept any conversions. currently it sees the date

Re: [R] factor conversion to date/time

2012-05-02 Thread Duncan Murdoch
On 02/05/2012 8:08 AM, marjolein post wrote: Hi, I've been trying to convert numbers from an online temperature database into dates and time that R recognizes. I've tried as.Date, as.POSIXlt and strptime the problem is that the database has put a T between the numbers and R will not accept

Re: [R] factor conversion to date/time

2012-05-02 Thread R. Michael Weylandt
Please don't triple post. Michael On Wed, May 2, 2012 at 8:08 AM, marjolein post mayo_j...@hotmail.com wrote: Hi, I've been trying to convert numbers from an online temperature database into dates and time that R recognizes. I've tried as.Date, as.POSIXlt and strptime  the problem is

Re: [R] factor conversion to date/time

2012-05-02 Thread John Kane
Sent: Wed, 2 May 2012 14:08:26 +0200 To: r-help@r-project.org Subject: [R] factor conversion to date/time Hi, I've been trying to convert numbers from an online temperature database into dates and time that R recognizes. I've tried as.Date, as.POSIXlt and strptime the problem

[R] factor level for non-existing value

2012-02-09 Thread David Studer
Hello everybody! Let's assume I have the following factor with it's levels: a-factor(c(2,3,3,2,4,2,3,2,2,2,3,2,3)) mydata-data.frame(a) When I plot the vector a using barplot(table(mydata$a) unfortunately the value 1 does not show up, as it does not appear in my data. But still, it

Re: [R] factor level for non-existing value

2012-02-09 Thread Petr PIKAL
Hi Hello everybody! Let's assume I have the following factor with it's levels: a-factor(c(2,3,3,2,4,2,3,2,2,2,3,2,3)) mydata-data.frame(a) When I plot the vector a using barplot(table(mydata$a) unfortunately the value 1 does not show up, as it does not appear in my data. But

Re: [R] factor level for non-existing value

2012-02-09 Thread Ista Zahn
Hi David, On Thursday, February 09, 2012 01:21:48 PM David Studer wrote: Hello everybody! Let's assume I have the following factor with it's levels: a-factor(c(2,3,3,2,4,2,3,2,2,2,3,2,3)) mydata-data.frame(a) #You need to specify levels and labels here, like this: a -

Re: [R] Factor Analysis/Inputting Correlation Matrix

2011-11-20 Thread biorafas
ey man!! you need to change the format of your data as matrix data - as.matrix(correlation_data) solucion - factanal(covmat = data, factors=2) that´s all!!! enjoy Rafael Ch. -- View this message in context:

[R] factor level issue after subsetting

2011-11-01 Thread Schreiber, Stefan
Dear list, I cannot figure out why, after sub-setting my data, that particular item which I don't want to plot is still in the newly created subset (please see example below). R somehow remembers what was in the original data set. A work around is exporting and importing the new subset. Then it's

Re: [R] factor level issue after subsetting

2011-11-01 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Schreiber, Stefan Sent: Tuesday, November 01, 2011 2:29 PM To: r-help@r-project.org Subject: [R] factor level issue after subsetting Dear list, I cannot figure out why

Re: [R] factor level issue after subsetting

2011-11-01 Thread Justin Haynes
first of all, the subsetting line is overly complicated. dat.sub-dat[dat$treat!='cont',] will work just fine. R does exactly what you're describing. It knows the levels of the factor. Once you remove 'cont' from the data, that doesn't mean that the level is removed from the factor:

Re: [R] factor level issue after subsetting

2011-11-01 Thread Felipe Carrillo
California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx From: Schreiber, Stefan stefan.schrei...@ales.ualberta.ca To: r-help@r-project.org Sent: Tuesday, November 1, 2011 2:28 PM Subject: [R] factor level issue after subsetting Dear list, I cannot figure out why, after sub-setting my data

Re: [R] factor level issue after subsetting

2011-11-01 Thread Schreiber, Stefan
Thanks for the fast response and your comments! That works perfect! Another little mystery solved ;) Stefan From: Felipe Carrillo [mailto:mazatlanmex...@yahoo.com] Sent: Tuesday, November 01, 2011 3:54 PM To: Schreiber, Stefan; r-help@r-project.org Subject: Re: [R] factor level

[R] Factor Analysis with orthogonal and oblique rotation

2011-06-22 Thread Rosario Garcia Gil
Hello I seem to find only two types of rotation for the factanal function in R, the Varimax and Promax, but is it possible to run a orthogonal and oblique rotations in R? Thanks in advance Rosario __ R-help@r-project.org mailing list

Re: [R] Factor Analysis with orthogonal and oblique rotation

2011-06-22 Thread Jeremy Miles
Varimax is orthogonal, promax is oblique. Varimax is generally not recommended. See: Preacher, K. J., MacCallum, R. C. (2003). Repairing Tom Swift's electric factor analysis machine. Understanding Statistics, 2(1), 13-43. (Google the title and you'll find a PDF). The fa() function in the

[R] Factor labels

2011-06-17 Thread Hugo Loyola
Please, can you help me with the following? I want to include a Greek letter as part of a factor label that I need to use as factor on a xyplot. Probably this was already solved so can I get the place where I can look for? Thanks, Hugo [[alternative HTML version deleted]]

Re: [R] Factor labels

2011-06-17 Thread Bert Gunter
?plotmath On Fri, Jun 17, 2011 at 6:32 AM, Hugo Loyola quinc...@gmail.com wrote: Please, can you help me with the following? I want to include a Greek letter as part of a factor label that I need to use as factor on a xyplot. Probably this was already solved so can I get the place where I can

[R] Factor analysis on ordinal nominal data

2011-06-14 Thread Jay
Hi, are there readily available R packages that are able to perform FA on ordinal and/or nominal data? If not, what other approaches and helpful packages would you suggest? BR, Jay __ R-help@r-project.org mailing list

Re: [R] Factor analysis on ordinal nominal data

2011-06-14 Thread William Revelle
At 6:19 AM -0700 6/14/11, Jay wrote: Hi, are there readily available R packages that are able to perform FA on ordinal and/or nominal data? If not, what other approaches and helpful packages would you suggest? If by ordinal and nominal you mean just a few categories (e.g., a mood scale or

[R] Factor Analysis/Inputting Correlation Matrix

2011-06-11 Thread Matt Stati
Can someone please direct me to how to run a factor analysis in R by first inputting a correlation matrix? Does the function factanal allow one to read a correlation matrix instead of data vectors? Thanks, Matt. [[alternative HTML version deleted]]

  1   2   3   >