Displaying 20 results from an estimated 1000 matches similar to: "How to store a triangular matrix"
2011 Jun 01
3
conversion of matrix into list
Dear all,
I have a matrix X which consists of 2 columns. I would like to convert this
matrix into a list where every entry of the list consists of a single row of
the matrix.
Does anyone have a suggestions how to manage this?
Thank you for your efforts in advance!
Best,
Martin
[[alternative HTML version deleted]]
2011 Jul 20
2
Question about converting list items in matrix
Hi friends,
I have got a list where each element might have variable number of members.
$`4213`
[1] "214077_x_at"
$`164832`
[1] "225996_at" "235977_at"
$`339010`
[1] NA
$`23410`
[1] "221562_s_at" "221913_at" "49327_at"
$`285386`
[1] "229764_at"
$`2099`
[1] "205225_at" "211233_x_at"
2011 May 13
3
Excel to R
Hello R-help
I am trying to copy and paste large column of data from windows Excel into R
base speed sheet using:
Data1<-edit(data.frame())
But I can only copy and paste one cell at a time which is time consuming.
Also how can assign each column to a variable.
[[alternative HTML version deleted]]
2011 May 23
2
Linear regression - several response variables vs few ind variables
Hi all,
I need to run several simple linear regressions at once, using the
following data. Response variables: Bird species (sp 1, sp2, sp3...spn).
Independent variable: Natprop - proportion of natural area. covarate:
Effort = hours). One single linear regression would be: lmSp1 <- lm(sp1~
natprop + effort). However, I need to run this linear regression for all
bird species that I have
2011 Jun 21
1
Doubit about ts() functions
Hi everyone
Please, I need one more help you
I have some data that need to make a forecast.
I´m using the command: Yst<-print(ts<-ts(Y,start=c(1,5),freq=7),calendar=T)
to create the dayly time series by the dataframe Y.
My data Y means: Y=measure dayly , start at 01/jul/2010 (thursday), for this
reason that I use c(1,5).
I need to create the time series aggregate by weakly (and not dayly as
2011 Jun 29
3
time series interpolation
Hi there,
I?ve got a datatable in R which I try to interpolate with this and get the
Error below:
> new$temp<- approx(w03_11temp$temp, n = (nrow(w03_11temp)*5))$y
Error in new$temp <- approx(w03_11temp$temp, n = (nrow(w03_11temp) * 5))$y :
Object of type 'closure' not registered
Any idea?? Thanks a lot.
--
View this message in context:
2011 Mar 29
7
Error en cor, too many elements specified
Hola, tengo una serie de datos datExpr, al usar cor() :
cor(datExpr ,method = "pearson", use ="pairwise.complete.obs")
me da el siguiente error
allocMatrix: too many elements specified
Trate con "complete.obs", "na.or.complete", y el resto de las opciones para "use", pero siempre me da algun error.
¿Alguna idea de como puedo hacer que cor() lea
2011 Jul 12
1
applying function to multiple columns of a matrix
Hi,
I want to apply a function to a matrix, taking the columns 3 by 3. I could use a for loop:
for(i in 1:3){ # here I assume my data matrix has 9 columns
j = i*3
set = my.data[,c(j-2,j-1,j)]
my.function(set)
}
which looks cumbersome and possibly slow. I was hoping there is some function in the apply()/lapply() families that could take 3 columns at a time.
I though of turning mydata in a
2011 Jul 07
3
coefficients lm of data.frame
Hi,
I've a data frame like this:
> as.data.frame(cbind(rnorm(1:12),rnorm(1:12)))
V1 V2
1 -1.30849402 -0.52094136
2 0.96157302 0.76217871
3 -0.44223351 -1.72630871
4 -0.10432438 -1.04732942
5 -1.38748914 0.95877311
6 -0.63965975 0.65494811
7 -0.24058318 0.19496830
8 -0.11172988 1.01680655
9 0.08065333 0.22168589
10 0.25196536 0.84619914
11
2011 Jun 10
4
Linear multivariate regression with Robust error
Dear all,
i am doing linear regression with robust error to know the effect of
a (x) variable on (y)other if i execute the command i found positive
trend.
But if i check the effect of number of (x.x1,x2,x3)variables
on same (y)variable then the positive effect shwon by x variable turns
to negative. so plz help me in this situation.
Barjesh Kochar
Research scholar
2006 Apr 03
2
Ternary or Triangular Plots (soil texture triangle plot)?
Hi,
I am trying to create a triangular plot to show the 'composition' of a
set of items with three variables (historically the percent sand, silt
and clay in soil).
So far I have tried the 'soil texture triangle plot' in the package
plotrix and the 'ternary or triangular plots' in the package cwhtool
(cwhmisc). Both have strengths and weaknesses, but neither has a
2010 Dec 22
2
Fitting a Triangular Distribution to Bivariate Data
Hello,
I have some xy data which clearly shows a non-monotonic, peaked
triangular trend. You can get an idea of what it looks like with:
x<-1:20
y<-c(2*x[1:10]+1,-2*x[11:20]+42)
I've tried fitting a quadratic, but it just doesn't the data-structure
with the break point adequately. Is there anyway to fit a triangular
or 'tent' function to my data in R?
Some sample code
2005 Mar 01
2
almost lower triangular matrices
I have output from a program which produces a distance matrix I want to
read into a clustering program in R.
The output is a .txt file and is 'almost' lower triangular in the sense
that it is just the triangle below the diagonal.
So for example a 4-by-4 distance matrix appears as,
1
2 3
4 5 6
i.e. it looks like a lower triangular of a 3-by3.
I thought I might be able
2011 Jun 20
6
for loop and linear models
Hi,
I have two datasets, x and y. Simplified x and y denote:
X
Y
A B C A B C . . . . . . . . . . . . . . . . . .
I want to implement all possible models such as lm(X$A~Y$A), lm(X$B~Y$B),
lm(X$C~Y$C)... I have tried the following:
fun<- function(x,y){
for(i in 1:length(colnames(x))){
for(j in 1:length(colnames(y))){
2010 Feb 16
3
Triangular filled contour plot
Hi all,
I am working on a filled contour plot which shows a triangular matrix data
set (as shown below). Is there a possibilty to draw a triangular filled
contour in a equilateral triangle (like a ternary plot)?
Thanks in advance
Johannes
http://n4.nabble.com/file/n1557386/Bild3.png
--
View this message in context: http://n4.nabble.com/Triangular-filled-contour-plot-tp1557386p1557386.html
2011 Jun 23
1
Help using cutreeHybrid
I am using the function cutreeHybrid from the package dynamic Tree Cut and I need a list of the resulting clusters but I do not know how to get it.
[[alternative HTML version deleted]]
2011 Mar 08
1
R Commander QQ Plot with triangular distribution
I am attempting to use the R Commander Graphs Quantile-Comparison
functionality on a dataset, to compare with a triangular distribution.
I have the package triangle. My question is on the syntax of how
to specify the parameters of the theoretical distribution in the
Parameters field of the dialog box. For example, the theoretical
distribution has min of 3000, max of 5000, mode of 4000. When
2011 Nov 28
2
Principal componet plot from lower triangular matrix file
Hi,
I have a comma separated file with element names in first column like shown
below :
Name_1,0
Name_2,0.8878,0
Name_3,0.6777,0.7643,0
Name_4,0.9844,0.1234,0.1414,0
Original data is a 10000x10000 symmetric matrix (600 MB). To reduce file
size, I have minimized matrix to only lower triangle. Is there a (memory)
efficient way to 1) read file 2) compute first and second principal
components and
2009 Sep 12
2
Triangular distribution for kernel regression
Hello,
I am trying to get fitted/estimated values using kernel regression and a
triangular kernel. I have found packages that easily fit values from a
kernel regression (e.g. ksmooth) but do not have a triangular distribution
option, and density estimators that have triangular distribution options
that I can't seem to use to produce estimated values (e.g. density). Any
help is appreciated.
2012 May 16
3
triangular matrices input/output
Hi,
Is there any package that deals with triangular matrices?
Say ways of inputting an upper (lower) triangular matrix?
Or convert a vector of length 6 to an upper (lower) triangular matrix (by
row/column)?
Thanks!
-----
######################
PhD candidate in Statistics
Big R Fan
Big LEGO Fan
Big sTaTs Fan
######################
--
View this message in context: