[R] poLCA problem

2021-03-05 Thread Scott Colwell
Good morning everyone, I am running into errors with poLCA as follows: Error in round(mf) : non-numeric argument to mathematical function. Here is what I have. Both variables are coded as 1, 2, 3 df <- as.data.frame(data) items <- c("x1", "x2") <- there are more variables but shortened for th

[R] Quantitative Methods Workshops in May 2020

2020-04-06 Thread Scott Colwell
FORWARDED – The following message has been forwarded and is not related to the University of Guelph. Apologies for the cross-posting. Good morning everyone. We sincerely hope you are all keeping safe and healthy while we all endure this pandemic. As a result of the restrictions on public gathe

Re: [R] Creating hanging bar plot in r from dplyr

2019-04-20 Thread Scott Colwell
mp.N ) ) + geom_bar( stat = "identity", position = "dodge", colour = "black" ) + facet_wrap( ~ Measure, ncol = 1, scale = "free_y" ) + ylab( "" ) On Sat, 20 Apr 2019, Scott Colwell wrote

[R] Creating hanging bar plot in r from dplyr

2019-04-20 Thread Scott Colwell
I am trying to figure out how to create a hanging bar plot from dplyr. I have used dplyr as follows: table4 <- cr %>% group_by(samp.N, RSQ) %>% summarize( MRB_uc = mean(CF.F1F2/0.40*100)-100, MRB_sb = mean(SBC.F1F2.Alpha/0.40*100) - 100, MRB_bp = mean(BPC.F1F2.Alpha/0.40*100) - 100

[R] 2019 Spring Workshops using R

2019-04-13 Thread Scott Colwell
Apologies for any cross-postings. Just a reminder that registration is open for four quantitative methods workshops in May of 2019. Each workshop features hands-on examples in Mplus and R, plus lots of opportunities to discuss the analysis for your own research. For more information and to regist

[R] R packages for Mac Users

2016-02-23 Thread Scott Colwell
Hello, Does anyone know if all the R packages that are available for Windows users are also available for Mac users? Thank you, Scott -- Scott R. Colwell, Ph.D. Associate Professor, Dept. of Mkt/Cons Studies Adjunct Professor, Dept. of Psychology University of Guelph Guelph, Ontario, Canada

[R] Looping and break

2015-03-02 Thread Scott Colwell
Hello, I apologies for bringing up next and break in loops given that there is so much on the net about it, but I've tried numerous examples found using Google and just can't seem to get this to work. This is a simple version of what I am doing with matrices but it shows the issue. I need to have

Re: [R] Saving Mean Relative Difference from all.equal()

2015-02-26 Thread Scott Colwell
I think I have one solution. Not very pretty though. Relies on the text not changing at all. as.numeric(gsub("Mean relative difference: ", "", all.equal(cov2cor(ITEMCOV),cor(item.data))[2])) Is there a better way? -- View this message in context: http://r.789695.n4.nabble.com/Saving-Mean-Rela

[R] Saving Mean Relative Difference from all.equal()

2015-02-26 Thread Scott Colwell
Hello, Does anyone know how to save the numeric value of the "mean relative difference" when using the all.equal() command? For example this: all.equal(cov2cor(ITEMCOV),cor(item.data)) Gives: [1] "Attributes: < Length mismatch: comparison on first 1 components >" [2] "Mean relative difference

Re: [R] Extracting Factor Pattern Matrix Similar to Proc Factor

2015-02-26 Thread Scott Colwell
Thanks everyone -- View this message in context: http://r.789695.n4.nabble.com/Extracting-Factor-Pattern-Matrix-Similar-to-Proc-Factor-tp4703704p4703904.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing lis

Re: [R] Extracting Factor Pattern Matrix Similar to Proc Factor

2015-02-23 Thread Scott Colwell
Thanks David. What do you do when the input is a covariance matrix rather than a dataset? -- View this message in context: http://r.789695.n4.nabble.com/Extracting-Factor-Pattern-Matrix-Similar-to-Proc-Factor-tp4703704p4703719.html Sent from the R help mailing list archive at Nabble.com. _

[R] Extracting Factor Pattern Matrix Similar to Proc Factor

2015-02-23 Thread Scott Colwell
ERN'; DROP _TYPE_ _NAME_; RUN; Would any SAS IML to R converts be able to help me with this? Thanks, Scott Colwell, PhD -- View this message in context: http://r.789695.n4.nabble.com/Extracting-Factor-Pattern-Matrix-Similar-to-Proc-Factor-tp4703704.html Sent from the R help mailing