Displaying 20 results from an estimated 20000 matches similar to: "Suggestions for R-devel / R-help digest format"
2015 Jun 03
3
[LLVMdev] [lld] TBSS wrong size
Hi,
Yes, ldd is generating wrong tbss size. It is just considering one tbss section
and not calculating all sections from all objects. The following example on
x86_64 shows the issue:
--- t0.c ---
#include <stdio.h>
extern __thread int t0;
extern __thread int t1;
extern __thread int t2;
extern __thread int t3;
__thread int t4;
__thread int t5;
__thread int t6;
__thread int t7;
int
2015 Jun 02
2
[LLVMdev] [lld] TBSS wrong size
Hi,
I am tracking some TLS issues with lld and found that it is
generating wrong tbss size for case where multiple modules
have non initialized threads variables. For instance:
-- t0.c --
__thread int x0;
__thread int x1;
__thread int x2;
extern __thread int e0;
extern __thread int e1;
extern __thread int e2;
extern __thread int e3;
int foo0 ()
{
return x0;
}
int main ()
{
return x0;
}
2011 May 03
1
Unexp. behavior from boot with multiple statistics
I am attempting to use package boot to summarize and compare the performance
of three models. I'm using R 2.13.0 in a Win32 environment.
My statistic function returns a vector of 6 values, 3 of which are error
rates for different models, and 3 are pairwise differences between those
error rates. It looks like:
multiEst<-function(dat,i)
{
....
c(E1,E2,E3,E2-E1,E3-E1,E3-E2);
}
2007 Oct 27
1
having problems re-ordering a dataframe
Dear R users,
I need to reorder a dataframe using 3 variables for the determine the
sorting order.
When I create a simple dataframe to test the method, things work as I
expected:
a1 <- rep(1:10, each=8)
a2 <- rep(rep(1:2, each=4), 10)
a3 <- rep(c(1:4),20)
(a <- data.frame(a1, a2, a3))
for each combination of a1 and a2, a3 is increasing
t <- order(a$a1, a$a2, rev(a$a3))
b
2005 Jun 03
2
rearrange data
Dear all:
I have this:
A1 B1 C1 D1 E1
A2 B2 C2 D2 E2
A3 B3 C3 D3 E3
And I want this
A1 E1
B1 E1
C1 E1
D1 E1
A2 E2
B2 E2
C2 E2
D2 E2
A3 E3
B3 E3
C3 E3
D3 E3
Example:
m<- matrix(1:15,nrow=3,byrow=T)
m
v<- unlist(list(t(m[,1:4])))
u<- rep(c(5,10,15),c(4,4,4))
data.frame(v,u)
This is the result I want but I would like to learn a simpler way to do it.
Any clue?
2018 Mar 21
2
AMI potential memory leak
We are communicating with Asterisk via AMI. Running Asterisk version 13.18.5 on an Ubuntu box.
If you look at the event response, the Result field is filled with random characters. I'm not sure what to do because that is a completely random result. It makes no sense.
We send the following command to asterisk via AMI
Action: AGI
ActionID: C44415
Channel: SIP/192.168.40.105-00001338
2018 Mar 22
2
AMI potential memory leak
HI Matt,
I am trying to replicate this particular problem. We are seeing more frequently where the Event: AsyncAGIExec is never being sent.
The two scenarios I have seen in tests yesterday and today...
We sendl an AMI action. For example, play a short file or hangup.
AMI Events will indicate it did the work, but we never receive the Event: AsyncAGIExec with a result at all.
Asterisk debug
2009 Sep 01
2
ordering and factors into column headings
Hi,
The lab in which I send my samples return the results in a format that
is difficult for me to run my analysis. The lab outputs the results
where each parameter is its own row and it’s not consistently in the
same order (and not each sample is tested for the same suite of
variables).
e.g.
>dataset
site parameter value
a e2 3
a e1 1
a e3 5
b e3
2003 Sep 04
1
Looking for R Equivalent of Gauss Statements
Hi,
I am translating some Gauss code to R. Gauss has an interesting way of
handling constraints. Observe the following code snipplet:
e1 = x[.,23] .eq 0; @ remove obs with Regular Hours = 0 @
e2 = x[.,12] .gt 1; @ remove obs with non-regular work status @
e3 = x[.,4] .lt 15; @ remove obs with agricultural and mining
industry code (< 15)@
esum = e1 + e2 + e3;
e = esum .gt 0; @
2010 Apr 27
5
E3 Card on Asterisk ?
Hi
Please check out this product
http://www.sangoma.com/products/hardware_products/data_networking/a301.html
Does it work on Asterisk or Freeswitch ?
Do Telcos provide an E3 connection ?
One of our customers had an inquiry for terminating 6000 calls
simultaneously. I want to do some homework before taking it further with
him. If I use E1 lines, I will need 6000 / 30 = 200 E1 lines, which does
2005 May 31
2
help
Dear all:
I have this:
A1 B1 C1 D1 E1
A2 B2 C2 D2 E2
A3 B3 C3 D3 E3
And I want this
A1 E1
B1 E1
C1 E1
D1 E1
A2 E2
B2 E2
C2 E2
D2 E2
A3 E3
B3 E3
C3 E3
D3 E3
Example:
m<- matrix(1:15,nrow=3,byrow=T)
m
v<- unlist(list(t(m[,1:4])))
u<-
2007 Nov 14
2
Generating these matrices going backwards
I have generated the following:
x=
E1 E2 E3
D1 0 0 1
D2 1 0 3
D3 0 2 0
y=
E1 E2 E3
D1 0 0 1.75
D2 1.75 0 1.3125
D3 0 3.5 0
Where x and y are linked by:
y =sum(x) * x / (rowSums(x)%o%colSums(x))
N=x[x[1:3,]>0]
R=y[y[1:3,]>0]
Now suppose I ONLY
2010 Jul 07
3
How do I test against a simple null that two regressions coefficients are equal?
Hi there,
I run two regressions:
y = a1 + b1 * x + e1
y = a2 + b2 * z + e2
I want to test against the null hypothesis: b1 = b2. How do I design the test?
I think I can add two equations together and divide both sides by 2:
y = 0.5*(a1+a2) + 0.5*b1 * x + 0.5*b2 * z + e3, where e3 = 0.5*(e1 + e2).
or just y = a3 + 0.5*b1 * x + 0.5*b2 * z + e3
If I run this new regression, I can test against
2008 Jul 04
1
by or tapply?
Dear R-helpers,
I have a data frame that is similar to the one below.
The row names are species and the E1, E2, E3 columns are presence/absence for a given site. I have an additional column 'origin' which has information about the species.
E1 E2 E3 origin
BASA 0 0 1 N
BASO 0 0 1 N
BRCO 0 0 1 U
CAER 0 0 0 E
CAGI 0 1 0 C
CEFL 0 1 1 N
I
2006 Mar 10
1
what's wrong with my "cov"?
Hi all,
Why cov(y, y) only gives one value, and cov(t(y), t(y)) gives 3x3 NA matrix?
Here my y is listed below and it is a 3x1 matrix.
I am expecting that if I have a random vector y=[y1 y2 y3]', here " ' "
denotes a transposition so that
y is a column vector, where y1, y2, y3 are independent random variables...
then cov(y, y) should be
E[ y * y' ] - E[y] * E[y] ',
2007 Mar 09
1
Applying some equations over all unique combinations of 4 variables
#I have a data set that looks like this. A bit more
complicated actually with
# three factor levels but these calculations need to
be done on one factor at a
#I then have a set of different rates that are applied
#to it.
#dataset
cata <- c( 1,1,6,1,1,2)
catb <- c( 1,2,3,4,5,6)
doga <- c(3,5,3,6,4, 0)
data1 <- data.frame(cata, catb, doga)
rm(cata,catb,doga)
data1
# start rates
#
2006 Aug 16
1
Specifying Path Model in SEM for CFA
I'm using specify.model for the sem package. I can't figure out how to
represent the residual errors for the observed variables for a CFA
model. (Once I get this working I need to add some further constraints.)
Here is what I've tried:
model.sa <- specify.model()
F1 -> X1,l11, NA
F1 -> X2,l21, NA
F1 -> X3,l31, NA
F1 -> X4,l41, NA
F1 -> X5, NA, 0.20
2003 May 20
1
How to use pakcage SEM
Hi.
I have tried to use Package "SEM".
As a learning, I try to convert a program running well of EQS
which is as follows to SEM:
### EQS ###
/SPECIFICATION
CAS=100; VAR=5 MAT=COR; ANA=COR;
/EQUATIONS
V1=*F1+E1; V2=*F1+E2; V3=*F1+*F2+E3; V4=**F1+*F2*E4;
V5=*F2+E5;
/VAR
E1 TO E5=*; F1*1.0; F2=1.0;
/COV
E1,E2=*; F1,F2=*:
/PRINT
FIT ALL;
/MATRIX ......
/END
This is the converted SEM
2010 Sep 08
2
dataframe selection using a multi-value key
I am merging two dataframes using a relational key (incident number and
incident year), but not all the records match up. I want to be able to
review only the records that cannot be merged for each individual dataframe
(essentially trying to select records from one dataframe using a multi-value
relational key from the other dataframe). The following code shows what I
am trying to do. The final
2009 Dec 18
1
How to define new operators
Dear R community
I try to create a new operator to build a special sum of two CashFlows. (my
S4 Class)
I tried the following but this is actually not what I want.
setGeneric("++",function(e1,e2)standardGeneric("++"))
setMethod("+",signature=list("CashFlow","CashFlow"),function(e1,e2){
print("+")
})