Displaying 20 results from an estimated 90000 matches similar to: "Convert Mathematica code into R"
2006 Aug 07
1
mathematica -> r (gamma function + integration)
Dear R-list,
I try to transform a mathematica script to R.
#######relevant part of the Mathematica script
(* p_sv *)
dd = NN (DsD - DD^2);
lownum = NN (L-DD)^2;
upnum = NN (H-DD)^2;
low = lownum/(2s^2);
up = upnum/(2s^2);
psv = NIntegrate[1/(s^NN) Exp[-dd/(2s^2)]
(Gamma[1/2,0,up] + Gamma[1/2,0,low]),{s,sL,sH},
MinRecursion->3];
PSV = psv/Sqrt[2NN];
Print["------------- Results
2001 Sep 29
2
Mathematica Notebook Frontend
Hi,
I need some help getting the Frontend to work - MathKernel.exe is
working but when I try wine Mathematica.exe I get a lot of error
messages - I'm using Mathematica Version 4.0 and wine20010824. At the
end of the post there is the complete message I get from wine.
Thanx a lot CFU
wine Mathematica.exe
For language 'german' several language ids were found:
de_DE - 0407; de_CH
2012 Mar 08
1
Doing Mathematica Quantile[] function in R
Hi all,
I am an R newbie trying to do some calculations I do in Mathematica in
R on a GNU/Linux system.
The main thing I am interested in doing is taking a 0.999 quantile on
a data set in a file who's data is normally distributed, say foo.csv.
e.g in Mathematica if I have something like this :
a=Import["foo.csv"]
b=Transpose[a][[1]]
Quantile[b,0.999]
In R I can load all the data
2011 Jul 15
2
Convert continuous variable into discrete variable
Dear all,
I have a continuous variable that can take on values between 0 and 100, for
example: x<-runif(100,0,100)
I also have a second variable that defines a series of thresholds, for
example: y<-c(3, 4.5, 6, 8)
I would like to convert my continuous variable into a discrete one using the
threshold variables:
If x is between 0 and 3 the discrete variable should be 1
If x is between 3
2010 Jul 14
3
Mathematica and R
What are some effective ways to leverage the strengths of R and
Mathematica for the analysis of a single data set?
More specifically, are there any functions that can assist with any of
the following?
1. Calling an R function from Mathematica.
2. Calling a Mathematica function from R.
3. Using XML or another reliable data format to pass vectors, matrices,
and/or lists from one environment to
2010 Jul 17
2
re. Mathematica and R
David - information on calling R from within Mathematica can be found at the
following link:
http://www.mofeel.net/1164-comp-soft-sys-math-mathematica/13022.aspx
HTH,
Alan Kelly
2007 Jun 22
3
How to run "mathematica" or "c" programs in R?
I have some programs which were writen in mathematica or c language, but I
donot know how to use these software. So I want to run them in R.
Can I do it ?
How to run "mathematica" or "c" programs in R?
Jian Zhang
[[alternative HTML version deleted]]
2006 Oct 16
1
The old question: R vs MATLAB vs Mathematica vs ...
Hi,
This question seems to be old, however I am asking it from a different point
of view.
R introduces itself as a 'statistical' language and environment. There are
many discussions about comparing R to MATLAB or mathematica (or other
similar software). It seems to me that these other software have a broader
range of applications. For example, in Mathematica one can solve a partial
2012 Mar 26
0
Re: Mathematica 6 setup.exe hangs (Solved sort of)
> Date: Sat, 24 Mar 2012 14:39:54 -0500
> From: "lahmbi5678"<wineforum-user at winehq.org>
> To:wine-users at winehq.org
> Subject: [Wine] Re: Mathematica 6 setup.exe hangs
> Message-ID:<1332617994.m2f.74195 at forum.winehq.org>
>
> Hi,
>
> probably not many people are using Mathematica under wine. You should file a bug and mark it as regression.
2008 Nov 18
1
Mathematica now working with Nvidia GPUs --> any plan for R?
Dear All,
I just read an announcement saying that Mathematica is launching a
version working with Nvidia GPUs. It is claimed that it'd make it
~10-100x faster!
http://www.physorg.com/news146247669.html
I was wondering if you are aware of any development going into this
direction with R?
Thanks for sharing your thoughts,
Best wishes,
Emmanuel
1999 Mar 11
0
Mathematica & R (PC OR UNIX)
Hi,
Is it possible to call Mathematica functions within in
R (PC or UNIX version)?
Thanks - Mrigesh
-----------------------------------------------------------
Mrigesh Kshatriya
Department of Zoology & Entomology, University of Pretoria
Pretoria, 0002, South Africa
voice: (27-12) 420-2017 fax: (27-12) 362-5242
email: mkshatriya at zoology.up.ac.za
2011 May 13
6
Powerful PC to run R
Dear all,
I'm currently running R on my laptop -- a Lenovo Thinkpad X201 (Intel Core
i7 CPU, M620, 2.67 Ghz, 8 GB RAM). The problem is that some of my
calculations run for several days sometimes even weeks (mainly simulations
over a large parameter space). Depending on the external conditions, my
laptop sometimes shuts down due to overheating.
I'm now thinking about buying a more
2011 Mar 26
1
Effect size in multiple regression
Dear all,
is there a convenient way to determine the effect size for a regression
coefficient in a multiple regression model?
I have a model of the form lm(y ~ A*B*C*D) and would like to determine
Cohen's f2 (http://en.wikipedia.org/wiki/Effect_size) for each predictor
without having to do it manually.
Thanks,
Michael
Michael Haenlein
Associate Professor of Marketing
ESCP Europe
Paris,
2010 Sep 08
1
Aggregating data from two data frames
Dear all,
I'm working with two data frames.
The first frame (agg_data) consists of two columns. agg_data[,1] is a unique
ID for each row and agg_data[,2] contains a continuous variable.
The second data frame (geo_data) consists of several columns. One of these
columns (geo_data$ZCTA) corresponds to the unique ID in the first data
frame. The problem is that only a subset of the unique ID
2011 Apr 12
2
Testing equality of coefficients in coxph model
Dear all,
I'm running a coxph model of the form:
coxph(Surv(Start, End, Death.ID) ~ x1 + x2 + a1 + a2 + a3)
Within this model, I would like to compare the influence of x1 and x2 on the
hazard rate.
Specifically I am interested in testing whether the estimated coefficient
for x1 is equal (or not) to the estimated coefficient for x2.
I was thinking of using a Chow-test for this but the Chow
2010 Jul 25
1
Equivalent to go-to statement
Dear all,
I'm working with a code that consists of two parts: In Part 1 I'm generating
a random graph using the igraph library (which represents the relationships
between different nodes) and a vector (which represents a certain
characteristic for each node):
library(igraph)
g <- watts.strogatz.game(1,100,5,0.05)
z <- rlnorm(100,0,1)
In Part 2 I'm iteratively changing the
2010 Apr 22
1
Convert character string to top levels + NAN
Dear all,
I have several character strings with a high number of different levels.
unique(x) gives me values in the range of 100-200.
This creates problems as I would like to use them as predictors in a coxph
model.
I therefore would like to convert each of these strings to a new string
(x_new).
x_new should be equal to x for the top n categories (i.e. the top n levels
with the highest
2010 Jan 11
1
snark of the day: new "features" (??) in Mathematica 7
who wants to write rgl code to do these?
http://tinyurl.com/yzojfn2
http://tinyurl.com/ylrz2p8
:-)
Ben Bolker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20100111/15c6208b/attachment.bin>
2010 Jul 16
0
Sage and R (was: Mathematica and R)
Dear David,
> I managed to install Sage on Windows (via a Linux VM), but I cannot find any documentation on how to use R from Sage. Maybe I
> should use the web interface of Sage to avoid having to install R on the VM.
In the Sage command line, you can type
sage: r?
to get some very basic info, and
sage: r.[tab]
to get various commands. This part of the interface still needs some
2016 Apr 16
1
Social Network Simulation
Dear all,
I am trying to simulate a series of networks that have characteristics
similar to real life social networks. Specifically I am interested in
networks that have (a) a reasonable degree of clustering (as measured by
the transitivity function in igraph) and (b) a reasonable degree of degree
polarization (as measured by the average degree of the top 10% nodes with
highest degree divided by