Re: [R] R code: How to correct "Error in parse(text = x, keep.source = FALSE)" output in psych package using own dataset

2019-08-29 Thread William R Revelle
Hi all. I am taking a brief vacation and will look at this next week. Bill > On Aug 29, 2019, at 2:53 PM, William Dunlap wrote: > > Element #2 of that output, the empty fomula " F1=~ ", triggers the bug in > omegaSem. > omegaSem needs to ignore such entries in omega's output. psych's auth

Re: [R] R code: How to correct "Error in parse(text = x, keep.source = FALSE)" output in psych package using own dataset

2019-08-29 Thread Danilo Esteban Rodriguez Zapata via R-help
Thank you so much, I'll wait until then. The good thing is that we can make sure now what is the actual problem. I wish you have a good rest. El jue., 29 ago. 2019 a las 14:55, William R Revelle (< reve...@northwestern.edu>) escribió: > Hi all. > > I am taking a brief vacation and will look at t

Re: [R] R code: How to correct "Error in parse(text = x, keep.source = FALSE)" output in psych package using own dataset

2019-08-29 Thread Danilo Esteban Rodriguez Zapata via R-help
well the output with the code that you refer is the following: > psych::omega(my.data)$model$lavaan [1] g =~ +AUT_10_04+AUN_07_01+AUN_07_02+AUN_09_01+AUN_10_01+AUT_11_01+AUT_17_01+AUT_20_03+CRE_05_02+CRE_07_04+CRE_10_01+CRE_16_02+EFEC_03_07+EFEC_05+EFEC_09_02+EFEC_16_03+EVA_02_01+EVA_07_01+EVA_12_

Re: [R] R code: How to correct "Error in parse(text = x, keep.source = FALSE)" output in psych package using own dataset

2019-08-29 Thread Danilo Esteban Rodriguez Zapata via R-help
Dear William, Thank you for your answer, I would like to add some information that I just obtained looking in different sites and forums. Someone there ask me to create a fake data file, so I did that from my original data file. What I did was open the .csv file with notepad and replace all the 4

Re: [R] R code: How to correct "Error in parse(text = x, keep.source = FALSE)" output in psych package using own dataset

2019-08-29 Thread William Dunlap via R-help
Element #2 of that output, the empty fomula " F1=~ ", triggers the bug in omegaSem. omegaSem needs to ignore such entries in omega's output. psych's author should be able to fix things up. Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Aug 29, 2019 at 12:31 PM Danilo Esteban Rodriguez Z

Re: [R] R code: How to correct "Error in parse(text = x, keep.source = FALSE)" output in psych package using own dataset

2019-08-29 Thread William Dunlap via R-help
Please use 'reply to all' for responses to R-help reponses. What do you get with your original data for psych::omega(my.data)$model$lavaan ? Any entries like "F3=~"? Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Aug 29, 2019 at 12:05 PM Danilo Esteban Rodriguez Zapata < danilo_rodrig

Re: [R] R code: How to correct "Error in parse(text = x, keep.source = FALSE)" output in psych package using own dataset

2019-08-29 Thread William Dunlap via R-help
> omegaSem(r9,n.obs=198) Error in parse(text = x, keep.source = FALSE) : :2:0: unexpected end of input This error probably comes from calling factor("~") and psych::omegaSem(data) will do that if all the columns in data are very highly correlated with one another. In that case ome

[R] R code: How to correct "Error in parse(text = x, keep.source = FALSE)" output in psych package using own dataset

2019-08-29 Thread Danilo Esteban Rodriguez Zapata via R-help
This is a problem related to my last question referred to the omegaSem() function in the psych package (that is already solved because I realized that I was missing a variable assignment and because of that I had an 'object not found' error: https://stackoverflow.com/questions/57661750/one-of-the-

Re: [R] New Work Based on R

2019-08-29 Thread Sarah Goslee
Hi R folks, After following this thread, I got curious, and tried to do a Web of Science search to see how many citations of R there are. It's a *mess*. Even limiting it to "R Core Team" as first author, there are so many variations in citation that WoS eventually gave up and told me that I couldn

Re: [R] New Work Based on R

2019-08-29 Thread Rich Shepard
On Thu, 29 Aug 2019, Eric Berger wrote: He may not be aware that currently authors are encouraged to support reproducible research, which includes making available (where possible) both the data and the software programs that were used in the analysis. Eric, You're correct: I did not know thi

Re: [R] New Work Based on R

2019-08-29 Thread Patrick (Malone Quantitative)
Perhaps rather than re-inventing the wheel, some current open science repository(ies) would work, just with an encouragement to use subject tagging to indicate the software. Pat On Thu, Aug 29, 2019 at 9:38 AM Eric Berger wrote: > > Rich writes: " I've been out of academia for a very long time .

Re: [R] New Work Based on R

2019-08-29 Thread Eric Berger
Rich writes: " I've been out of academia for a very long time ... " He may not be aware that currently authors are encouraged to support reproducible research, which includes making available (where possible) both the data and the software programs that were used in the analysis. I think the OP's s

Re: [R] New Work Based on R

2019-08-29 Thread Rich Shepard
On Thu, 29 Aug 2019, Rainer M Krug wrote: I think you are misunderstanding the OP. Ogbos is, as I understand, looking for a repository for publications using R (as in scientific publications) and not that much. Rainer, et al.: I agree with your interpretation of the request and suggest that t

Re: [R] I wrote the document for extended usage of my pyramid package

2019-08-29 Thread Michael Dewey
Dear Minato That is a nice idea, but why not make it a vignette of your package on CRAN so it is immediately accessible to anyone using the package? Michael On 29/08/2019 07:15, Minato Nakazawa wrote: Dear R-users, I have developed the package pyramid, which has been available from CRAN, bu

Re: [R] Problem parallelizing across cores

2019-08-29 Thread James Spottiswoode
> On Aug 28, 2019, at 4:44 PM, James Spottiswoode wrote: > > Hi Bert, > > Thanks for your advice. Actually i’ve already done this and have checked out > doParallel and future packages. The trouble with doParallel is that it forks > R processes which spend a lot of time loading data and pa

Re: [R] Efficient way to update a survival model

2019-08-29 Thread Frank S .
Hi Vito, Thanks for your reply! Following your suggestion, I have tried: Cox[[3]] <- update(Cox[[2]], . ~ . + cos(3 * v), init=c(coef(Cox[[1]]), 0, 0), data = pbc) Cox[[3]] <- update(Cox[[2]], . ~ . + cos(3 * v), data = pbc) and both expressions lead to the same result. Is that OK? Additiona

Re: [R] New Work Based on R

2019-08-29 Thread Rainer M Krug
> On 29 Aug 2019, at 03:32, David Winsemius wrote: > > > On 8/28/19 6:13 AM, Ogbos Okike wrote: >> Dear Contributors, >> Some of us that use the end product of R could pay for your services >> if asked to do so. While all your help is free, I am a little >> disturbed that there is no archive