Displaying 20 results from an estimated 30000 matches similar to: "solve matrix"
2005 Jul 02
1
how to call sas in R
Hello all,
I would like to know how to call sas code in R. Since I simulate data in
R and I need to use sas code (garch-t,egarch and gjr) to estimate it. I
need to simulate 500 times with 2000 obs. How I can call that code in
R.Also, how I can keep the parameters from the estimate.
j=1:500
i=1:2000
sas code
keep parameters.
Best Appreciate,
Luck
2005 Aug 18
1
code a family of garch
Dear R-helpers,
I was wondering if anyone has or knows someone who might have an
implementation
of algorithm for estimating garcht-t, egarch and gjr models. I try to
use Fseries but I don't know how to code these models.
Thanks a million in advance,
Sincerely,
Nongluck
2009 Jun 17
1
Inverting a square matrix using solve() with LAPACK=TRUE (PR#13762)
Full_Name: Ravi Varadhan
Version: 2.8.1
OS: Windows
Submission from: (NULL) (162.129.251.19)
Inverting a matrix with solve(), but using LAPACK=TRUE, gives erroneous
results:
Here is an example:
hilbert <- function(n) { i <- 1:n; 1 / outer(i - 1, i, "+") }
h5 <- hilbert(5)
hinv1 <- solve(qr(h5))
hinv2 <- solve(qr(h5, LAPACK=TRUE))
all.equal(hinv1, hinv2) #
2006 Mar 05
1
error function
hi all,
Does anyone know which command to use for error function(erf)?
Thanks
2008 Nov 21
1
equation of a line or curve
Hi R users
I used the function line(x,y) and line(lowess(x,y)) to see the correlation
between 2 variables (x,y).
Here is my question:
is there a way to ask R to tell me the equation of
-this line : line(x,y)
-this curve: line(lowess(x,y))
Best regards
--
View this message in context: http://www.nabble.com/equation-of-a-line-or-curve-tp20628845p20628845.html
Sent from the R help mailing list
2006 Sep 19
1
R CMD check fails at package dependencies check on Fedora Core 5, works on other systems
I'm testing a FC5 machine for use in a student lab. R 2.3.1 is installed and
seems to work fine. There is one peculiarity - the logins are authenticating
to a server, and a "verbose" flag is set somewhere, leading to lots of
spurious messages like this
request done: ld 0xa227598 msgid 1
which may be confusing R.
However, R CMD check seems to fail for packages with no
2008 Jul 07
2
A shorter version of ".Last.value"?
Hi,
There is an object, ".Last.value" to which the result of the most recent
evaluation is assigned. This is similar to "ans" in Matlab. In Matlab
"ans" can be very useful and time-saving, but typing the larger R
version is somewhat clunky and takes away from the usefulness.
Is it possible to reassign '.Last.value' to something simpler, like
2010 Jan 05
4
solving cubic/quartic equations non-iteratively
To R-helpers,
R offers the polyroot function for solving mentioned equations
iteratively.
However, Dr Math and Mathworld (and other places) show in detail how to
solve mentioned equations non-iteratively.
Do implementations for R that are non-iterative and that solve mentioned
equations exists?
Regards, Mads Jeppe
2009 Nov 23
1
R: Re: chol( neg.def.matrix ) WAS: Re: Choleski and Choleski with pivoting of matrix fails
It works! But Once I have the square root of this matrix, how do I convert it
to a real (not imaginary) matrix which has the same property? Is that
possible?
Best,
Simon
>----Messaggio originale----
>Da: p.dalgaard at biostat.ku.dk
>Data: 21-nov-2009 18.56
>A: "Charles C. Berry"<cberry at tajo.ucsd.edu>
>Cc: "simona.racioppi at
2007 Nov 19
2
All nonnegative integer solution
Dear all,
Is there any method in R to find all possible nonnegative integer
solutions to the linear equation with unit coefficients as follow:
X1+X2+...+Xk=N
Thank you,
Amin Zollanvari
2006 Mar 27
1
Differential Equations
Dear R-community
My ODE problems looks as follows:
(1) dA/dt = u*A - v*B
(2) dB/dt = v*B - u*A
where u is a constant, and v=k*t (k=constant, t=time)
Does anybody knows a good function/procedure of solving? Should one
involve the equation (3) dv/dt = k?
Thanks for your support.
--
Dominik Heinzmann
Master of Science in Mathematics, EPFL
Ph.D. student in Biostatistics
Institute of Mathematics
2005 Aug 05
3
Help, my RGui is speaking French!
Dear R-helpers,
First of all I have nothing against the French language!
But now my problem, yesterday I installed R 2.1.1
and I had to experience that my RGui is speaking French.
My windows locals is French (Switzerland).
I'm used to English and I want to reset my RGui to English.
I was seeking for the solution in the archives,
however not successfully.
By the way the searchable archives
2006 Nov 09
1
Failing to install R-2.4.0 on FC4
Hi everyone,
Firstly, I'm sorry for the cross-post. I re-read the posting guide
and it appears my question is more related to r-devel.... (i think :-) )
I downloaded the source code available at:
http://cran.fhcrc.org/src/base/R-2/R-2.4.0.tar.gz
to a linux machine (Linux 2.6.11-1.1369_FC4smp #1 SMP).
I successfully configured and compiled it, which means I'm able to
run it from the
2007 Oct 17
1
Problem with saving pdf file graphics in R-2.6.0
Hi,
# Example of my problem of saving pdf file graphics in R-2.6.0
> x<-1:10;y<-1:10
> plot(x,y,type="b")
# attempting to save the plot as a *pdf file fails
# and the following error meassge is shown.
Error: Invalid font type
In addition: Warning messages:
1: font family not found in PostScript font database
2: font family not found in PostScript font database
>
2008 Jan 28
3
R on an eeePC
Dear list,
I wonder if somebody has succeeded in installing R on an eeePC (Xandros
desktop). Searching via Rseek (term eeePC) and in eeePC forums (term
Cran) left me without proper hits.
Best wishes,
Walter.
2006 Aug 01
1
Tcltk package
Hi WizaRds,
I ran into trouble trying to install the "debug" package, which requires TCL/TK support. It seems like the tcltk package is not installed on my system.
From: http://tolstoy.newcastle.edu.au/R/help/05/07/7993.html it seems that the tcltk is bundled with the base R distribution.
I'm running R under linux:
> version
_
platform i686-pc-linux-gnu
2005 Oct 20
3
Attributing values to matrix according to names
Dear R-helpers
Apologies for the basic question, but I just got stuck:
I would like to write values from a vector into array cells with the
same names
> count[1:10]
10010 10014 10015 10017 10030 10080 10100 10230 10250 10280
0 0 0 0 0 1 1 0 2 0
>data[1:10,,1]
[,1] [,2] [,3] [,4] [,5]
10010 NA NA NA NA NA
10014 NA NA NA
2005 Aug 31
1
update.packages forces Tcl/Tk interface despite ask=TRUE if the DISPLAY environment variable is set (PR#8115)
Full_Name: Robert King
Version: 2.1.1
OS: Linux (debian stable, with backport R)
Submission from: (NULL) (142.58.147.28)
update.packages documentation (and code, from what I can make out) says:
ask: logical indicating whether to ask user before packages are
actually downloaded and installed, or the character string
'"graphics"', which brings up a
2008 Aug 12
2
Maximum likelihood estimation
Hello,
I am struggling for some time now to estimate AR(1) process for commodity price time series. I did it in STATA but cannot get a result in R.
The equation I want to estimate is: p(t)=a+b*p(t-1)+error
Using STATA I get 0.92 for a, and 0.73 for b.
Code that I use in R is:
p<-matrix(data$p) # price at time t
lp<-cbind(1,data$lp) # price at time t-1
2006 Feb 22
1
var-covar matrices comparison
> Date: Mon, 20 Feb 2006 16:43:55 -0600
> From: Aldi Kraja <aldi at wustl.edu>
>
> Hi,
> Using package gclus in R, I have created some graphs that show the
> trends within subgroups of data and correlations among 9 variables (v1-v9).
> Being interested for more details on these data I have produced also the
> var-covar matrices.
> Question: From a pair of two