Displaying 11 results from an estimated 11 matches for "maxsum".
Did you mean:
maxnum
2011 Aug 02
1
My R code is not efficient
...----------------------------------------------------------------------------------------
for (k in 1:n){
ymax <- max( y1[k], y2[k] )
i <- 0:ymax
sums<- -lgamma(y1[k]-i+1)-lgamma(i+1)-lgamma(y2[k]-i+1)
maxsums <- max(sums)
sums <- sums - maxsums
lsum <- log( sum(exp(sums)) ) + maxsums
lbp[k] <- y1[k]*log(4) + y2[k]*log(5) + lsum
}
elbp <- exp(lbp)
-----------------------------------------------------------...
2001 Feb 01
3
summary() vs mean()
Forgive what may seem to be a trivial question/problem.
Below is some simple R 1.2.1(Windows) code with output.
> summary(mammals, digits=10)
Name Body.Weight Brain.Weight
Red Fox :1 Min. : 3.0 Min. : 26.0
Pig :1 1st Qu.: 35.5 1st Qu.: 138.5
Man :1 Median : 100.0 Median : 406.0
Kangaroo:1 Mean : 761.2 Mean :1000.0
Jaguar :1 3rd
2011 Aug 26
2
read.table segfaults
> fil2s <- read.table("../Data/fil2_s.txt", header = FALSE, sep = "\t")
Program received signal SIGSEGV, Segmentation fault.
0x000000000041c2e1 in RunGenCollect (size_needed=8192000) at memory.c:1514
1514 PROCESS_NODES();
(gdb)
> sessionInfo()
R version 2.13.1 Patched (2011-08-25 r56798)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1]
1999 Jun 09
2
summary gives inaccurate data
Hi,
using R64.1 the summary function for simple statistics of a vector gives
inaccurate
results for the maximum.
Example:
summary(c(123456,1,2,3))
gives :
Min. 1st Qu. Median Mean 3rd Qu. Max.
1.00 1.75 2.50 30870.00 30870.00 123500.00
The Max value ist wrong in a mathematical sense. I've tried with S-Plus,
it gives the same result,
but this seems
2013 Dec 18
0
freetype 2.5.2, problem with the survival package, build R 2.15.x with gcc 4.8.x
...cause 'memory not mapped'
>>
>> Traceback:
>> 1: sort.list(y)
>> 2: factor(a, exclude = exclude)
>> 3: table(object, exclude = NULL)
>> 4: summary.default(X[[3L]], ...)
>> 5: FUN(X[[3L]], ...)
>> 6: lapply(X = as.list(object), FUN = summary, maxsum = maxsum, digits = 12,???...)
>> 7: summary.data.frame(support)
>> ...
>> --------------------------------
>>
>> r62430 needs a bit of adapting to apply to R 2.15.x , but you get the idea.
>> I hope this info is useful to somebody else who is still using R 2.15....
2001 Sep 13
1
significant figures in summary()
Howdy,
Should summary() print answers with different numbers of
significant figures, as in the following?
> dim(iv)
[1] 3000 2
> summary(iv)
X1 X2
Min. :-4.15261 Min. :-3.271520
1st Qu.:-0.66188 1st Qu.:-0.671205
Median : 0.01233 Median :-0.008175
Mean : 0.01121 Mean : 0.016815
3rd Qu.: 0.67778 3rd Qu.:
2006 Feb 13
2
R-help, specifying the places to decimal
Hello - R-experts,
Is there any way with which we can specify the number after
decimal point to take. Like I have a situation where
the values are comming 0.160325923 but I only want
4 place to decimal say 0.1603. Is there any way for that.
I am no expert in R- and this may sound simple to many.sorry
Thanks for any help.
With Regards
Subhabrata
2011 Jan 08
1
summary(list) is awesome, but I want more than summary
When I load a table from a data source and run summary() on it, the
summary gives me basic summary statistics I'm looking for, and it also
discriminates between quantitative and qualitative data and summarizes
them accordingly. For example, if I do this:
mydata <- read.table("data.txt")
summary(mydata)
I would get output like this:
> summary(mydata)
County
2009 Aug 10
1
summary(table)
Hi,
Why when I do a summary on a table it cuts off the other variables? It says
Other :58 or Other: 120.
how can I get the summary for all the variables under ServLoad.Task and
Server.Load and Avg. CPU and Max.CPU?
Thanks,
summary(probF)
Reboot.Id ServLoad.Task Server.Load
Avg.CPU Max.CPU Event.Log
Min. : 2.00 120067_122395: 5
2008 Mar 08
5
Non-visible functions are asterisked
Dear R-Helpers,
I suspect I'm about to ask a FAQ, but I haven't been able to find an
answer in the FAQ, AItR or an R Site Search. When I look at the methods
of summary (below) it says, "Non-visible functions are asterisked". I
looked at the help file for summary.princomp, which did not comment on
it being non-visible. I ran its help file example, which printed visible
output. I
2011 Jan 11
0
modified FAST Script from package SensoMineR for the R community - Reg
...ig,
4))
}
texte = matrix(NA, (I * J), 3)
texte = data.frame(texte)
texte[, 1] = rep(rownames(don), J)
texte[, 2] = rep(colnames(don), each = I)
for (i in 1:J) {
texte[((I * (i - 1)) + 1):(I * i), 3] = paste(don[, i])
}
nbp = strsplit(summary(don, maxsum = max(lev)), ":")
agg = rep(0, J * max(lev))
for (i in 1:(J * max(lev))) {
agg[i] = nbp[[i]][2]
}
agg2 = na.omit(agg)
agg2 = as.factor(agg2)
if (graph) {
##x11()
plot(agg2, main = "Number of products per group")
}
acm_call...