Displaying 20 results from an estimated 300 matches similar to: "Rearranging PCA results from R"
2008 Nov 19
2
Bucketing/Grouping Probabilities
I have a list of entrants (1-14 in this example) in a competitive event and
corresponding win probabilities for each entrant.
[(1, 0.049), (2, 0.129), (3, 0.043), (4, 0.013), (5, 0.015), (6,
0.040), (7, 0.066), (8, 0.038), (9, 0.204), (10, 0.022), (11, 0.234),
(12, 0.044), (13, 0.068), (14, 0.035)]
So, of course Sum(ps) = 1.
In order to make some subsequent computations more
2018 May 16
0
Systemfit
Sadly you failed to set your email program to send plain text and the data is corrupted at my end.
I also think you need to reduce the size of the data set... the intent here is to increase your understanding, not debug your particular analysis.
I will say that I am having a very challenging time understanding what you are trying to accomplish though. What are the equations that you think need
2018 May 15
2
Systemfit
OK, Let's try this again! Here is the reproducible script; it is long because I had to copy the panel dataset here. My question is related to systemfit; I don't know how to get the result for the entire panel.
#Reproducible script
Empdata<- read.csv("/Users/ngwinuiazenui/Documents/UPLOADemp.csv")
View(Empdata)
install.packages("systemfit")
2006 Jun 25
1
Puzzled with contour()
Folks,
The contour() function wants x and y to be in increasing order. I have
a situation where I have a grid in x and y, and associated z values,
which looks like this:
x y z
[1,] 0.00 20 1.000
[2,] 0.00 30 1.000
[3,] 0.00 40 1.000
[4,] 0.00 50 1.000
[5,] 0.00 60 1.000
[6,] 0.00 70 1.000
[7,] 0.00 80 0.000
[8,] 0.00 90
2018 May 16
1
Systemfit Question
I can't get my simultaneous equations to work using system fit. Please help.
#Reproducible script
Empdata<- read.csv("/Users/ngwinuiazenui/Documents/UPLOADemp.csv")
View(Empdata)
str(Empdata)
Empdata$gnipc<-as.numeric(Empdata$gnipc)
install.packages("systemfit")
library("systemfit")
pdata <- plm.data(Empdata,
2011 Feb 03
2
tapply output as a dataframe
On Mon, Apr 13, 2009 at 12:41 PM, Dan Dube <ddube-at-advisen.com> wrote:
> i use tapply and by often, but i always end up banging my head against
> the wall with the output.
The proposed solution of Dan's problem posted on R-help was:
> do.call(rbind,a)
When I use this 'solution' I get 'ERROR: second argument must be a list'. So head on wall continues.
My
2007 Jan 30
3
How to find series of small numbers in a big vector?
Hello:
I have a vector with 120,000 reals
between 0.00000 and 0.9999
They are not sorted but the vector index is the
time-order of my measurements, and therefore
cannot be lost.
How do I use R to find the starting and ending
index of ANY and ALL the "series" or "sequences"
in that vector where ever there are 5 or more
members in a row between 0.021 and 0.029 ?
For
2005 Dec 14
4
unable to force the vector format
Dear all,
I am so ashamed to pollute the list with a trivial question, but it is a
long time I have not used R, and I need a result in the next one or two
hour...
I have a table which I have loaded with read.table, and I want to make
the mean of its columns.
> slides <- read.table("slides.txt")
> slides [1:5,]
V1 V2 V3 V4 V5 V6 V7 V8
1
2009 Jan 12
4
fitting curve to data
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have the following data:
> y
[1] 0.000 0.004 0.008 0.016 0.024 0.032 0.044 0.064 0.072 0.088 0.108 0.140
[13] 0.156 0.180 0.208 0.236 0.264 0.296 0.320 0.360 0.408 0.444 0.472 0.524
[25] 0.576
> x
[1] 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500
[16] 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500
I'd
2009 Jul 17
2
Resolution changes sometimes rearranging desktop
Sometimes when I play games that use a resolution different from my normal X display, the windows on my workspace get shifted over toward the upper left. It's an issue that's been happening for a long while and I'm not sure if this is more of a general X issue or something specific to wine. As far back as I remember, it only happens with wine (0.x-0.9, 1.0, 1.1) and I've seen it in
2007 Jun 11
1
Rearranging Capture History Data in R
What code can i use to convert a table like this:
Tag# Date
1 1
2 1
3 1
4 1
2 2
4 2
1 3
2 3
4 4
Into one like this:
Tag 1 2 3 4 #Date header
1 1 0 0 1
2 1 1 1 0
3 1 0 0 0
4 1 1 0 1
Thanks,
Ben Cox
Research Assistant (M.S.)
Montana Cooperative
2007 May 29
2
fullscreen 3D leads to gnome panels rearranging
Hi,
Just wondering if anyone else has seen this behavior?
Today I ran some 3D demos, just for fun (from
http://www.vividimage.enta.net/electrome/) !!!
When the demo ends and gives me back a gnome desktop all my panels icons had
rearranged and ended up at the right hand corner in a tiny clump.
In windowed mode its fine just full screen.
Any ideas? Should I file a bug report or is this
2003 Jan 19
0
Rearranging subtrees and Eisen Cluster
I am attempting to replicate what Cluster 3.0 and Treeview (both by Mike
Eisen) to cluster both microarray genes and arrays does using R with
hclust. I basically utilized the plot.mat function in sma library with
some layout() and hclust().
1. Can I know if some has already written such a function or available
in some package.
2. If not, would appreciate if someone could take the time to test
2003 Feb 05
1
rearranging rows
Dear all,
I am working with a matrix structured as follows
Factor 1 Factor2 ...
Country 1
Country 1
Country 2
Country 2
...
Country N
Country N
and I need to rearrange it according to the following scheme
Factor 1 Factor2 ...
Country 2
Country 2
Country N
Country N
...
Country 1
Country 1
where countries are ordered accordingly to the average
2006 Jun 23
1
rearranging data frame rows
Hi All,
I have two data frames. The first contains data about a number of individuals,
coded in the first column with a name, in an order I find convenient.
The second contains different data about the same indivduals, in a different
order. Both data frame have the individual names in the first column.
I need to reorder the second data frame so the rows are rearranged in the same
manner as
2006 Jun 23
0
R: rearranging data frame rows
Have a look at merge.
Ciao
Vittorio
>----Messaggio originale----
>Da:
f.calboli at imperial.ac.uk
>Data: 23-giu-2006 18.10
>A: "r-help"<r-
help at stat.math.ethz.ch>
>Ogg: [R] rearranging data frame rows
>
>Hi
All,
>
>I have two data frames. The first contains data about a number
of individuals,
>coded in the first column with a name, in an order
2007 Oct 11
2
Rearranging dataset
Hi all, I have a datasei like this :
ID Date Price
aa 01/01/07 12
aa 01/02/07 13
bb 01/01/07 23
bb 01/02/07 12
Now I want to write them in following format :
ID Date Price ID Date Price
aa 01/01/07 12 bb 01/01/07 23
aa 01/02/07 13
2011 Apr 21
1
Rearranging columns with cbind
I'm getting an error that I don't understand when trying to rearrange my data
columns with cbind. My data is in 27 columns, like so:
> data <- read.table("CalledFeatsNimblegen.csv", header=T, sep=",")
> names(data)
[1] "MF_not_mC" "MF_promoter" "MF_genebody"
"FF_not_mC"
[5]
2008 Jul 31
1
Rearranging Data
Hi everyone,
A few days back Jim helped with out, helping me find an automated way of
determining the mean and median of intervals between price changes.
However, a new set of data I have is no longer in the same format.
CDSmod is the file that was used with this code:
x <- read.csv('/cdsmod.csv', as.is=TRUE, check.names=FALSE)
x$Date <- as.Date(x$Date, "%m/%d/%Y")
2009 Jul 13
1
R in rearranging equations
Hi,
can anyone tell me if R can be used to rearrange very complicated equations
in terms of one of the variables?
I have:
dx/dt = a*b*m*y*(1-x)-r*x
and, having set:
dy/dx = 0,
need to rearrange in terms of x. The problem I have is that I don't know how
to rearrange equations when the variables are not yet defined (I get
messages warning me that x etc can't be found). I'm not sure