Displaying 20 results from an estimated 400 matches similar to: "Fwd: How to compute eigenvectors and eigenvalues?"
2011 Nov 14
2
How to compute eigenvectors and eigenvalues?
Hello.
Consider the following matrix:
mp <- matrix(c(0,1/4,1/4,3/4,0,1/4,1/4,3/4,1/2),3,3,byrow=T)
> mp
[,1] [,2] [,3]
[1,] 0.00 0.25 0.25
[2,] 0.75 0.00 0.25
[3,] 0.25 0.75 0.50
The eigenvectors of the previous matrix are 1, 0.25 and 0.25 and it is not a diagonalizable matrix.
When you try to find the eigenvalues and eigenvectors with R, R responses:
> eigen(mp)
$values
[1]
2011 Nov 11
1
Jordan Form of a matrix
Hello.
Is it possible to find the Jordan Form of a matrix with R?
Arnau.
------------------------------------------------------------
Arnau Mir Torres
Edifici A. Turmeda
Campus UIB
Ctra. Valldemossa, km. 7,5
07122 Palma de Mca.
tel: (+34) 971172987
fax: (+34) 971173003
email: arnau.mir at uib.es
URL: http://dmi.uib.es/~arnau
2011 May 05
1
functions pandit and treebase in the package apTreeshape
Hello.
I'm trying to use the functions pandit and treebase. They are in the package apTreeshape. Once I've loaded the package, R responses:
- no function pandit/treebase.
Somebody knows why or what is the reason?
Thanks,
Arnau.
------------------------------------------------------------
Arnau Mir Torres
Edifici A. Turmeda
Campus UIB
Ctra. Valldemossa, km. 7,5
07122 Palma de Mca.
2009 Jun 09
2
Sweave and accents
Hello.
I want to write my notes in Sweave in my own language (spanish). But
my language has accents and when I run Sweave in R to translate my Snw
file into the tex file the accents are translated into unrecognizable
characters.
For example, the word "cami?n" (truck) is translated into "cami??n"
Somebody knows how can I do it?
One solution I don't like is using a
2010 Jun 02
1
compute the associate vector of distances between leaves in a binary non-rooted tree
Hello.
I'd like to compute the associate vector of distances between leaves in a binary non-rooted tree. The definition of a distance between two leaves in a binary non-rooted tree is the number of edges in the path joining the two leaves.
I've tried the ape package but I'm unable to find this vector.
For example, using rtree(5,rooted=F) I've obtained the following tree:
$edge
2011 Feb 16
1
ExpertFit
Hello.
Somebody knows if there exists some R package that it is capable of doing the same of the software ExpertFit (see http://www.averill-law.com/ExpertFit-distribution-fitting-software.htm)?
Thanks,
Arnau.
------------------------------------------------------------
Arnau Mir Torres
Edifici A. Turmeda
Campus UIB
Ctra. Valldemossa, km. 7,5
07122 Palma de Mca.
tel: (+34) 971172987
fax: (+34)
2008 Oct 14
2
help about how can R compute AIC?
Hello.
I need to know how can R compute AIC when I study a regression model?
For example, if I use these data:
growth tannin
1 12 0
2 10 1
3 8 2
4 11 3
5 6 4
6 7 5
7 2 6
8 3 7
9 3 8
and I do
model <- lm (growth ~ tannin)
AIC(model)
R responses:
38.75990
I know the following formula to compute AIC:
AIC=
2010 Dec 09
1
How does Sweave write to a file?
Hello.
I need that Sweave writes R output to a file. To do it, I put the following into the foo.Rnw file:
\documentclass{article}
\usepackage{Sweave}
\begin{document}
...
<<echo=F>>=
x <- rnorm(100)
y <- rnorm(100)
sink("foo.txt")
summary(lm(y~x))
sink()
@
...
\end{document}
When I run:
R CMD Sweave foo.Rnw
R responses:
Warning message:
In sink() : no sink
2013 Mar 14
2
Same eigenvalues but different eigenvectors using 'prcomp' and 'principal' commands
Dear all,
I've used the 'prcomp' command to
calculate the eigenvalues and eigenvectors of a matrix(gg).
Using the command 'principal' from the
'psych' packageĀ I've performed the same exercise. I got the same
eigenvalues but different eigenvectors. Is there any reason for that
difference?
Below are the steps I've followed:
1. PRCOMP
#defining the matrix
2010 May 05
3
Symbolic eigenvalues and eigenvectors
Let's say I had a matrix like this:
library(Ryacas)
x<-Sym("x")
m<-matrix(c(cos (x), sin(x), -sin(x), cos(x)), ncol=2)
How can I use R to obtain the eigenvalues and eigenvectors?
Thanks,
John
[[alternative HTML version deleted]]
2006 Aug 16
1
help about agnes
Hello.
I have the following distance matrix between 8 points:
[1,] 0.000000 3.162278 7.280110 8.544004 7.071068 9.899495 6.403124 8.062258
[2,] 3.162278 0.000000 5.000000 6.403124 4.472136 8.944272 6.082763 8.062258
[3,] 7.280110 5.000000 0.000000 1.414214 1.000000 5.000000 4.242641 5.830952
[4,] 8.544004 6.403124 1.414214 0.000000 2.236068 4.123106 4.472136 5.656854
[5,] 7.071068 4.472136
2009 May 13
0
Speex seek with high precision
2009/5/14 Arnau Alemany <arnau.alemany at gmail.com>:
> Hello everybody,
> I'm new to this mailing list so I'm sorry if it's the wrong place to post
> this.
>
> I'm developing a Speex player and I need to seek with a precision of
> milliseconds. I used liboggz that supposedly does just that, but it never
> seeks exactly where it should. For example if I
2006 Mar 15
2
create a list of vectors
Hello.
I want to create a list of vectors but each component of the list has a
different length.
For example:
Example=list()
Example=list(Example,c(1,2,3))
Example=list(Example,c(11,12,13,14,15))
If I want the first component of the Example list, I have to write:
Example[[1]][[2]]. R responses
1 2 3
The second component:
Example[[2]]:
11 12 13 14 15
If I iterate the previous example,
2006 Jan 02
1
R crash with complex matrix algebra when using EISPACK=TRUE
Dear subscribers of R-devel
I am experiencing that R crashes (further details are given below) in
some complex matrix calculations when EISPACK=TRUE has been specified in
eigen().
I discovered the behaviour some months ago just after the
release of R-2.2.0, and it has been lying on my desk since.
I apologise for not having nailed the problem down to a simple function
call, but I thought I
2010 Dec 15
3
File type: no success using array
Hi all,
from http://docs.puppetlabs.com/guides/language_tutorial.html this
syntax should be ok:
file { [ ''foo'', ''bar'', ''foobar'' ]:
owner => root,
group => root,
mode => 600,
}
I''ve this in my code:
file { [ ''/software/atlas'' , ''/software/cms'' ,
2006 Mar 12
1
how to load files from a directory?
Hello.
I have a lot of files that contain tables of data in a directory.
I want to do the following in R but I don't know how:
for i in 1 to the number of files
{
table[i]=read.table(file="file i")
}
The dimension of each table is different. All of these are tables of two
dimensions.
My first problem is to put all the file names in a table.
Next, how I can load them using the
2006 Jul 09
2
distance in kmeans algorithm?
Hello.
Is it possible to choose the distance in the kmeans algorithm?
I have m vectors of n components and I want to cluster them using kmeans
algorithm but I want to use the Mahalanobis distance or another distance.
How can I do it in R?
If I use kmeans, I have no option to choose the distance.
Thanks in advance,
Arnau.
2008 Oct 29
7
Package and log in puppet
Hi all,
my name is Arnau Bria and I''m a sys admin in a center where we
must deal with hundred hosts. We''re currently working with quattor,
but it''s too complex for our purposes, so I''m looking for new admin
tool.
I''ve been playing with CFengine for few days (2 or 3) and I''ve seen
some limitations that makes me thing that CFE is not our
2006 Mar 14
2
name of the graphics output
Hello.
In the file list.txt, I have the name of n files in data frame format. I
want to make an image for each file and save the images in pdf format.
To do this, I do the following:
llista = scan(file="list.txt",what=list(nom=""))
for (file.name in llista[[1]]){
aux=read.table(file=file.name)
aux=as.matrix(aux)
pdf()
image(aux)
2011 Oct 26
5
rpm packages for el4
Hi all,
anyone has created the rpm packages of new versions for el4?
only 5/6 at http://yum.puppetlabs.com/el/
TIA,
Arnau
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For