Displaying 20 results from an estimated 3000 matches similar to: "Switch language"
2009 Mar 25
1
boxplot in subgroups
Hi,
I have data that looks like this:
ASA1 ASA2 C1_C2
C M 9.0225
S S 2.4315
M C 3.4894
M S 4.5282
C M 1.3183
C S 1.3735
S C 1.0488
S M 7.948
M C 4.5827
I need to plot Boxplots for a given ASA1 (either C,S, or M) with
respect to C1_C2. However, instead of one boxplot I want to plot
2008 Nov 14
1
Generating unique permutations of a vector
Hi all,
I try to generate sets of strategies that contain probability
distributions for a defined number of elements, e.g. imagine an
animal that can produce 5 different types of offspring and I want to
figure out which percentage of each type it should produce in order to
maximize its fitness. In order to do so, I need to calculate the fitness
for all potential strategies. As an example, if I
2008 Mar 05
5
nls: different results if applied to normal or linearized data
Dear all,
I did a non-linear least square model fit
y ~ a * x^b
(a) > nls(y ~ a * x^b, start=list(a=1,b=1))
to obtain the coefficients a & b.
I did the same with the linearized formula, including a linear model
log(y) ~ log(a) + b * log(x)
(b) > nls(log10(y) ~ log10(a) + b*log10(x), start=list(a=1,b=1))
(c) > lm(log10(y) ~ log10(x))
I expected coefficient b to be identical
2006 Oct 06
4
Row comparisons to a new matrix?
Hi,
Can somebody tell me, which is the fastest way to make comparisons between all rows in a matrix (here A) and put the results to the new symmetric matrix? I have here used cosine distance as an example, but the comparison function can be any other, euclidean dist etc.
A=rbind(c(2,3),c(4,5),c(-1,2),c(5,6))
M=matrix(nrow=length(A[,1]),ncol=length(A[,1]))
for(i in 1:length(A[,1]))
{
for(j in
2006 Sep 08
8
Weighted association map
Could somebody program this kind of plot type to R, if none exists,
based on mds or correlation tables or some more suitable method? What
do you think about idea? Does it work? None similar or better exists?
http://weightedassociationmap.blogspot.com/
Atte Tenkanen
University of Turku, Finland
2006 Nov 19
4
The most common row in a matrix?
Hi,
How do you get the most common row from a matrix? If I have a matrix
like this
array(1:3,dim=c(4,5))
[,1] [,2] [,3] [,4] [,5]
[1,] 1 2 3 1 2
[2,] 2 3 1 2 3
[3,] 3 1 2 3 1
[4,] 1 2 3 1 2
in which rows 1 and 4 are similar, I want to find that vector c
(1,2,3,1,2).
Atte Tenkanen
University of Turku, Finland
2008 Nov 16
4
duplicate values
Hei R Users,
i have the following dataframe:
Datetime Temperature and many more collumns
1 2008-6-1 00:00:00 5
2 2008-6-1 02:00:00 5
3 2008-6-1 03:00:00 6
4 2008-6-1 03:00:00 0
5 2008-6-1 04:00:00 6
6 2008-6-1 04:00:00 0
7 2008-6-1 05:00:00 7
8 2008-6-1 06:00:00
2006 Mar 18
2
How to divide too long labels?
Is there any possibility to divide too long text in a plot to two or more
lines, when using labels-parameter in the text()-command?
Here is an example picture:
http://users.utu.fi/attenka/253.jpeg
My example script is something like this:
text(1,0.7,labels=Chordnames[fnid(pcs%%12)]) # according to Larry
Solomon's table http://solomonsmusic.net/pcsets.htm
Chordnames is a long vector with
2006 Aug 22
4
Successive subsets from a vector?
I'd like to pick every imbricated five character long subsets from a
vector. I guess there is some efficient way to do this without loops...
Here is a for-loop-version and a model for output:
VECTOR=c(1,4,2,6,5,0,11,10,4,3,6,8,6);
ADDRESSES=c();
for(i in 1:(length(VECTOR)-4)){
ADDRESSES[i]=paste(VECTOR[i:(i+4)],collapse="")
}
> ADDRESSES
[1] "14265"
2006 Jun 19
3
Border line width?
Is there some way to change the line widths of plot borders?
I couldn't find any parameters for that purpose.
Atte Tenkanen
University of Turku, Finland
2002 Jan 24
2
Data input performance
Dear list,
I'm brand new to R (started using it few days ago...), so sorry for possibly
stupid question.
Anyways, I'm using R to cluster my data. I do have the dissimilarity matrix
as a text file, numbers separated by space. It's at its best something like
2300x2300 matrix.
Now, it seems to me, that the process of importing the matrix into R is
rather slow. For the peak size of
2010 Jun 11
1
glm-test?
Dear R-users,
I would like to test, whether a sample distribution differs significantly from a population distribution. They are not normally distributed. How should I proceed? Using somehow glm-models? How?
The population and the sample data are here. They can be loaded using the load-command.
http://users.utu.fi/attenka/D_Pop
http://users.utu.fi/attenka/D_Samp
Best regards,
Atte Tenkanen
2010 Apr 16
3
Is it ok to apply the z.test this way?
Dear R-users,
I want to check if certain values are from random distribution, that includes values between 0-1. So, it is not really normal even though shapiro.test says it is highly normal... Can I do something like this and think that the values given are right. z.test is from package TeachingDemos.
-------------------------------------------------------------------------------
2007 Jul 12
2
is.null doesn't work
Hi,
What's wrong here?:
> v=c(`-`,`+`,1,`^`,`^`,NA,NA,"X",9,"X",2)
> i2=16
> v[i2]
[[1]]
NULL
> is.null(v[i2])
[1] FALSE
Is it a bug or have I misunderstood something?
Atte Tenkanen
University of Turku, Finland
2006 Aug 16
5
How to remove similar successive objects from a vector?
Is there some (much) more efficient way to do this?
VECTOR=c(3,2,4,5,5,3,3,5,1,6,6);
NEWVECTOR=VECTOR[1];
for(i in 1:(length(VECTOR)-1))
{
if((identical(VECTOR[i], VECTOR[i+1]))==FALSE){
NEWVECTOR=c(NEWVECTOR,VECTOR[i+1])}
}
> VECTOR
[1] 3 2 4 5 5 3 3 5 1 6 6
> NEWVECTOR
[1] 3 2 4 5 3 5 1 6
_______________________________
Atte Tenkanen
University of Turku, Finland
2024 Jan 10
1
support for ALIAS records
Hello!
Does nsd support ALIAS records or is there a plan to support it somewhen in the future? I didn't find anything about this topic in conjunction with nsd. Afaik there is no RFC for it and I guess therefore nsd does not support it.
PowerDNS does for example: https://doc.powerdns.com/authoritative/guides/alias.html
Br,
Christof
-------------- next part --------------
An HTML attachment
2007 Apr 05
2
"old" rpm version package handling broken!? (SuSE8)
Hi!
Using (among others) the pretty old SuSE8.1, I cant get puppet to
install packages.
The rpm programms bahaviour was changed somewhen between versions 3 and
4 (sry, don“t know exactly when) and the old version does not support
the "--nosignature" and "--nodigest" params and "--oldpackage" is purely
an update parameter so when trying to install a package I
2024 Jan 11
1
support for ALIAS records
Hi Christof!
AFAIK, PowerDNS is the only open source name server that supports ALIAS. There was an idea to standardize ALIAS as "ANAME" (https://datatracker.ietf.org/doc/draft-ietf-dnsop-aname/), but the idea was dropped in favor of SVCB/HTTPS record https://datatracker.ietf.org/doc/rfc9460/. So now we have to wait until all Browser vendors implement SVCB/HTTPS.
Regards
Klaus
PS: If
2006 Jun 15
1
How to change the margin widths in png-plots?
Hello,
I have tried to change the margin widths so that mtext (here "sd of
consecutive pc intervals", look at the picture) and
plot(...,xlab="bar") fits to the picture.
Here is an example:
http://users.utu.fi/attenka/margins.png
This doesn't help:
par(mar=c(5.1, 7.1, 4.1, 2.1))
And here are the commands:
png(filename="/Users/kone/Vaitostutkimus/Pictures/
2010 Jun 16
1
prcomp() and the lenght of PC:s
Hi,
I would like to know whether there is some deeper rationale behind or is it just an established practice that the lenghts of principal components, giving for example by prcomp-function, are normalised to 1?
Best regards,
Atte Tenkanen
University of Turku, Finland
Department of Musicology
+35823335278
http://users.utu.fi/attenka/