search for: revelle

Displaying 20 results from an estimated 65 matches for "revelle".

2018 Sep 17
3
diag(-1) produces weird result
...e diag function: It gives the expected values for 1, a vector (-1,1), but not for -1 Is this a known feature? > diag(1) [,1] [1,] 1 > diag(c(-1,1)) [,1] [,2] [1,] -1 0 [2,] 0 1 > diag(-1) Error in diag(-1) : invalid 'nrow' value (< 0) Bill William Revelle personality-project.org/revelle.html Professor personality-project.org Department of Psychology www.wcas.northwestern.edu/psych/ Northwestern University www.northwestern.edu/ Use R for psychology personality-project.org/r It is 2 minutes to midnight www.thebulletin.or...
2015 Apr 26
1
CRAN submit page down
On 26.04.2015 13:23, William Revelle wrote: > This still seems to be the case. > > I tried uploading the most recent version of psych and got as far as the Step 3 page which says that it has sent out an email. > However, although normally this step takes agout 1 minute, nothing has happened for 16 hours. > > Should w...
2008 Dec 26
3
Simulating dataset using Parallel Latent CTT model?
I am trying to simulate a dataset using Parallel Latent CTT model and this is what i have done so far: (START) #Importing psych library for all the simulation related functions library(psych) # Settting the working directory path to C:/NCME path="C:/NCME" setwd(path) #Using the function to generate the data GenData <- congeneric.sim(N=500, loads =
2024 Jan 17
1
Determining the size of a package
...el-macos-arm64 and r-release-macos-X64 ) When I build it on my Mac M1 it is well within the limits, but when pushing to CRAN, I run into the size message. Is there a way I can find what the size will be on these various implementations without bothering the nice people at CRAN. Thanks. William Revelle personality-project.org/revelle.html Professor personality-project.org Department of Psychology www.wcas.northwestern.edu/psych/ Northwestern University www.northwestern.edu/ Use R for psychology personality-project.org/r It is 90 sec...
2011 May 07
3
how to not match partial names
...A="aaaa") if(is.null(x$A)) {result <- x$BBBB} 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 AAAA if it exists, but something else if it does not. Thanks. Bill -- 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.northwestern.edu/ Use R for psychology http://personality-project.org/r It is...
2010 Jun 17
2
Plotting confidence intervals of two response on same graph (panel).
Hello! I would like to draw a graph like the following: http://www.optics.rochester.edu/workgroups/cml/opt307/spr04/pavel/plot_small.jpg Aim is to plot confidence intervals of treatments for X(=response1) and Y(=response2) axis simultaneously to visualize aggreement of confidence interval for two responses. Can anyone please provide me some direction to start with? Thanks! -- Kim.
2009 Jul 13
3
Help With Fleiss Kappa
Hi All, I am using fleiss kappa for inter rater agreement. Are there any know issues with Fleiss kappa calculation in R? Even when I supply mock data with total agreement among the raters I do not get a kappa value of 1. instead I am getting negative values. I am using the irr package version 0.70 Any help is much appreciated. Thanks and Regards M [[alternative HTML version deleted]]
2011 Nov 03
1
How to test package on Solaris
...pload the final result. I note from reading past queries to the list that this question has been asked before and the solution seems to have been some nice soul volunteering to test a particular package. A more general solution would seem preferred, if this is possible. Thanks. Bill 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.northwestern.edu/ Use R for psychology http://personality-project.org/r...
2015 Apr 23
2
CRAN submit page down
Andrie noticed that first, and I can confirm: from our end, it looks as if the backend to http://cran.r-project.org/submit.html is currently down. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
2012 Nov 27
3
Psych package: fa.diagram, how to re-arrange layout so numbers do not over-write each other
Dear R help I have conducted a fa() analysis, and I want to use fa.diagram to assess the extent to which the 11 latent factors predict the 37 items in a psychological battery. However, the display on the screen has very large font size for the coefficients of the relationship between the 11 factors and the 37 items, so the numbers overlap and are therefore illegible. When I output this to a
2009 Jan 30
3
princomp - varimax - factanal
Hi! I am trying to analyse with R a database that I have previously analysed with SPSS. Steps with SPSS: Factorial analysis Extraction options : I select = Principal component analysis Rotation: varimax Steps with R: I have tried it with varimax function with factanal or with princomp...and the results are different of what I have with SPSS. I think that varimax function is incorporated in
2010 Apr 05
1
strange behavior of matrix
...86-apple-darwin9.8.0 locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.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 http://personality-project.org Department of Psychology http://www.wcas.northwestern.edu/psych/ Northwestern University http://www.northwestern.edu/ Use R for psychology http://personality-project.org/r It is...
2018 Sep 17
0
diag(-1) produces weird result
...in a package, when you are not sure if the input vector is longer than 1. This seems to be a good workaround: ? diag(-1, nrow = 1) [,1] [1,] -1 Or, in general if you have vector v: ? v <- -1 ? diag(v, nrow = length(v)) [,1] [1,] -1 Gabor On Mon, Sep 17, 2018 at 5:14 PM William Revelle <lists at revelle.net> wrote: > > Dear list > > A strange bug in the psych package is due to the behavior of the diag function: > > It gives the expected values for 1, a vector (-1,1), but not for -1 > > Is this a known feature? > > > > diag(1) > [,...
2010 Feb 15
1
tree-drawing in R ?
Hello, I wonder whether binary (rooted) trees with simple labels (say, integers) can be drawn by some R-package? Couldn't find one. Just to make sure (since "trees" can be many things): I mean those computer-science creatures, with roots and subtrees. Thanks for your consideration in any case Oliver P.S. Perhaps there is some graph-drawing package? (Here a "graph"
2010 Feb 15
1
Error analysis for circular data
Dear R users, I would like to know if it is possible to calculate the Mean Error (ME), the Root Mean-squared error (RMSE) and absolute error (MAE) for two temporal series of directional data. Where Can I get documentation about it? Thanks in advance [[alternative HTML version deleted]]
2004 Jul 14
2
using "mean" in by(x,y,mean)
...----------------------------------------------------------------- INDICES: B [1] 3.236663 > by(x,group,mean) #this does not Error in FUN(X[[as.integer(1)]], ...) : couldn't find function "FUN" I am using a Mac OS 10.3.4 running R 1.9.1 -- ---------------------------- William Revelle http://pmc.psych.northwestern.edu/revelle.html Department of Psychology, Northwestern University Personality Project: http://personality-project.org/personality.html
2009 Mar 09
2
path analysis (misspecification?)
hi, I have following data and code; cov <- c (1.670028 ,-1.197685 ,-2.931445,-1.197685,1.765646,3.883839,-2.931445,3.883839,12.050816) cov.matrix <- matrix(cov, 3, 3, dimnames=list(c("y1","x1","x2"), c("y1","x1","x2"))) path.model <- specify.model() x1 -> y1, x1-y1 x2 <-> x1, x2-x1 x2 <->
2010 Feb 12
3
summary statistics for grouped data
Hello list: Is there an easy way (preferably through one of the standard R packages) of obtaining summary statistics for grouped data? I could split the data into classes by hist, and then progressively calculate all the "columns" i need to obtain the mean and standard deviation, but i was looking for a single function that could do that with a data vector. Thanks in advance, jose
2012 Dec 05
1
In factor analysis in the psych package, how can I work out which factors the columns in $scores relate to? How do I know what each of the scores is scoring?
Hi I have used fa() to perform a factor analysis of a psychological battery which is thought to have 11 factors. I can identify which factors the loadings relate to easily enough because I can see which items are loading onto each of the columns in the $loading output. However, how can I identify which items or loadings are being used to create each of the columns in the $scores output? I have
2014 Jun 19
2
Principal component analysis with EQUAMAX rotation
Hello, I need to do a principal component analysis with EQUAMAX-rotation. Unfortunately the function principal() I use normally for PCA does not offer this rotation specification. I could find out that this might be possible somehow with the package GPArotation but until now I could not figure out how to use this in the principal component analysis. Maybe someone can give an example on how to do