Displaying 20 results from an estimated 600 matches similar to: "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?"
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 Nov 25
4
Structural Equation Models(SEM)
Hi R-colleagues.
In the sem-package
i have a problem to introduce hidden variables.
As a simple example I take an ordinary factor analysis.
The program:
cmat=c(0.14855886, 0.05774635, 0.08003300, 0.04900990,
0.05774635, 0.18042029, 0.11213013, 0.03752475,
0.08003300, 0.11213013, 0.24646337, 0.03609901,
0.04900990, 0.03752475, 0.03609901, 0.31702970)
2011 Aug 08
0
fa (psych) output oblique.scores=TRUE vs. FALSE
Dear R-List,
I have carried out a factor analysis using fa (psych) with nfactors=2,
rotation="oblimin" and fm="pa". Now I have to report both pattern AND
structure matrix. As I have understood R-Documentation, this can be obtained
by setting the "oblique.scores" argument TRUE (structure matrix) or FALSE
(pattern matrix), respectively. However both produced the same
2013 Jan 09
2
writing to .xlsx
Dear r helpers;
I'm interested in reading from and writing to large .xlsx files fairly
regularly. (Why, the naysayers may ask - and the answer is basically
colleagues and clients who prefer that format). I've tried out the
XLConnect and xlsx libraries, but the java implementation they use just
takes too much RAM for the files I'm working with.
gdata leverages perl and works really
2012 Oct 08
3
turn list into dataframe
Dear R users,
I'm starting to use 'apply' functions rather than for loops in R, and
sometimes the output is a bit different than what I want. In this case, the
command was
tapply(myvector,myindex,cumsum)
And the output was something like this:
$`SNRL1 Core 120`
[1] 2.8546 4.0778 5.2983 6.3863 7.5141 8.5498 9.5839 10.6933
$`SNRL1 Core 230`
[1] 7.6810 8.7648 9.8382
2011 Apr 28
3
subset without removing NAs
Hi folks,
I'm dealing with a dataset with a lot of NAs, and want to use subset on the
data without removing the NAs from the the dataframe; e.g.
rws50 <- subset(rw.fire.RW,shigo.av<50)
This removes instances with NA for the value in addition to anything <50.
Any suggestions much appreciated.
*Ben Caldwell*
[[alternative HTML version deleted]]
2013 Apr 29
2
bigmemory and R 3.0
Dear helpers,
Does anyone have information on the status of bigmemory and R3.0? Will it
just take time for the devs to re-code for the new environment? Or is there
an alternative for this new version?
Thanks
Ben Caldwell
[[alternative HTML version deleted]]
2009 Mar 10
3
reliability, scale scores in the psych package
Dear Professor Revelle and R-helpers,
This is a two-part question: the first part is general, and the second
is specific to the psych package.
First question: In the past I've constructed composite variables from
questionnaire data by using rowMeans(), and then correlating items
with the scale using cor() as an informal check for "bad" items. Over
the weekend I decided to take a
2005 Apr 08
3
fw as filter broken?
Can someone verify that using fw as a filter in iproute2-2.6.11-050330 is
broken. Doesn''t seem to work in any case and I saw an earlier post that
would lead me to believe this is the case. If so does anyone have a
temporary fix?
Thanks,
Troy
2011 Apr 13
1
print to .jpeg
Evening folks,
I'm trying to print a series of graphs to .jpeg using a variable as the
title, but run into the difficultly that I can't find a way to append the
file extension to the .jpeg (in this case extensionless!) files.
Example:
----
species.name="CussoniaHolstii"
dia<-10:100
biomass = -21.4863 + 0.5797 * (dia ^ 2)
biomass
jpeg(species.name)
plot (biomass,
2012 Feb 02
1
gsub syntax help
I have some elements in a vector with extraneous information (e.g. file
name and sample IDs) that I'd like to strip from every element.
For example, I would like "SPI1.S1.str1.P3.sample.tif"
"SPI1.S1.STR2.P1.sample.tif" to read "SPI1.S1.str1.P3" "SPI1.S1.STR2.P1".
Will someone help me with the syntax in gsub? It needs to be something
like
2007 Apr 17
3
Managing a user''s groups
I''m looking for a way to conditionally add a user to a group, and
can''t figure out a clean way to do it in Puppet.
I have the following recipe:
###### BEGIN RECIPE
class "apache-server" {
group { "apache":
gid => 100,
}
user { "apache":
uid => 100,
gid => 100,
}
...
}
class "site-a"
2013 Apr 20
2
matrix of size 30^5
Dear R helpers
Reproducible example:
#warning - this causes a hard freeze on the machines I've tried it on
matrix.holder<- matrix(rnorm(150), nrow=30, ncol=5)
Out=
expand.grid(matrix.holder[,1],matrix.holder[,2],matrix.holder[,3],matrix.holder[,4],
matrix.holder[,5])
Problem:
I'm running an analysis that I would like to do using a matrix containing
all the possible combinations of
2012 Jun 01
1
trouble with append() in a for loop
Hello all,
*
*
I'm having some difficulty, and I think the problem is with how I'm using
append() nested inside a for loop. The data are:
y,x
237537.61,873
5007.148438,227
17705.77306,400
12396.64369,427
228703.4021,1173
350181.9752,1538
59967.79376,630
140322.7774,710
42650.07251,630
5382.858702,264
34405.82429,637
92261.34614,980
144927.1713,1094
362998.7355,1420
203313.6442,1070
2013 Mar 05
2
Function completely locks up my computer if the input is too big
Dear r-help,
Somewhere in my innocuous function to rotate an object in Cartesian space
I've created a monster that completely locks up my computer (requires a
hard reset every time). I don't know if this is useful description to
anyone - the mouse still responds, but not the keyboard and not windows
explorer.
The script only does this when the input matrix is large, and so my initial
2013 Apr 24
1
getting started in parallel computing on a windows OS
Dear R help,
I've what I think is a fairly simple parallel problem, and am getting
bogged down in documentation and packages for much more complex situations.
I have a big matrix (30^5,5]. I have a function that will act on each row
of that matrix sequentially and output the 'best' result from the whole
matrix (it compares the result from each row to the last and keeps the
2007 Aug 30
2
define-based exported virtual resources
Can you use exported virtual resources with custom definitions? As an
example, with the following definition:
define vr-tester() {
file {
"/tmp/vr-success.txt":
content => ''foobar'';
}
}
this code is working for me:
class testme {
@vr-tester { "foobar": ; }
Vr-tester <||>
}
but this is not:
class testme {
2016 Aug 15
3
how to enable auto-start on newer versions of Xen ?
Hello,
In days past, all I had to do was create /etc/xen/auto and put a symlink in there to the config file for each VM I wanted to have started automatically.
Since updating to 4.6, this doesn't work.? Period.
I'm having a hard time finding what needs to change in order to get VMs to auto start on reboot of a server.? Can someone please point me to documentation that I have missed
2011 Apr 28
1
using lme4 with three nested random effects
Hi all,
I'm trying to fit models for data with three levels of nested random
effects: site/transect/plot. For example,
modelincrBS<-glmer(l.ru.ba.incr~shigo.av+pre.f.crwn.length+bark.thick.bh+Date+slope.pos.num+dens.T+dbh+leaf.area+can.pos.num+(1|site/transect/plot),
data=rws30.UL, family=gaussian, na.action=na.omit)
but I get the following error:
Error: length(f1) == length(f2) is not
2011 Feb 10
2
merge multiple .csv files
Am trying to merge about 15 .csv tables - tried a test run but came up with
0 rows (no data for each variable/column head)
> CAHSEE.EA.feb.2009<-read.csv("2009 CAHSEE EA feb 2009.csv", header=TRUE)
> CAHSEE.IM.MATH.2009<-read.csv("2009 CAHSEE Impact Math.csv", header=TRUE)
> testmerge<-merge(CAHSEE.EA.feb.2009,CAHSEE.IM.MATH.2009)
> testmerge
[1] Grade