Displaying 20 results from an estimated 120 matches similar to: "Logit and Probit for Panel data"
2004 Jul 05
4
density(x)
Dear experts,
when trying to estimate an kernel density function with density(x) I get the following
error message with imported data from either EXCEL or text files:
Error in density(spr) : argument must be numeric.
Other procedues such as truehist work. If I generate data within R density works fine.
Does anybody have an idea?
Yours
--
Christoph Hanck
Wissenschaftliche Hilfskraft
2006 May 29
2
parameter-restrictions in OPTIM
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20060529/2d606d35/attachment.pl
2000 Dec 17
1
AW: Permutations
Niels Waller wrote:
> Does anyone know of an R (or S-PLUS) function for delineating all possible
> combinations and permutations?
The following function delivers all permutations of 1:n.
all.perm <- function(n) {
p <- matrix(1, ncol = 1)
for (i in 2:n) {
p <- pp <- cbind(p, i)
v <- c(1:i, 1:(i - 1))
for (j in 2:i) {
v <- v[-1]
2001 Sep 25
1
Bug in boxplot.stats?
Is this a bug?
>"xx" <- c(50, 79, 120, 78, 90, 100, 78, 80,
+ 90, 80, 60, 39, 90, 85, 140, 100, 80, 80)
> boxplot.stats(xx)$stats
[1] 60 78 80 90 100
> boxplot.stats(0.1*xx)$stats
[1] 7.8 7.8 8.0 9.0 10.0
I suppose the way the numbers in 0.1*xx are internally stored may
cause this problem:
> formatC(0.1*xx[2],format="f",digits=16)
[1]
2001 Oct 05
3
3dim histogram?
Hello all,
I wonder if there is a package including a program to display a 3dim
histogram.
Thanks.
--- D.Trenkler ---
****************************************************************************
*****
Dr. Dietrich Trenkler (dtrenkler at nts6.oec.uni-osnabrueck.de)
Statistik / Empirische Wirtschaftsforschung
Universitaet Osnabrueck
Rolandstrasse 8
2000 Mar 14
2
Bug in sub? (PR#487)
I suspect that there is bug in sub when using "?":
> string_"This is a bug!"
> sub("!", ", or isn't it?", string)
[1] "This is a bug, or isn't it?"
> string_"This is a bug?"
> sub("?", ", or isn't it?", string)
[1] "This is a bug?"
Regards,
*** D.Trenkler ***
2000 Mar 07
2
AW: anova-bug in R-version 1.0.0? (PR#470)
I think I've discovered what went wrong.
My workspace included a function wilcox.test formerly copied from
ctest. Now ctest ist part of the distribution and because of that I
always got the message:
[Previously saved workspace restored]
Error in autoload("wilcox.test", "ctest") :
Object already exists
I didn't take care of this message. Now I removed
2001 Nov 22
1
Bug in dev.print? (PR#1179)
Dear "Debuggers",
please have look a the following:
> plot(0:1,0:1,type="n")
> points(c(0,0.5,1),c(0,0.5,1))
> dev.print(device = postscript, width=5 , height=5, file="test1.ps")
windows
2
># This worked
> dev.print(device = pdf, width=5 , height=5, file="test1.pdf")
windows
2
># That also
>
2005 Dec 04
4
Construct a data.frame in a FOR-loop
Say I have a FOR-loop for computing powers (just a trivial example)
for(i in 1:5)
{
x<-i^2
y<-i^3
}
How can I create a data.frame and a 3D plot of (i,x(i),y(i)), i.e. for
each iteration
Thanks,
Serguei Kaniovski
--
___________________________________________________________________
??sterreichisches Institut f??r Wirtschaftsforschung (WIFO)
Name: Serguei Kaniovski
2000 Sep 07
6
Writing a tabel in LaTeX-format
I have a vague recollection of seeing a R-function
that will output a table or matix in a format suitable
for the tabular enviroment in LaTeX.
But I cannot find it. Any hints?
Bendix
----------------------
Bendix Carstensen
Senior Statistician
Steno Diabetes Centre
Niels Steensens Vej 2
DK-2820 Gentofte
Denmark
tel: +45 44 43 87 38
mob: +45 28 25 87 38
fax: +45 44 43 73 13
bxc at novo.dk
2000 Apr 18
0
list arithmetic
I'm an old APL fossil and I got used to work with nested arrays there.
In APL(2) you can write 1+(1 2 3)(4 5 6 7 8 9) and get (2 3 4)(5 6 7 8 9
10).
A similar concept is R's lists. So it takes me by surprise to learn that
1+list(1:3,4:9)
delivers an
Error in 1 + list(1:3, 4:9) : non-numeric argument to binary operator
Is there any particular reason why this doesn't work
2000 Jul 26
1
Bug in stem? (PR#617)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@biostat.ku.dk
#
######################################################
"b" <- c(-5.5, -4, -2.3, -1.5, -1, -0.5, -0.41, -0.33, -0.29,
-0.26, -0.2,
2000 Mar 20
1
Elementwise c() for lists
I have two lists of equal lengths. Each one consists of vectors. Is
there an elegant way to combine them elementwise? Elegant means: without
loops.
For instance, for
> jja_list(1:3,4:7)
> jjb_list(rep(0,4),(2,5))
I would like to get:
> list(c(1:3,rep(0,4)),c(4:7,rep(2,5))).
--- D.Trenkler ---
************************************************************************
*********
2000 May 03
0
Combinatorics for nonparametric tests
For some small sample sizes I would like to exemplify the combinatorics
underlying certain nonparametric tests like Mann-Whitney-Wilcoxon,
Kruskal-Wallis and Spearman's rank correlation. I have written a
function all.perm which delivers all permutations of 1,2,...,n and
which works reasonably well. This can be used to generate P(R=r) of
Spearman's rank correlation:
2005 Dec 03
1
Correlation matrix from a vector of pairwise correlations
I've a vector of pairwise correlations in the order low-index element
precedes the high-index element, say:
corr(1,2)=0.1, corr(1,3)=0.2, corr(2,3)=0.3, corr(3,4)=0.4
How can I construct the corresponding correlation matrix?
I tried using the "combn"-function in "combinat" package:
library(combinat)
combn(c(0.1,0.2,0.3,0.4),2)
, but to no avail...
Thank you for your
2000 Dec 13
0
choose(n, k) for k>n: An inconsistency?
It took me by surprise to find that choose(4,5) delivers
[1] NaN
Warning message:
NaNs produced in: choose(n, k)
If we look at choose(4,5) as the number of ways of choosing
5 objects from 4 I would have expected 0 as result.
Furthermore dhyper(5,4,6,5) does deliver 0 and this essentially
equivalent to choose(4,5)*choose(6,0)/choose(10,5).
2000 Apr 06
1
Generating Rd format under Windows
Excuse me if this question has been answered before.
I just came across "Writing R documentation" in the "Writing R
extensions"
manual. Under section 2.9: "Processing Rd format" I only
find hints at generating the Rd format on a Unix platform. Have I
overlooked how to generate them under Windows?
Any help is gratefully appreciated.
--- D.Trenkler ---
2000 Mar 07
1
R-crash using cut-and-paste (PR#472)
Dear R-Team,
sorry for bugging (:-)), it's me again. In the FAQ coming along with the
R distribution it reads:
If R executes an illegal instruction, or dies with an operating system
error message that indicates a problem in the program (as opposed to
something like "disk full"), then it is certainly a bug.
This encourages me to describe a crash I encountered a few minutes ago.
I
2000 Mar 06
2
anova-bug in R-version 1.0.0? (PR#470)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@biostat.ku.dk
#
######################################################
Under R version 0.6.51 the following
A_c(13,9,15,5,25,15,3,9,6,12)
B_c(42,24,41,19,27)
2000 Apr 07
4
Bug in qbinom? (PR#511)
n_10;p_0.5;jjx_0:n;qbinom(pbinom(jjx,n,p),n,p) # This one works as
expected
n_100;p_0.5;jjx_0:n;qbinom(pbinom(jjx,n,p),n,p) # This one causes
severe problems
I cannot interrupt using ESC and I finally have to resort to the Windows
Task manager to kill the R session.
A friend of mine told me that he faced similar problems under Unix.
--please do not edit the information below--
Version: