Displaying 20 results from an estimated 6000 matches similar to: "tan(mu) link in GLM"
2005 Feb 07
2
logit link + alternatives
Help needed with lm function:
Dear R's,
Could anyone tell me how to replace the link function (probit logit,
loglog etc.) in lm
with an abitrary user-defined function? The task is to perform ML
Estimation of betas
for a dichotome target variable.
Maybe there is already a package for this (I did not find one).
Any hints or a code excerpt would be welcome!
Thank you -Jeff
jeff.pr2 (at)
2006 Feb 01
1
Cauchy distribution limits
I have question (curiosity) regarding returned values of R's qcauchy
() function,
for nonexceedance probability (F). It seems the ideal returned range
of cauchy distribution should be [-Inf,Inf].
For F=0
> qcauchy(0)
[1] -Inf
but for F=1
> qcauchy(1)
[1] 8.16562e+15
It seems to me that the proper return value should be Inf???
For default (location=0,scale=1) quantile function of
2004 Sep 22
2
ordered probit and cauchit
What is the current state of the R-art for ordered probit models, and
more
esoterically is there any available R strategy for ordered cauchit
models,
i.e. ordered multinomial alternatives with a cauchy link function. MCMC
is an option, obviously, but for a univariate latent variable model
this seems
to be overkill... standard mle methods should be preferable. (??)
Googling reveals that spss
2010 May 28
3
Gelman 2006 half-Cauchy distribution
Hi,
I am trying to recreate the right graph on page 524 of Gelman's 2006
paper "Prior distributions for variance parameters in hierarchical
models" in Bayesian Analysis, 3, 515-533. I am only interested, however,
in recreating the portion of the graph for the overlain prior density
for the half-Cauchy with scale 25 and not the posterior distribution.
However, when I try:
2002 Jun 28
1
Problem in optim(method="L-BFGS-B") (PR#1717)
Full_Name: Jörg Polzehl
Version: 1.5.1
OS: Windows 2000
Submission from: (NULL) (193.175.148.198)
When calculating MLE's in a variance component model using constrained
optimization, i.e. optim(...,method="L-BFGS-B",...) I observed an inproper
behaviour in cases where
the likelihood function was evalueted at the constraint. Parameters and value of
the
function at the constraint
2007 Jun 16
0
[LLVMdev] Wrong tan
Hi!
Dale Johannesen schrieb:
>
> On Jun 16, 2007, at 12:35 AM, Duncan Sands wrote:
>
>>> Result compiled with llvm-g++ 2.0:
>>> tan float: -2.18504
>>> tan double: 0.309336
>>
>> This may be due to bug 1505.
>
> It fails on x86 using x87 floating point, with the inliner not run,
> because of 1505, yes. Gonsolo, is that your situation?
>
2006 Jan 12
6
link_to_image - Remove Border
Hi All,
I am new to both Ruby and Rails, so please be patient with me. I am
currently working on a view for a controller and I have used the
following excerpt:
<td><%= link_to_image "b_edit", :action => ''edit'', :id => part_prefix
%></td>
The image is being displayed and the link is working. However, the
formatting of image rendered
2016 Sep 09
0
Different results for tan(pi/2) and tanpi(1/2)
If pi were stored and computed to infinite precision then yes we would
expect tan(pi/2) to be NaN, but computers in general and R
specifically don't store to infinite precision (some packages allow
arbitrary (but still finite) precision) and irrational numbers cannot
be stored exactly. So you take the value of the built in variable pi,
which is close to the theoretical value, but not exactly
2007 Jun 16
2
[LLVMdev] Wrong tan
Hi!
<tangens_bug.cc>
#include <iostream>
#include <cmath>
int main()
{
float a = 0.3;
double b = 0.3;
float result_a = std::tan( a );
float result_b = std::tan( b );
std::cout << "tan float: " << result_a << std::endl;
std::cout << "tan double: " << result_b << std::endl;
}
2010 Jul 15
2
Grub booting issue
https://bugzilla.redhat.com/show_bug.cgi?id=499204
Given I can boot the install disk and chroot in, there must be away around Grub
while still keeping LVM installed.
Any ideas?
Screen says:
Booting Centos (2.6.18-194.3.1.el5)
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.18-194.3.1.el5 ro root=/dev/VolGroup00/LogVol00
[Linux-bzImage, setup=0x1e00,
2009 Jul 09
2
executing an error prone function without stopping a script
Dear R Users,
I've used this a long time ago but have forgotten. Trawling aroung the various sources somehow does not lead me to it. How can I execute an error prone function without stopping a script if it goes wrong ?
Thanks in advance,
Tolga
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy
2007 Jun 16
2
[LLVMdev] Wrong tan
On Jun 16, 2007, at 12:35 AM, Duncan Sands wrote:
>> Result compiled with llvm-g++ 2.0:
>> tan float: -2.18504
>> tan double: 0.309336
>
> This may be due to bug 1505.
It fails on x86 using x87 floating point, with the inliner not run,
because of 1505, yes. Gonsolo, is that your situation?
(What happens is, there is a wrapper in the header file for std::tan
(float),
2016 Dec 01
0
Different results for cos,sin,tan and cospi,sinpi,tanpi
Please note that you need to report your platforms (as per the posting
guide), as the C function starts
#ifdef HAVE_COSPI
#elif defined HAVE___COSPI
double cospi(double x) {
return __cospi(x);
}
And AFAICS the system versions on Solaris and OS X behave the same way
as R's substitute.
On 01/12/2016 09:12, Martin Maechler wrote:
>>>>>> Martin Maechler <maechler
2016 Dec 01
2
Different results for cos,sin,tan and cospi,sinpi,tanpi
Hi,
i try sin, cos, and tan.
> sapply(c(cos,sin,tan),function(x,y)x(y),1.23e45*pi)
[1] 0.5444181 0.8388140 1.5407532
However, *pi results the following
> sapply(c(cospi,sinpi,tanpi),function(x,y)x(y),1.23e45)
[1] 1 0 0
Please try whether the following becomes all right.
diff -ruN R-3.3.2.orig/src/nmath/cospi.c R-3.3.2/src/nmath/cospi.c
--- R-3.3.2.orig/src/nmath/cospi.c 2016-09-15
2004 Dec 08
1
install bug with specific JPEG library by exporting CPPFLAGS variable
Hi there,
I think I have found a small problem in the
"/my/path/R-2.0.1/src/modules/X11/MakeFile" generation.
During the configure step, I have specified a specific JPEG library by
exporting CPPFLAGS variable.
All compilation works well for individual files in the src/modules/X11/
directory, but when linking, the -ljpeg option doesn't work.
I obtain the following message (in french
2002 Oct 23
1
re stagiaire embetée ...
merci de m'accorder un petit peu de temps ... c'est gentil de votre
part ...
le service cron que j'utilise est sur PC
l'appli doit être lancée toutes les minutes
le .exe et le .ini se trouvent sur G, qui est en effet une partition
montée via samba sur une station NT
si ca peut être plus clair, voici un test que j'ai fait :
- test.cmd est un fichier de commande permettant de
2016 Sep 09
3
Different results for tan(pi/2) and tanpi(1/2)
The same argument would hold for tan(pi/2).
I don't say the result 'NaN' is wrong,
but I thought,
tan(pi*x) and tanpi(x) should give the same result.
Hans Werner
On Fri, Sep 9, 2016 at 8:44 PM, William Dunlap <wdunlap at tibco.com> wrote:
> It should be the case that tan(pi*x) != tanpi(x) in many cases - that is why
> it was added. The limits from below and below of the
2007 Jun 16
0
[LLVMdev] Wrong tan
> Result compiled with llvm-g++ 2.0:
> tan float: -2.18504
> tan double: 0.309336
This may be due to bug 1505.
Ciao,
Duncan.
2011 Apr 20
1
Error in dimnames(x) for Poisson EWMA model
I am attempting to run a Poisson EWMA model using Patrick Brandt's source code. I get the following error when I run the code:
Error in dimnames(x) <- dn :
length of 'dimnames' [1] not equal to array extent
Dimnames(x) looks like this:
[[1]]
NULL
[[2]]
[1] "mip" "div" "nom" "unity" "mood"
2016 Sep 09
3
Different results for tan(pi/2) and tanpi(1/2)
As the subject line says, we get different results for tan(pi/2) and
tanpi(1/2), though this should not be the case:
> tan(pi/2)
[1] 1.633124e+16
> tanpi(1/2)
[1] NaN
Warning message:
In tanpi(1/2) : NaNs produced
By redefining tanpi with sinpi and cospi, we can get closer:
> tanpi <- function(x) sinpi(x) / cospi(x)
> tanpi(c(0, 1/2, 1, 3/2, 2))