Displaying 20 results from an estimated 2000 matches similar to: "Identity link in tweedie"
2007 Dec 14
1
Help! - boxcox transformations
Hi,
Hope this does not sound too ignorant .
I am trying to detrend and transform variables to achieve normality and
stationarity (for time series use, namely spectral analysis). I am using the
boxcox transformations.
As my dataset contains zeros, I found I need to add a constant to it in
order to run "boxcox". I have ran tests adding several types of constants,
from .0001
2008 Feb 27
2
Adding LaTeX cross-references into Sweave plots
Hi all
I'm using Sweave and LaTeX, and love how they interact.
But here's a different interaction I'm not sure how to achieve; I
hope someone can help. I use a simple example, of course, to
demonstrate.
Suppose in my LaTeX document I have this:
Here is a linear equation:
\begin{equation}
y = -1 + 3 x
\label{EQ:example}
\end{equation}
This appears in the final product
2008 Jun 09
1
Bug/Error in formatC? (Was: Why doesn't formatC( x, digits=2, format= "g")...)
Hi all
After posting what follows, Duncan Murdoch suggested perhaps a bug
in formatC, or an error on documentation. Any comments?
In particular, bug, error or not, any ideas about how I can
consistently get two significant figures to print?
P.
---------- Original Message ----------
Hi all
I am not a C programmer, but I am trying to understand formatC to
get consistent printing of
2007 Jun 28
4
Sweave bug? when writing figures / deleting variable in chunk
I have found a quite strange (to me) behaviour in Sweave. It only
occurs in the following situation:
1. define a variable in one chunk
2. use it within a subsequent figure-generating chunk
3. delete it at the end of that same chunk
Then the Sweave driver chokes, not finding the variable name when
generating the figure
Example:
% document bug2.Rnw
\documentclass{article}
\usepackage{Sweave}
2005 Jan 20
5
glm and percentage data with many zero values
Dear all,
I am interested in correctly testing effects of continuous environmental
variables and ordered factors on bacterial abundance. Bacterial
abundance is derived from counts and expressed as percentage. My problem
is that the abundance data contain many zero values:
Bacteria <-
2002 Dec 16
1
Creating libraries: Cannot make help
Hi all
I am trying to package a library in R 1.6.1 (Windoze XP).
I have read the document "Writing R extensions" and think I
have done things correctly (though apparently not). I have
searched the mail archives for help to no avail.
I also posted a few days ago and thanks to Peter Dalgaard I have
managed to focus my search for errors.
I am trying to create a library in R. I run the
2007 Mar 07
1
Sweave issue: quotes in verbatim-like output print incorrectly
Hi all
I love Sweave; use it all the time.
But I recently received a new computer, and ever since I
have had a problem I've never seen before.
For example, I place the following in my Snw file:
<<>>=
sms <-
read.table("http://www.sci.usq.edu.au/staff/dunn/Datasets/applications/popular/smsspeed.dat",
header=TRUE)
attach(sms)
sms.lm <- lm( Time ~ Age*Phone,
2008 Jun 06
2
Why doesn't formatC( x, digits=2, format="g") doesn't always give 2 sig figs?
Hi all
I am not a C programmer, but I am trying to understand formatC to
get consistent printing of reals to a given number of significant
digits.
Can someone please explain this to me? These first three give what
I expect on reading ?formatC:
> formatC(0.0059999, digits=2,format="fg",flag="#")
[1] "0.0060"
> formatC(0.59999,
2007 Jun 15
2
sma package, and MouseArray data set
Hi all
I have just downloaded the sma package from CRAN.
On installing on my linux machine, I get the message
> library(sma)
> data(MouseArray)
Warning message:
file 'MouseArray.RData' has magic number 'RDX1'
Use of save versions prior to 2 is deprecated
Hereafter, MouseArray is not found:
> MouseArray
Error: object "MouseArray" not found
We were
2007 May 03
2
Building package: What does this message about rcompgen imply?
Hi all
I'm updating a package for submission to CRAN, and I am getting
an error message I never have seen before, and can't find out
what it implies or means (and hence, what I need to do to fix
it).
After running R CMD check, I get this:
<snip>
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd
2003 Mar 19
3
The best way to end up with WMF files
Hi all
I am doing some stats work for a group of biologists
who require windows metafiles (*.wmf) for their publications.
To create these, I appear to have two choices:
1. Restart my machine in Windows and use savePlot
2. Keep my machine in linux, save as another format,
then convert.
I'd rather stay in linux; but how do I get wmf files? I looked
at using ImageMagick's convert,
2003 Jul 29
1
Sweave: pass scale parameter to includegraphics?
Hi all
I'm using Sweave and find it a treat. But one
question:
I use Sweave to create my pictures which are
automatically included into LaTeX. For example,
in the file test.Snw, I may have:
% LaTeX stuff
\begin{figure}
<<fig=true,width=5,height=5>>=
x1 <- seq(1,5, length=10)
x2 <- sin(x1)
plot(x1,x2)
@
\caption{Plot}
\end{figure}
% More LaTeX
This produces the LaTeX
2007 Mar 08
1
Error distribution question
Hello there,
I was wondering if somebody could offer me some advice on which error
distribution would be appropriate for the type of data I have. I'm
studying what continuous predictor variables such as grooming received,
rank, etc. affect the amount of grooming given. This response variable
is continuous with many zeros, and so positively skewed. So I can't use
gamma because of the
2007 Nov 08
1
Mixing lty specifications in legend
Hi all
I have a plot with lines, one specified as (say) lty=1,
using standard line types, and another as (say) my
own spec: lty="51".
I can't get legend to display both. Toy example:
> plot(1~1)
> legend("topright", lty=c("51",1), legend=c("My own","Standard"))
Error in segments(x1, y1, x2, y2, ...) : invalid line type: must be
2007 Sep 13
1
Problem using xtable on an array
Hi all
I know about producing a minimal example to show my problem. But I'm
having trouble producing a minimal example that displays this
behaviour, so please bear with me to begin with.
Observe: I create an array called model.mat. Some details on this:
> str(model.mat)
num [1:18, 1:4] -0.170 -0.304 -2.617 2.025 -1.610 ...
- attr(*, "dimnames")=List of 2
..$ : chr
2005 Aug 12
1
Help converting a function from S-Plus to R: family$weight
Hi all
I am converting an S-Plus function into R. The S-Plus code
uses some of the glm families, and family objects.
The family objects in S-Plus and R have many different
features, for example:
In R:
> names(Gamma())
[1] "family" "link" "linkfun" "linkinv" "variance"
[6] "dev.resids" "aic"
2007 Mar 09
0
GLMM in lme4 and Tweedie dist.
Hi there,
I've been wanting to fit a GLMM and I'm not completely sure I'm doing
things right. As I said in a previous message my response variable is
continuous with many zeros, so I was having a hard time finding an
appropriate error distribution. I read some previous help mails given to
other people advising them to use the Tweedie distribution. I'm still
not sure if this
2002 Nov 19
5
plotting intersecting planes
Hi all
In two days, I am giving a small, informal workshop in our
Department about using R. Initially, it was just for statistician,
but surprisingly (to me anyhow) many mathematicians are also
coming who have a MATLAB background. They are coming at the
Workshop from a teaching perspective.
They are considering using R to avoid licensing issues with
MATLAB. One thing they were hoping me to
2005 Oct 06
2
R/S-Plus equivalent to Genstat "predict": predictions over "averages" of covariates
Hi all
I'm doing some things with a colleague comparing different
sorts of models. My colleague has fitted a number of glms in
Genstat (which I have never used), while the glm I have
been using is only available for R.
He has a spreadsheet of fitted means from each of his models
obtained from using the Genstat "predict" function. For
example, suppose we fit the model of the type
2002 Dec 13
1
Loading libraries: Nas introduced
Hi all,
I am trying to package a library in R 1.6.1 (Windoze XP).
I have read the document "Writing R extensions" and think I
have done things correctly (though apparently not). I have
searched the mail archives for help to no avail.
When I try to attach the library using, eg
> library( libname, lib.loc=path.to.library)
I get this message:
Warning message:
NAs introduced by