Re: [R] Phi coefficient matrix (package psych)

2015-04-26 Thread William Revelle
___ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained,

Re: [R] Difference in cummulative variance depending on print command

2014-12-07 Thread William Revelle
nter for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Email: pd@cbs.dk Priv: pda...@gmail.com > > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] set.cor/mat.regress

2015-01-07 Thread William Revelle
- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > William Revellehttp://personality-

Re: [R] Question about package "principal"

2015-01-12 Thread William Revelle
t.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > David Winsemius > Alameda, CA, USA > > ___

Re: [R] Psych package: why am I receiving "NA" for many of the factor scores?

2015-01-14 Thread William Revelle
tps://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > William Revellehttp://personality-project.org/revelle.html Professor

Re: [R] Psych package: why am I receiving "NA" for many of the factor scores?

2015-01-15 Thread William Revelle
n the fa function in the way it just ignored the missing statement. Thanks for catching that. It is now fixed and should be on CRAN real soon. Bill > On Jan 14, 2015, at 9:39 AM, William Revelle wrote: > > Dear Elizabeth, > > Factor scores in the fa function are found by mult

Re: [R] How to add error bars to a line xyplot (lattice package)

2015-01-27 Thread William Revelle
___ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained,

Re: [R] 2d rotation: vegan?

2015-02-14 Thread William Revelle
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > William R

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

2015-02-23 Thread William Revelle
roject.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > William Revelle

Re: [R] PCA analysis and bootstraped loadings

2015-04-13 Thread William Revelle
le > problems of being mammals. > >-K. Mullis > > "A big computer, a complex algorithm and a long time does not equal > science." > > -Robert Gentleman > > [[alternative HTML version d

Re: [R] simulation data with dichotomous varuables

2014-08-10 Thread William Revelle
tive 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 commented, minimal, sel

Re: [R] Is there a package for EFA with multiple groups?

2014-08-10 Thread William Revelle
, UCLA Department of Psychology > http://joshuawiley.com/ > Senior Analyst, Elkhart Group Ltd. > http://elkhartgroup.com > Office: 260.673.5518 > > [[alternative HTML version deleted]] > > __ > R-he

Re: [R] Help on how to use cosinor analysis

2015-12-26 Thread William Revelle
]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, mini

Re: [R] sequential sum of a vector...

2008-07-23 Thread William Revelle
:10,each=8)),sum)[-1] or rowsum(x,group=rep(1:10,each=8)) But without grouping, can I achieve the required? Any other ways of doing this? Thanks, Shubha colSums(matrix(x,nrow=8)) Bill -- William Revelle http://personality-project.org/revelle.html Professor http

Re: [R] Point-biserial correlation

2008-07-23 Thread William Revelle
, minimal, self-contained, reproducible code. -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org/personality.html Department of Psychology http://www.wcas.northwestern.edu/psych/ Northwestern University

Re: [R] Multiple Regression with Correlation Matrix

2008-08-15 Thread William Revelle
your assistance. Linda look at mat.regress in the psych package. It will do some of what you might want. That is to say, it will do a multiple regression from the correlation matrix and give you appropriate tests for the given sample size. Bill -- William Revelle http

Re: [R] intra-class correlation? coherence among multiple ordinal responses

2009-08-22 Thread William Revelle
ween the 3 types of ICCs are the type of generalization you want to make. Note that ICC3n is the same as coefficient alpha. ICC, alpha, and omega are all part of the psych package. Bill -- William Revelle http://personality-project.org/revelle.html Professor

Re: [R] Winsorized mean and variance

2009-08-27 Thread William Revelle
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org/personality.html Department

Re: [R] Fastest Way to Divide Elements of Row With Its RowSum

2009-09-16 Thread William Revelle
tinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org/pers

[R] Alternatives to Rgraphviz -- request suggestions

2009-09-18 Thread William Revelle
res of Rgraphviz (and hopefully, fewer of the difficulties). Thanks to all for your suggestions. Bill -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org/personality.html Department of Psychology h

Re: [R] correlation help

2009-09-20 Thread William Revelle
___ 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 commented, minimal, self-contained, reproducible code. -- William Revelle http://personality-project.org/reve

Re: [R] summary statistics for grouped data

2010-02-12 Thread William Revelle
cible code. __ 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 commented, minimal, self-contained, reproducible code. -- William Revelle http://r

Re: [R] tree-drawing in R ?

2010-02-15 Thread William Revelle
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 commented, minimal, self-contained, reproducible code. -- William Revelle http://revelle.net/revelle.html 2815 Lakeside Court

Re: [R] Error analysis for circular data

2010-02-15 Thread William Revelle
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- William Revelle http://revelle.net/revelle.html 2815 Lakeside Court http://revelle.net/lakeside Evanston, Illinois It is 6 minutes to midnight http

Re: [R] block matrices

2010-02-24 Thread William Revelle
/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- William Revelle http://revelle.net/revelle.html 2815 Lakeside Court http://revelle.net/lakeside Evanston, Il

Re: [R] Plot interaction in multilevel model

2010-03-06 Thread William Revelle
ide.html and provide commented, minimal, self-contained, reproducible code. -- William Revelle http://revelle.net/revelle.html 2815 Lakeside Court http://revelle.net/lakeside Evanston, Illinois It is 6 minutes to midnight http://www.thebulletin.org

Re: [R] Best way to export values from a function?

2009-07-08 Thread William Revelle
p" "Fac" X[1,] <- multipleoutput(2) Warning message: In answer$Squ = x^2 : Coercing LHS to a list X Squared Cubed Exp Fac 1 4 8 7.389056 2 class(X) [1] "data.frame" > ?list e.g., multipleoutput <- function(x) { answer =

Re: [R] t-scores and correlation

2009-07-11 Thread William Revelle
mmented, minimal, self-contained, reproducible code. > > [[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.o

Re: [R] Help With Fleiss Kappa

2009-07-13 Thread William Revelle
negative values. I am using the irr package version 0.70 Any help is much appreciated. Mehdi, Are you by any chance giving the function the agreement matrix rather than the raw data? The kappam.fliess function seems to want the ratings rather than the agreement matrix. Bill -- William

Re: [R] multiple error bars when NA present

2009-07-24 Thread William Revelle
a,ylim=c(0.6)) shows multiple error bars for each vector and the number of extra error bars equals to the number of vectors with NA value present. Is this a bug? Yes. It is a bug. Thanks for the report. Stay tuned. Bill Thanks Gordon -- William Revelle http://personality

Re: [R] error bars

2010-03-30 Thread William Revelle
ster.ac.uk __ 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 commented, minimal, self-contained, reproducible code. -- William Revelle http://r

[R] strange behavior of matrix

2010-04-05 Thread William Revelle
.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] psych_1.0-87 I think this is unexpected behavior. Best wishes, Bill -- William Revelle http://personality-project.org/revelle.html Professor

Re: [R] simple data import of .csv

2010-04-10 Thread William Revelle
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 commented, minimal, self-contained, reproducible code. -- William Revelle http://personality-project

Re: [R] R 2.10 memory leak on OS X

2009-11-19 Thread William Revelle
E do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org/personality.html Department

Re: [R] Structural Equation Models(SEM)

2009-11-25 Thread William Revelle
Windows XP sem_0.9-19 version. Where did I make a mistake? Have anyone of you knowledge of any other package doing similar things like Confirmative Factor Analysis Ralf Finne Novia University of Applied Science Vasa Finland __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

Re: [R] Calculation of Central Moments

2009-12-01 Thread William Revelle
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 commented, minimal, self-contained, reproducible code. -- William Revelle http://pe

Re: [R] SEM/path question

2009-05-29 Thread William Revelle
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 commented, minimal, self-contained, reproducible code. -- William Revelle http://perso

Re: [R] estimate the reliability of a scale with dichotomous items

2009-06-14 Thread William Revelle
thanks for any help! __ 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 commented, minimal, self-contained, reproducible code. -- William

Re: [R] pca vs. pfa: dimension reduction

2009-03-25 Thread William Revelle
_ 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 commented, minimal, self-contained, reproducible code. -- William Revelle

Re: [R] Factor Analysis Output from R and SAS

2009-03-31 Thread William Revelle
___ 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 commented, minimal, self-contained, reproducible code. -- William Revelle h

Re: [R] Re : PCA and automatic determination of the number of components

2009-04-20 Thread William Revelle
sych package includes a number of ways to determine the number of components. Parallel analysis (comparing your solution to random ones), Minimum Absolute Partial correlations, Very Simple Structure are three of the better ways. Try functions fa.parallel and VSS. Bill -- William Rev

Re: [R] Hierarchical Diagram of Networks in sna or otherwise?

2009-05-04 Thread William Revelle
lthough somewhat difficult to install, once installed it works beautifully. Bill -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org/personality.html Department of Psychology http://www.

Re: [R] How to replace NA values

2013-08-04 Thread William Revelle
to do this in R. > > Any suggestions welcomed. > > > > [[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

Re: [R] Issues with fa() function in "psych"

2014-04-09 Thread William Revelle
t;> Sagnik >> >> -- >> Regards, >> >> *SAGNIK CHAKRAVARTY* >> >> *Mob:* +919972865435 >> *Email:* sagnik.st...@gmail.com >> sagnik@gmail.com >> >> [[alternative HTML version deleted]] >> >> _

Re: [R] Issues with fa() function in "psych"

2014-04-10 Thread William Revelle
ion 1.4.4. > > Sagnik > > > On Wed, Apr 9, 2014 at 8:05 PM, William Revelle wrote: > Sagnik raises the question as to why the psych package does not offer the > ‘equamax’ rotation. > It is because all rotations are handled through the GPArotation package which > does not offer

Re: [R] Issues with fa() function in "psych"

2014-05-14 Thread William Revelle
eat if I could know when we can expect the release of > the edited version 1.4.4. > > Sagnik > > > On Wed, Apr 9, 2014 at 8:05 PM, William Revelle wrote: > Sagnik raises the question as to why the psych package does not offer the > ‘equamax’ rotation. > It is

Re: [R] Help with polychoric correlation in psych library

2014-06-02 Thread William Revelle
gt; Thanks, Simon Kiss > > * > Simon J. Kiss, PhD > Assistant Professor, Wilfrid Laurier University > 73 George Street > Brantford, Ontario, Canada > N3T 2C9 > Cell: +1 905 746 7606 > > ______ > R-help@r-project.org mailing list >

Re: [R] plot in package psych with function error.bars.by

2014-06-07 Thread William Revelle
ts[[g]]$n - 1) : NaNs produced > 2: In dt(ln, n - 1) : NaNs produced > 3: In qt(alpha/2, n - 1) : NaNs produced > > As I don't know what is happening here, I can't do anything about the > pch problem. > > Jim > > __

Re: [R] Identifying one or more TRUE in the middle of an array

2014-06-08 Thread William Revelle
any annex are purely those of the > writer and may not be regarded as stating an official position of INBO, as > long as the message is not confirmed by a duly signed document. > > __ > R-help@r-project.org mailing list > https

Re: [R] plot in package psych with function error.bars.by

2014-06-11 Thread William Revelle
Jun 7, 2014, at 3:10 PM, William Revelle wrote: > Tham and Jim, > As usual, my first response to this is when you find a problem with the > psych package, write me (as author) as well as the R-help list. > > In addition, always include which version of psych you are running. Th

Re: [R] plot in package psych with function error.bars.by

2014-06-19 Thread William Revelle
age in context: > http://r.789695.n4.nabble.com/plot-in-package-psych-with-function-error-bars-by-tp4691632p4692177.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do re

Re: [R] Principal component analysis with EQUAMAX rotation

2014-06-20 Thread William Revelle
gt; 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 commented, minimal, self-contained, reproducible code. > William Revellehttp://pers

Re: [R] Principal component analysis with EQUAMAX rotation

2014-06-20 Thread William Revelle
m. > > __ > 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 commented, minimal, self-contained, rep

Re: [R] Principal component analysis with EQUAMAX rotation

2014-06-21 Thread William Revelle
Xubuntu 12.04 64-bit with R version 3.1.0 (2014-04-10). > > Thanks > Orvalho > > > On Fri, Jun 20, 2014 at 6:36 PM, William Revelle wrote: > Dear Wagner, > I added the equamax rotation option to the psych package in version 1.4.6. > This was requested by Sagnik Chakra

Re: [R] Plotting confidence intervals of two response on same graph (panel).

2010-06-17 Thread William Revelle
]] __ 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 commented, minimal, self-contained, reproducible code. -- William Revelle http://personality

Re: [R] Beginning Eigen System question.

2010-06-23 Thread William Revelle
Kevin, At 3:32 PM -0700 6/23/10, wrote: Forgive me if I missunderstand a basic Eigensystem but when I present the following matrix to most any other LinearAlgebra system: 1 3 1 1 2 2 1 1 3 I get an answer like: //$values //[1] 5.00e+00 1.00e+00 -5.536207e-16 //$vectors /

[R] problem with building package on CRAN

2010-07-26 Thread William Revelle
clude I do have several suggested packages (polycor, GPArotation, MASS, graph, Rgraphviz, mvtnorm, Rcsdp), but none of these are actually required. My examples all ask if the suggested packages are available and then do not call them if they are not. Any suggestions on what to do wou

Re: [R] Problem with cat() == A related question

2010-09-14 Thread William Revelle
At 3:45 PM -0400 9/14/10, jim holtman wrote: The problem is the 'cat' enclosing the 'print'; just get rid of the 'cat' -- that is what is causing the extra output On Tue, Sep 14, 2010 at 3:34 PM, Peng, C wrote: It is still visible even it is set invisible(NULL): fn1 <- function(n = 5){

Re: [R] Matrix- create mean/min/max/stdev on column of matrix or rows?

2010-09-17 Thread William Revelle
to get mean, sd, min, max, trimmed mean, median, se, skew, and kurtosis of a matrix or data frame, try describe in the psych package. At 10:41 PM -0300 9/17/10, Henrique Dallazuanna wrote: Content-Type: text/plain Content-Disposition: inline Content-length: 659 Try this: apply(m, 1, summar

Re: [R] Scatterplot matrix - Pearson linear correlation and Density Ellipse

2010-10-03 Thread William Revelle
Dear ashz, Unfortunately, much of you want is not possible with the current implementation of pairs.panels. Since pairs.panels is adapted from the help file of pairs, you might try pairs and then add in the panel functions that do what you want. That the lm option does it what it does met a

Re: [R] Multi-line graph?

2010-10-15 Thread William Revelle
?matplot e.g., copy your data to the clipboard then library(psych) my.data <- read.clipboard() my.data Tenth Fifth Third GG 112 152 168 EC 100 120 140 SQ 160 184NA SK 120 100 180 matplot(t(my.data),type="b") Bill At 10:27 AM -0700 10/15/10, barnhillec wrote:

Re: [R] display data as 1px dots in scatterplot ?

2010-11-21 Thread William Revelle
At 4:46 AM -0800 11/21/10, madr wrote: By default scatter-plot presents data by using circles, is there a way to make it 1px dots ? -- View this message in context: http://r.789695.n4.nabble.com/display-data-as-1px-dots-in-scatterplot-tp3052343p3052343.html Sent from the R help mailing list arc

Re: [R] Significance of the difference between two correlation coefficients

2010-11-29 Thread William Revelle
At 5:02 PM + 11/29/10, Adaikalavan Ramasamy wrote: Thanks for providing the example but it would be useful to know who I am communicating with or from which institute, but nevermind ... I don't know much about this subject but a quick google search gives me the following site: http://david

Re: [R] Re : Re : descriptive statistics

2010-12-13 Thread William Revelle
An alternative way of getting summary statistics by a grouping variable is to use describe.by in the psych package: using Jim Lemon's example: library(psych) testmat<-data.frame(sample(1:14,50,TRUE),rnorm(50),runif(50)) #make up the data describe.by(test.mat,testmat[1]#get descriptive st

Re: [R] How to measure correlations in terms of distance and draw them on a 2-dimmentional plot?

2010-08-18 Thread William Revelle
Weijian, Look at multidimensional scaling functions such as cmdscale or isoMDS (in MASS) or factor analysis (e.g., factanal in core R or fa in the psych package) or item cluster analysis (ICLUST, also in psych). What you will need to think about is how many dimensions best represent the 10

Re: [R] Draw a perpendicular line?

2010-08-25 Thread William Revelle
At 3:04 PM -0700 8/23/10, CZ wrote: Hi, I am trying to draw a perpendicular line from a point to two points. Mathematically I know how to do it, but to program it, I encounter some problem and hope can get help. Thanks. I have points, A, B and C. I calculate the slope and intercept for line d

Re: [R] Making plots in big scatterplot matrix large enough to see

2010-08-31 Thread William Revelle
a time. Thanks, Jocelyn Paine http://www.j-paine.org http://www.spreadsheet-parts.org +44 (0)7768 534 091 __ 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 comment

[R] how to not match partial names

2011-05-07 Thread William Revelle
ot;,AA="") if(is.null(x$A)) {result <- x$} else {result <- x$A} result #also can not partial match My need for this is that I have several functions that return lists and I am trying to extract if it exists, but something else if it does not. Thanks. Bill -- William

Re: [R] Side by side scatter plots with specified regression lines

2011-06-12 Thread William Revelle
Dear Sigrid, At 12:46 PM -0700 6/12/11, Sigrid wrote: I am new and self taught in R, so please bear with me. I want to create two scatter plots side by side. The data set includes measurements from two different countries with 7 treatments over a timeline (x-axis). Problem 1 I want to have eac

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread William Revelle
Peter, Scot, Jim, and Jason, Thanks for the various solutions to Jason's problem. In the next release of psych I will a) document how to use non-numeric categorical variables (e.g., red, blue, etc.) when using cohen.kappa, b) suggest that cbind does the job (Peter's solution), c) make it

Re: [R] Cohen's Kappa for beginners

2010-05-25 Thread William Revelle
Jason, At 9:55 AM -0700 5/25/10, Jason Priem wrote: Thanks for you quick responses, all! Bill, it looks like that's just what I want, but I'm not sure where you're getting the cohen.kappa() function. The only function I could find by that name is in the concord library, and it gives me: x<-c

Re: [R] Error Bar Issues

2010-06-05 Thread William Revelle
Dear Beloitstudent; Although Ben Bolker will have to give you the definitive answer, the following will do what I think you want to do. library(plotrix) #for those of us who don't know where plotCI comes from #give us the data: Saline <- structure(list(Time = c(-20L, NA, 30L, 45L, 60L, 8

Re: [R] Intra-Class correlation psych package missing data

2010-06-08 Thread William Revelle
aps William Revelle in particular, I'm curious as to how ICC deals with missing data, so for example you are sampling individuals over set periods in time and one individual is missing or was not recaptured at that given time point - leading to NA in the dataset. My thought was that it should t

Re: [R] color of histgram in Psych package (pairs.panels)

2010-06-08 Thread William Revelle
o read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org Department of

Re: [R] Creating covariance matrices for simple and complex factor structure

2011-02-05 Thread William Revelle
At 6:00 PM + 2/5/11, LOUDERMILK, BRANDON wrote: Hello all, I'm trying to create covariance matrices that, when processed via CFA methods (in the sem package) will produce exact fit with simple structure down to poor fit with cross loadings. What is the best way to do this? I don't reall

Re: [R] barplot with errorbars

2011-02-17 Thread William Revelle
As the FAQ (http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-put-error-bars-or-confidence-bands-on-my-plot_003) says, there are about 5 different packages that will draw error bars. At 2:38 PM -0600 2/17/11, Aldi Kraja wrote: Hi Toby and Maria, I did a check on Toby's suggestion and i

Re: [R] PCA - scores

2011-03-03 Thread William Revelle
Shari, Josh partly answered your question, but his example did not include rotation because he took out just one factor. Try: require(psych) mt.pc <- principal(mtcars,3,scores=TRUE) #this gives you the varimax rotated first 3 principal components #pc.scores <- mt.pc$scores #here are

Re: [R] PCA - scores

2011-03-04 Thread William Revelle
he example I sent (see below)? Thanks, Shari On 3-Mar-11, at 9:42 PM, William Revelle wrote: Shari, Josh partly answered your question, but his example did not include rotation because he took out just one factor. Try: require(psych) mt.pc <- principal(mtcars,3,scores=TRUE) #t

Re: [R] lavaan diagram

2011-03-06 Thread William Revelle
Dear Sebastian, Yes. The problem is that the most recent version of psych 1-.0-94 was released before the most recent version of lavaan (0.4-7) I have updated the lavaan.diagram function in psych and will release it soon. In the meantime, you can get the update by sourcing it at http://

Re: [R] Sweave with scan()-ed data

2011-03-07 Thread William Revelle
At 10:21 AM -0500 3/7/11, Michael Friendly wrote: In an Sweave slide, I want to use sem::read.moments() and sem::specify.model(), which work by using scan() to read the following lines, up to the first blank line. However, Sweave throws an error: > Sweave("sem-thurstone.Rnw") Writing to fil

Re: [R] lavaan diagram

2011-03-08 Thread William Revelle
Sebastian, At 7:03 PM -0800 3/8/11, Peter Ehlers wrote: On 2011-03-08 18:09, Sebastián Daza wrote: 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

Re: [R] Bayesian PCA

2011-04-12 Thread William Revelle
ented, minimal, self-contained, reproducible code. -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org Department of Psychology http://www.wcas.northwestern.edu/psych/ Northwestern University http://www.northwe

Re: [R] How to get the descriptive statistic of the whole dataframe?

2011-08-18 Thread William Revelle
ilman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- -- William Revelle http://personality-project.org/revelle.html Professor

Re: [R] Q and R mode in Principal Component Analysis

2011-09-06 Thread William Revelle
At 4:10 PM +0100 9/6/11, Lívio Cipriano wrote: Hi, Can anyone explain me the differences in Q and R mode in Principal Component Analysis, as performed by prcomp and princom respectively. Dear Livio, The help file of prcomp says it pretty well: "The calculation is done by a singular value

Re: [R] compute Mcdonald's omega ω

2012-06-10 Thread William Revelle
on 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 commented, minimal, self-contained, reproduc

Re: [R] compute Mcdonald's omega ω

2012-06-11 Thread William Revelle
e the number is not string, also tried > SPSS and make sure the numbers are set to numeric.. > > can somebody advice me what is wrong. > > > > Thanks. > > > > > On 11 June 2012 04:17, William Revelle wrote: > Dear "codecat" > > You can

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 per

Re: [R] very large pair() plot

2011-07-01 Thread William Revelle
In addition to Uwe's suggestion of creating a pdf and then plotting to it, it is useful to set the gap size to 0 (gap=0) You might also look at pairs.panels in the psych package which implements one of the examples in pairs (i.e., it gives histograms on the diagonal and reports the correlation

Re: [R] Help creating a symmetric matrix?

2011-12-24 Thread William Revelle
>> Aren't you complicating? >> >> In the last line of your code, why use 'v[ind]' if 'ind' indexes the matrix, >> not the vector? >> >> z<-diag(6) >> ind <- lower.tri(z) >> z[ind] <- v#This wor

Re: [R] Help with PCA

2011-12-30 Thread William Revelle
that assumes raw data. > > Sarah > > -- > Sarah Goslee > http://www.functionaldiversity.org > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting

Re: [R] Base function for flipping matrices

2011-12-31 Thread William Revelle
ent of Statistics / Rice University > http://had.co.nz/ > > __ > 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 commented, minimal, sel

Re: [R] Boxplot BUT with Mean, SD, Max & Min ?

2011-09-26 Thread William Revelle
Dear Phil, An alternative solution is to draw a regular Tukey Box Plot but overlay the means +/- 1 sd: boxplot(anscombe) psych:::error.bars(anscombe,sd=TRUE,add=TRUE) Bill At 3:45 AM +1000 9/27/11, Philip Rhoades wrote: Gabor, Bill, On 2011-09-27 02:51, Gabor Grothendieck wrote: On Mo

Re: [R] how do i put two scatterplots on same graph

2011-10-04 Thread William Revelle
__ > 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 commented, minimal, self-contained, reproducible code. > William Revelle

Re: [R] Labels in ICLUST

2011-10-12 Thread William Revelle
antime, a workaround, is to label the columns with the labels you want. > colnames(test.data ) <- letters[1:ncol(test.data)] > ic.out <- ICLUST(test.data,4) Bill William Revellehttp://personality-project.org/revelle.html Professor

Re: [R] Correlation Matrix in R

2011-10-26 Thread William Revelle
__ > 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 commented, minimal, self-contained, reproducible code. > William Revelleh

Re: [R] Correlation Matrix in R

2011-11-01 Thread William Revelle
there anyway to > export the results in a txt or csv file? Since it isn't in a data frame > format it cannot simply be exported using write.table > > Alexandre > > -- > View this message in context: > http://r.789695.n4.nabble.com/Correlation-Mat

Re: [R] computing scores from a factor analysis

2012-01-19 Thread William Revelle
//r.789695.n4.nabble.com/computing-scores-from-a-factor-analysis-tp4306234p4306234.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PL

Re: [R] inter-item-correlation-table

2012-05-19 Thread William Revelle
h/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > William Revellehttp://personality-project.org/revelle.html Professor

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread William Revelle
e commented, minimal, self-contained, reproducible code. -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org/personality.html Department of Psychology http://www.wcas.northwestern.edu/psych/ Northwestern University

Re: [R] How to build a package which loads Rgraphviz (if installed)...

2008-07-12 Thread William Revelle
stinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- William Revelle http://personality-project.org/revelle.html Professor http://personality-project.org/pe

  1   2   >