Displaying 20 results from an estimated 23 matches for "mestat".
Did you mean:
mdstat
2010 Sep 03
7
Function Gini or Ineq
Hi listers,
Does it necessary to install any package in order to use the GINI or INEQ
functions.
If I use the following command the R tells me that didn't find the GINI
function.
x<-c(541, 1463, 2445, 3438, 4437, 5401, 6392, 8304, 11904, 22261)
G<-gini(x)
Thanks in advance,
Marcio
--
View this message in context:
2010 Sep 14
4
If then else with command for
Hey listers,
I am trying to do something simple... Check the program below...
I would like to create a variable named COLOR according to the conditions
that I stablished... But the problem is that it seems that my variable COLOR
is checking just on sample, may be last in the loop... Certainly, I am
missing something...
Thanks in advance,
Marcio
2009 Sep 18
2
Sum according observation
Hi listers,
I have a simple doubt...
I need to manipulate the data base as:
var1 var2
7 0.1
7 0.1
8 0.12
10 0.15
12 0.18
20 0.31
I would like to aggregate the equal cases as var1 making the sum of var2...
I would get...
var1 var2
7 0.2
8 0.12
10 0.15
12 0.18
20 0.31
Thanks in advance,
Marcio
--
View this message in context:
2009 Jun 11
4
Count observation
Hi listers,
I have the following code...
data<-as.matrix(c(1,2,3,4,5,6,7,8,9,10),nrow=10,ncol=1,byrow=TRUE)
n<-nrow(data)
m<-n-1
boot<-data[sample(m,replace=T),]
So, I need to count the number of times each observation was selected at the
sample with replacement...
Suppose I sampled...
4 5 1 3 7 5 1 4 7
So, I would count...
x count
1 2
2 0
3 1
4 2
5 2
6 0
7 2
8 0
9 0
10 0
2010 Sep 13
2
Condition %in%
Hi listers,
If I would like to check if a variable contains certain value, I would
write:
if (10 %in% x)
And If I would like to check the opposite, that 10 is not into x. How would
be?
Thanks in advance,
Marcio
--
View this message in context: http://r.789695.n4.nabble.com/Condition-in-tp2538110p2538110.html
Sent from the R help mailing list archive at Nabble.com.
2010 Sep 20
1
Size of the legend
Hello,
Which would be the command to change the size of the legend.
I checked at the help and I found out something about TEXT.WIDTH, but I am
not sure if is what I want.
Any help!
Thanks in advance,
Marcio
--
View this message in context: http://r.789695.n4.nabble.com/Size-of-the-legend-tp2547601p2547601.html
Sent from the R help mailing list archive at Nabble.com.
2009 Jun 12
3
Order data frame
Hi listers,
I have a data frame with 5 variables... And I want reorder the data frame
according a specific variable X...
I checked the sort and order functions... In my case I think that the ORDER
function is applicable... But I did not understand at all... The idea is
simple... Data order by X...
I know that this is very simple... Anyways... How I would do that...
Thanks in advance,
Marcio
--
2009 Mar 26
2
Data manipulation - multiplicate cases
Hi listers,
I am trying to arrange my data and I didn't find any information how to do
it!
I have a data with 3 variables: X Y Z
1-I would like to multiplicate de information of X according to the number I
have for my Y variable...
2-Then I want to identify with a dicotomic variable by the number according
my variable Z from X...
I can do the first part by...
z<-rep(x,y)
But I don't
2010 Feb 16
1
READ.TABLE for Mac
Mestat wrote:
>
> Hi listers,
> I just got a MAC, so I am trying to use the command READ.TABLE but I am
> getting a error that is probably caused by the wrong path that I am
> using...
> The command is the following...
>
> file<-read.table("/Users/M?rcio/UdeM/Travail Diri...
2010 Aug 11
1
Graphic Dispersion - Colored Points
Hey folks,
I have a graphic of dispersion...
I would like to color some specific points (x,y) according to another
indicator variable, for example:
x<-rnorm(5)
y<-rnorm(5)
ind<-(1,0,0,1,0)
plot(x,y)
Any suggestion, thanks...
Marcio
--
View this message in context: http://r.789695.n4.nabble.com/Graphic-Dispersion-Colored-Points-tp2322011p2322011.html
Sent from the R help mailing list
2010 Oct 31
0
Fwd: ForestPlot or similar
...2)
>
>
> Abhijit
> On Oct 30, 2010, at 5:31 PM, Matt Shotwell wrote:
>
>> Here is a small function for forest plots in R, with an example:
>>
>> http://biostatmatt.com/wiki/r-credplot
>>
>> -Matt
>>
>> On Sat, 2010-10-30 at 11:40 -0400, Mestat wrote:
>>> Here is one example:
>>> I have three vectors (mean,lower interval, upper interval)
>>> mean<-c(2,4,6,8)
>>> l<-c(1,2,3,4)
>>> u<-c(4,8,12,16)
>>> How would I plot that if I want to use the FORESTPLOT function. I dont need
&g...
2009 Aug 18
1
Simulation function
Hi listers,
I've been looking for a procedure, but I am not succeding...
I have a function that give multiple results...
Then, I would like to simulate this function n times, so I need to save/keep
the n multiple results, in order to calculate my desired statistics...
I have already tried with the RETURN and LIST FUNCTION, but I am not getting
it right...
An example of what I am looking for
2009 Aug 14
1
Simulation Function - Save results
Hi listers,
I am working on a simulation... But I am having some troubles...
Suppose I have a function A which produces two results (mean and
variance)...
Then I would like to simulate this function A with a function B many times
using the results from function A
For example:
#Function A
boot<-function(a,b,c){
mean_boot<-(a+b)/2
var_boot<-c
#list(a=a,b=b,c=c)
return(a)
}
Then I would
2010 Feb 25
1
read.table (trying one more time)
Hey listers,
I've posted this doubt other day... But I am still having a hard time...
I have a MAC and I am not getting how to use the read.table command...
At the bottom of the FINDER application I have the following path:
Macintosh HD>Usu?rios>User>Marcio>UdeM>Travail Dirig?>Data>MU284
Population.txt
I didn't find out how I could copy and paste this path as it is
2009 Sep 11
3
For sending my R package as part of R-project
...uate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
------------------------------
Message: 67
Date: Thu, 10 Sep 2009 13:26:08 -0700 (PDT)
From: MarcioRibeiro <mestat at pop.com.br>
Subject: [R] Bootstrap simulation
To: r-help at r-project.org
Message-ID: <25390390.post at talk.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hi listers,
I would like a suggestion. I am working on a bootstrap simulation which I am
calculation the confidence inte...
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
...h/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
------------------------------
Message: 95
Date: Mon, 30 Mar 2009 20:16:04 -0700 (PDT)
From: MarcioRibeiro <mestat@pop.com.br>
Subject: [R] Package candisc
To: r-help@r-project.org
Message-ID: <22797571.post@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hi listers,
I am working on an canonical discriminant analysis, but I am having some
trouble to use the CANDISC function... I just ins...
2009 Apr 01
2
Matrix multiplication - code problem
Hi listers,
I am having some trouble in a matrix multiplication...
I have already checked some posts, but I didn't find my problem...
I have the following code...
But I am not getting the right multiplication...
I checked the dimension and they are fine...
id_y <- array(1:10,dim=c(2,1,5))
id_yt<-aperm(id_y,c(2,1,3))
m_id<-array(dim=c(dim(id_y)[1],dim(id_y)[1],dim(id_y)[3]))
for (i in
2009 Feb 20
0
ML estimators of bivariate cauchy
Hi all,
I am using the function COV.WT to estimate the estimators (location and
scale) of a bivariate cauchy distribution.
My doubt is about the option WT (weight), cause at the R-help shows that the
weight is uniform according to the number of observations. But, checking the
theory, for example, the mean is given by
mean_estimator=mean(u(s)x)/mean(u(s)), where
x=my data (bivariate)
2009 Feb 24
2
Transpose array
Hi Listers,
Is there a way that I can transpose an array...
Suppose I have the following array...
x<-array(c(1,2,3,4),dim=c(1,2,2))
, , 1
[,1] [,2]
[1,] 1 2
, , 2
[,1] [,2]
[1,] 3 4
And I would like to get the following result...
, , 1
[,1]
[1,] 1
[,2] 2
, , 2
[,1] [,2]
[1,] 3
[,2] 4
Thanks in advance,
Marcio
--
View this message in context:
2009 Mar 27
0
Quadratic Discriminant Analysis (qda)
Hi listers,
Does anybody knows if the function qda for quadratic discriminant analysis
provides the coefficients of quadratic discriminants...
Well, I find out that for the linear discriminant analysis lda, the fonction
provides the coefficients...
Thanks in advance,
Marcio
--
View this message in context: http://www.nabble.com/Quadratic-Discriminant-Analysis-%28qda%29-tp22747647p22747647.html