Displaying 20 results from an estimated 65 matches for "ron_michael70".
2008 Sep 11
4
All possible pairs of two variables
I have two variables (x,y) :
x : it takes all integer values from 0 to y and,
y : takes all values from 0, 10
I am looking for some R code to find all possible pairs of (x,y). Can anyone please help me?
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
[[alternative HTML version
2010 Oct 14
1
Fw: Problem to create a matrix polynomial
...solve the determinant of "p1" for the values of "z" (I am working with some multivariate time series modelling). When I use det() function, it am getting error that, that function is not for objects with class polynomial.
Any idea please?
Thanks,
--- On Wed, 13/10/10, Ron_M <ron_michael70@yahoo.com> wrote:
From: Ron_M <ron_michael70@yahoo.com>
Subject: [R] Problem to create a matrix polynomial
To: r-help@r-project.org
Date: Wednesday, 13 October, 2010, 4:31 PM
Dear all R users, I was trying to create a polymonial using the polynom() of
"PolynomF" package. My pr...
2007 Apr 18
5
Problem with ?curve
Dear all R gurus,
I have following syntax:
y = c(1:10)
chippy <- function(x)
{
y[5] = x
sin(cos(t(y)%*%y)*exp(-t(y)%*%y/2))
}
curve(chippy, 1, 20, n=200)
But I am getting error while executing :
Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ
In addition: Warning message:
number of items to
2012 Dec 26
3
Working with date
Hi,
Let say I have a date variable:
> ?asd <- as.Date("2012-01-03")
> asd
[1] "2012-01-03"
Now, I want to express this date like 3/1/2012.
can somebody help me how to achieve that?
Thanks,
2010 Sep 15
3
Keyword to clear the screen
Hi all, can anyone please tell me what is the key-word to clear the screen? I am aware of the "cont+L", however I need some R-syntax, that can be typed into the console to clear the screen.
Thanks
[[alternative HTML version deleted]]
2008 Dec 02
3
How to solve following equation?
I need to solve a equation like this :
a = b/(1+x) + c/(1+x)^2 + d/(1+x)^3
where a,b,c,d are known constant. Is there any R-way to do that?
Thanks in advance
--
View this message in context: http://www.nabble.com/How-to-solve-following-equation--tp20785063p20785063.html
Sent from the R help mailing list archive at Nabble.com.
2009 Jul 18
7
Question on qplot
Hi, suppose I have following codes :
library(zoo); library(ggplot2)
dat <- matrix(rnorm(500*2), 500); dat <- zooreg(dat, start =
as.Date("01/01/01", "%m/%d/%y"), frequency=1); plot(dat)
head(dat); month.no <- format(index(dat), "%m"); dat1 <-
cbind(coredata(dat), as.numeric(month.no))
x <- dat1[,1]; y <- dat1[,2]; z <- dat1[,3]
Now I draw a
2009 Jan 11
4
How to get solution of following polynomial?
Hi, I want find all roots for the following polynomial :
a <- c(-0.07, 0.17); b <- c(1, -4); cc <- matrix(c(0.24, 0.00, -0.08,
-0.31), 2); d <- matrix(c(0, 0, -0.13, -0.37), 2); e <- matrix(c(0.2, 0,
-0.06, -0.34), 2)
A1 <- diag(2) + a %*% t(b) + cc; A2 <- -cc + d; A3 <- -d + e; A4 <- -e
fn <- function(z)
{
y <- diag(2) - A1*z - A2*z^2 - A3*z^3 - A4*z^4
2008 Dec 30
5
Downloading data from Economagic
I was trying to dw data from Economagic
[http://www.economagic.com/em-cgi/data.exe/libor/day-ussnon], using
following code :
library(fimport)
dat2 = economagicSeries("libor/day-ussnon", frequency = "daily")
Here I see that data is not complete, downloaded data starts from
"2007-12-31 ", whereas actual data is available from 2001.
secondly, how I convert that data
2009 Sep 11
2
Searching 1st number within a ch. string
Hi all,
Is there any process to conduct a search for a particular digit or letter in
a ch. string? For example I want to make a search where 1st numeric figure
appears in the string "asd123". Here the answer should be "4"
Thanks,
--
View this message in context: http://www.nabble.com/Searching-1st-number-within-a-ch.-string-tp25400580p25400580.html
Sent from the R help
2008 Jan 16
4
Different results in calculating SD of 2 numbers
Hi all,
Can anyone tell me why I am getting different results in calculating SD of 2 numbers ?
> (1.25-0.95)/2
[1] 0.15
> sd(c(1.25, 0.95))
[1] 0.2121320 # why it is different from 0.15?
Regards,
Send instant messages to your online friends http://uk.messenger.yahoo.com
[[alternative HTML version deleted]]
2011 Jun 06
2
A Calculation on list object
Hello, I am into some calculation on a list object, therefore requesting the peers if there is any short cut way to so the same calculation.
Let say I have following list object:
> List <- vector('list', length = 3)
> set.seed(1)
> List[[1]] <- rnorm(5)
> List[[2]] <- rnorm(2)
> List[[3]] <- rnorm(7)
> List
[[1]]
[1] -0.6264538 0.1836433 -0.8356286
2011 Jan 08
3
Question on list objects
Hi, I have 2 questions on list object:
1. Suppose I have a matrix like:
dat <- matrix(1:9,3)
Now I want to replicate this entire matrix 3 times and put entire result in a list object. Means, if "res" is the resulting list then I should have:
res[[1]]=dat, res[[2]]=dat, res[[3]]=dat
How can I do that in the easilest manner?
2. Suppose I have 2 list objects:
list1 <- list2
2008 Nov 05
2
How to extract following data
Hi everyone,
I have this kind of raw dataset :
- <Temp diffgr:id="Temp14" msdata:rowOrder="13">
<Date>2005-01-17T00:00:00+05:30</Date>
<SecurityID>10149</SecurityID>
<PriceClose>1288.40002</PriceClose>
</Temp>
- <Temp diffgr:id="Temp15" msdata:rowOrder="14">
2008 Oct 08
1
Fw: MLE
...otically it should collapse to "truth" i.e. for large sample size, variance of MLE should be zero. However asymptotic normality says, MLE have some distribution and hence variance.
Can anyone please clarify me? Your help will be highly appreciated.
--- On Wed, 8/10/08, Ron Michael <ron_michael70@yahoo.com> wrote:
From: Ron Michael <ron_michael70@yahoo.com>
Subject: [R] MLE
To: r-help@stat.math.ethz.ch
Date: Wednesday, 8 October, 2008, 6:05 PM
May I ask one statistics related question please? I have one query on MLE
itself. It's property says that, for large sample size it is...
2010 Oct 29
4
Checking existance of a directory
Hi all, I am wondering is there any way to check whether some Directory exists or not, given the parent path of that directory? After searching for a while I found that there is a function dir.create() to create some directory. However I need to know whether such directory already exists or not, otherwise I will create that.
Thanks,
[[alternative HTML version deleted]]
2010 Dec 22
3
A question to get all possible combinations
Let say, I have a matrix with 8 rows and 6 columns:
> df1 <- matrix(NA, 8, 4)
> df1
[,1] [,2] [,3] [,4]
[1,] NA NA NA NA
[2,] NA NA NA NA
[3,] NA NA NA NA
[4,] NA NA NA NA
[5,] NA NA NA NA
[6,] NA NA NA NA
[7,] NA NA NA NA
[8,] NA NA NA NA
Now I want to get **all possible** ways to fetch 6 cells at a
2008 Oct 22
2
Creating list from matrix
Hello everyone,
I have a matrix like :
mat <- matrix(rnorm(12*3), 3)
Now I want to break that matrix in 4 parts each of them are matrix of (3x3) and put those 4 matrices in a "list" object of length 4
Can anyone please tell me how to do that?
Get your new Email address!
Grab the Email name you've always wanted before someone else does!
[[alternative HTML
2011 Jan 11
1
Writing diagonal matrix in opposite direction
Hi, is there any direct R function to write an diagonal matrix in an opposite way? for example I want to get like:
> diag(rnorm(5))[,5:1]
[,1] [,2] [,3] [,4] [,5]
[1,] 0.0000000 0.0000000 0.0000000 0.000000 -0.1504687
[2,] 0.0000000 0.0000000 0.0000000 -2.139669 0.0000000
[3,] 0.0000000 0.0000000 -0.2102133 0.000000 0.0000000
[4,] 0.0000000
2008 Nov 22
1
How to draw following plot in R?
I want to draw following plot, given here
http://www.2shared.com/file/4327128/830b82c4/pic.html
for the following data :
dat <- cbind(rnorm(100), sample(c(1:4), 1000, T))
colnames(dat) <- c("data","level")
Here x-axis should be on "data" and y-axis is for "level" and z-axis should
be to display the frequency of "data" for a particular