Displaying 20 results from an estimated 110 matches similar to: "(no subject)"
2011 Dec 02
1
1.6x speedup for requal() function (in R/src/main/unique.c)
Hi,
FWIW:
/* Taken from R/src/main/unique.c */
static int requal(SEXP x, int i, SEXP y, int j)
{
if (i < 0 || j < 0) return 0;
if (!ISNAN(REAL(x)[i]) && !ISNAN(REAL(y)[j]))
return (REAL(x)[i] == REAL(y)[j]);
else if (R_IsNA(REAL(x)[i]) && R_IsNA(REAL(y)[j])) return 1;
else if (R_IsNaN(REAL(x)[i]) && R_IsNaN(REAL(y)[j])) return 1;
2004 Aug 30
3
Multiple lapply get-around
I am faced with a situation wherein I have to use multiple lapply's. The
pseudo-code could be approximated to something as below:
For each X from i=1 to n
For each Y based on j=1 to m
For each F from 1 to f
Do some calculation based on Fij
Store Xi,Yj = Fij
End For F
End for Y
End for X
Is there anyway to optimize the processing logic further? I *guess*
using the multiple lapply
2009 Oct 14
1
using mapply to avoid loops
Hello, I would like to use mapply to avoid using a loop but for some reason, I can't seem to get it to work. I've included copies of my code below. The first set of code uses a loop (and it works fine), and the second set of code attempts to use mapply but I get a "subscript out of bounds" error. Any guidance would be greatly appreciated. Xj, Yj, and Wj are also lists, and s2,
2001 Nov 21
2
distances from points to line
Dear all,
I have discovered that there are many things that I used to do in my GIS
which are easily done directly in R, for example calculating interpoint
distances using geoR and pick out points inside a polygon using splancs.
I now wonder, is there a function to create a line object like a
watercourse and then calculate the distances between many points in space
and this line?
I couldn't
2011 Oct 06
1
sum of functions
Dear all,
I would like to create a code for semiparametric Klein and Spady's
estimator. For that I created a function that provides the log-likelihood
function for each observation (so it is a function of betas and i, where i
denotes the observation). Now, in order to maximize the log-likelihood
function, I have to sum these log-likelihood functions for each i and so to
get another function
2013 Jan 07
3
During startup - Warning messages:
Dear Sir/Madam,
After installing R, I saw this warning message in red when I open the R...
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_COLLATE failed, using "C"
3: Setting LC_TIME failed, using "C"
4: Setting LC_MESSAGES failed, using "C"
5: Setting LC_PAPER failed, using "C"
how shall I solve this ?
2011 Jul 11
1
plot means ?
Hi,
I need this plot:
given: x,y - numerical vectors of length N
plot xi vs mean(yj such that |xj - xi|<epsilon)
(running mean?)
alternatively, discretize X as if for histogram plotting and plot mean y
over the center of the histogram group.
is there a simple way?
thanks!
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://thereligionofpeace.com
2011 May 16
2
about spearman and kendal correlation coefficient calculation in "cor"
Hi,
I have the following two measurements stored in mat:
> print(mat)
[,1] [,2]
[1,] -14.80976 -265.786
[2,] -14.92417 -54.724
[3,] -13.92087 -58.912
[4,] -9.11503 -115.580
[5,] -17.05970 -278.749
[6,] -25.23313 -219.513
[7,] -19.62465 -497.873
[8,] -13.92087 -659.486
[9,] -14.24629 -131.680
[10,] -20.81758 -604.961
[11,] -15.32194 -18.735
To calculate the ranking
2010 Feb 13
3
Contents of Flac-dev Digest, Vol 65, Issue 5
Thanks for helping Erik,
I have uploaded a small file example for you to check.
I am curious about what is exactly producing this mismatch filesize!
I know it's ridiculous and probably too paranoid, but knowledge is always welcome.
-rw-r--r-- 1 djzn djzn 341418 2010-02-11 20:34 bandstand-linux.flac
-rw-r--r-- 1 djzn djzn 556308 2010-02-11 20:34 bandstand.wav
-rw-r--r-- 1 djzn djzn 341429
2005 Nov 04
2
Simplify iterative programming
Dear,
I am looking for the simplification of a formula to improve the
calculation speed of my program. Therefore I want to simplify the
following formula:
H = sum{i=0..n-1 , [ sum {j=0..m-1 , sqrt ( (Ai - Bj)^2 + (Ci -
Dj)^2) } ] }
where:
A, C = two vectors (with numerical data) of length n
B, D = two vectors (with numerical data) of length m
sqrt = square root
Ai = element of A with index
2003 Dec 19
1
iterative proportional fitting
Dear all,
I wonder if there are some function or package in R which can do the
iterative proportional fitting.
In the exponential model
f(y1,...yn)=exp(a'yi+b'(yi*yj)+.....+c'(y1*...*yn)+constance),
instead of the canonical parameters, I use maginal probability instead of a
and log odds ratio instead of b. and for the order higher than 3, I use the
canonical way or even assume
2009 Dec 04
1
Saving predict
Hi all,,Im using function arima()
I.e
series is my data
model<-arima(series,c(1,0,0))
forecast<-predict(model,80)
I want to create a variable:
b1<-forecast$pred - 1.96*forecast$se
and save in a txt file
but using this:
save(b1, file= "b1.txt")
creates afile butwith this inside:
]{HQ ~|LJIiW*-l)% )m#),
RIiSfdbGur9p94; H"L#Rez
1y3pN8{,I6W!6=
{6l?OMw_5KZ+
=
2010 Sep 10
1
Can I save my console contents automatically?
Dear All,
I'm using R for Mac OS X Cocoa GUI R version 2.11.1.
I can save contents of my console window by using "command + s", but I
would like to do same thing using R commands.
My question is can I save the contents automatically by using R editor
with some R commands.
Thank you.
Nobu
2012 Mar 14
1
plm function
Dear Sir/ Madam,
I am writing about the panel data for my bachelor degree.
I would really appreciate if You could help dealing with R functions.
I am trying to estimate the panel data lm model with plm function. When i
include 3dummy variables into the regression it dont appear in the sumarry
of the model, but when i estimate a simple lm model it appears.
Why is it so? What should i do to
2008 Aug 27
2
r function for calculating extreme spread in group
I'm trying to figure out how to write a r function that will calculate
the extreme spread of a group of points given their (x,y)
coordinates. Extreme Spread is the maximal Euclidean distance between
two points in a group
ex.spread = max{ sqrt [ (xi-xj)^2 - (yi-yj)^2 ] } for i not equal to j
I have 60 levels to apply this to.
There is the combination function in the dprep package but
2019 Apr 19
1
Extended logging / moved mails jumping back
did some improvements on the server.
from
dovecot -n
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.0-6-amd64 x86_64 Debian 8.11
to
# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.9.0-8-amd64 x86_64 Debian 9.8
dovecot is working for days without issues, logging is running to one file
/var/log/mail.dovecot
In the logfile appears
2006 Jun 27
2
Joining an ADS domain...
Hi people,
I'm trying to join a linux SuSE 10.0+samba 3.0.20 box to an ADS-Win2003
domain.
As I configured /etc/krb5.conf, /etc/nsswitch.conf and /etc/samba/smb.conf,
I try to join the ADS with:
root # net ads join <domainname> -U Administrator%<Admin's passwd>
the system replays:
Using short domain name -- <DOMAIN NETBIOS NAME>
then freezes, i.e. no prompt
2019 Apr 14
2
Extended logging / moved mails jumping back
>> Hi!
>> Now I have to check, if this a Thunderbird-Issue or is this a
>> dovecot-issue. For that reason, I will activate the extended logging
>> of dovecot.
> <snip/>
>> I cant see such events in the logfiles. Which switch is to turn on to
>> log all events?
>> Or do anyone know the reason for the annoying
>>
2009 Jul 16
1
Theil test help
Hello,
I have a series of questions that I hope will be simple to answer. Basically I would like a code to do the following so that I can compute the distribution free test for the slope of a postulated regression line (Theil test). As I am testing the null hypothesis that slope = 0 against the general alternative the slope does not equal 0, it should be pretty straight-forward.
I have a data
2015 Mar 02
13
Patch cleaning up Opus x86 intrinsics configury
The attached patch cleans up Opus's x86 intrinsics configury.
It:
* Makes ?enable-intrinsics work with clang and other non-GCC compilers
* Enables RTCD for the floating-point-mode SSE code in Celt.
* Disables use of RTCD in cases where the compiler targets an instruction set by default.
* Enables the SSE4.1 Silk optimizations that apply to the common parts of Silk when Opus is built in