similar to: options()$width ignored by print.formula

Displaying 20 results from an estimated 1300 matches similar to: "options()$width ignored by print.formula"

2011 Dec 16
1
mgcv 1.7-12 crashes R
Dear community, I encountered a very disturbing phenomenon today: When I try to fit any gam() with mgcv R aborts. I could not find any post regarding this in google, which mades in even more strange. I am using the latest Ubuntu, latest R and latest mgcv everything up to date. The crash occured too with the last mgcv 1.7-11. This is the output from the R shell: <pre> R version 2.14.0
2011 Oct 26
2
gam predictions with negbin model
Hi, I wonder if predict.gam is supposed to work with family=negbin() definition? It seems to me that the values returned by type="response" are far off the observed values. Here is an example output from the negbin examples: > set.seed(3) > n<-400 > dat<-gamSim(1,n=n) > g<-exp(dat$f/5) > dat$y<-rnbinom(g,size=3,mu=g) >
2008 Jul 01
1
Simulate from a GAM model
Does anybody have any suggestions on how I might simulate from fitted GAM model? I am using the gam function in the mgcv package to fit a variable coefficient model like the following from the examples. I would like simulate based on the fitted model like the simulate function in the stats package does for lm models. library(mgcv) set.seed(10) ## simulate date from y = f(x2)*x1 + error dat
2012 Jul 23
1
mgcv: Extract random effects from gam model
Hi everyone, I can't figure out how to extract by-factor random effect adjustments from a gam model (mgcv package). Example (from ?gam.vcomp): library(mgcv) set.seed(3) dat <- gamSim(1,n=400,dist="normal",scale=2) a <- factor(sample(1:10,400,replace=TRUE)) b <- factor(sample(1:7,400,replace=TRUE)) Xa <- model.matrix(~a-1) ## random main effects Xb <-
2009 Dec 07
1
options(width=100) ignored on start-up: bug or feature?
Dear developers I've tried this a couple of days ago on r-help, unfortunately with no feedback. Could you please take a look and confirm whether it's a bug, feature, or bad eye-sight when reading Help: Is it normal that R ignores options("width"=100) at start-up? Although liviu at debian-liv:~$ cat /usr/lib/R/etc/Rprofile.site | grep width options(width = 100) , R will
2012 Feb 17
1
Standard errors from predict.gam versus predict.lm
I've got a small problem. I have some observational data (environmental samples: abiotic explanatory variable and biological response) to which I've fitted both a multiple linear regression model and also a gam (mgcv) using smooths for each term. The gam clearly fits far better than the lm model based on AIC (difference in AIC ~ 8), in addition the adjusted R squared for the gam is
2012 Jun 21
2
check.k function in mgcv packages
Hi,everyone, I am studying the generalized additive model and employ the package 'mgcv' developed by professor Wood. However,I can not understand the example listed in check.in function. For example, library(mgcv) set.seed(1) dat <- gamSim(1,n=400,scale=2) ## fit a GAM with quite low `k' b<-gam(y~s(x0,k=6)+s(x1,k=6)+s(x2,k=6)+s(x3,k=6),data=dat) plot(b,pages=1,residuals=TRUE)
2012 May 29
1
GAM interactions, by example
Dear all, I'm using the mgcv library by Simon Wood to fit gam models with interactions and I have been reading (and running) the "factor 'by' variable example" given on the gam.models help page (see below, output from the two first models b, and b1). The example explains that both b and b1 fits are similar: "note that the preceding fit (here b) is the same as
2011 Feb 04
0
GAM quasipoisson in MuMIn - SOLVED
Hi, Got my issues sorted. Error message solved: I heard from the guy who developed MuMIn and his suggestion worked. "As for the error you get, it seems you are running an old version of MuMIn. Please update the package first." I did (I was only 1 version behind in both R and in MuMIn) and error disappeared! Running quasipoisson GAM in MuMIn: As for my questions on GAM and " to
2011 Feb 04
1
GAM quasipoisson in MuMIn
Hi, I have a GAM quasipoisson that I'd like to run through MuMIn package - dredge - gettop.models - model.avg However, I'm having no luck with script from an example in MuMIn help file. In MuMIn help they advise "include only models with smooth OR linear term (but not both) for each variable". Their example is: # Example with gam models (based on
2010 Mar 04
2
which coefficients for a gam(mgcv) model equation?
Dear users, I am trying to show the equation (including coefficients from the model estimates) for a gam model but do not understand how to. Slide 7 from one of the authors presentations (gam-theory.pdf URL: http://people.bath.ac.uk/sw283/mgcv/) shows a general equation log{E(yi )} = ?+ ?xi + f (zi ) . What I would like to do is put my model coefficients and present the equation used. I am an
2009 Feb 25
1
[LLVMdev] Narrowing pointers to storage width from GPR width
I have a platform that I am targeting that has 64-bit general purpose registers but uses 32-bit pointers (ie, sizeof(void*) == 4) but unfortunately it also requires that the top 32-bits of the pointer value be clear. This sometimes becomes a problem with certain pointer calculations such as using a 32-bit negative value for indexing into an array can cause the upper bits to be set, generating
2009 Sep 20
1
How to choose knots for GAM?
Hi, all I want to choose same knots in GAM for 10 different studies so that they has the same basis function. Even though I choose same knots and same dimensions of basis smoothing, the basis representations are still not same. My command is as follows: data.gam<-gam(y~s(age,bs='cr',k=10)+male,family=binomial,knots=list(age=seq(45,64,length=10))) What is my mistake for choice of
2012 May 29
1
strucchange Fstats() example
Dear all, I'm trying to understand how the strucchange package is working and I have been looking at the examples given for the Fstats() function. The first example (Nile), shows one peak in the F-stats and one breakpoint is estimated, that can be plotted using the following code ## Nile data with one breakpoint: the annual flows drop in 1898 ## because the first Ashwan dam was built
2007 Mar 12
1
[yum] problem with columns width output
Hi, I have a package named like this : httpd.i386 2.0.59-1.el4s1.5.el4.c centosplus As you see, version is too long for the column width. I tried to export COLUMNS with a higher value : no change. Any idea ? -- Martin
2006 Apr 01
3
Determine image width of png, gif or jpg?
Hi all In PHP I have a neat function: http://ch2.php.net/function.getimagesize With it I can easily determine the dimensions of an image file. How can I do that in RoR? Thanks for help. Greets, Josh -- Posted via http://www.ruby-forum.com/.
2006 Apr 25
3
file upload and check width and height of the picture
i have an file upload in my rails app and i''m saving the picture in the filesystem. i need to validate if the uploaded picture have a certain width and height. how can i do this thank you very much -- Posted via http://www.ruby-forum.com/.
2006 Mar 09
0
Get width of an element using javascript
I need to get the width of an element into a ruby variable. I have tried using various methods to call a javascript function that''s in the prototype library called getDemensions. I''m just not sure how to perform the call. document.GetElementById(id).offsetWidth works fine with and onClick event, but I need to get the width value at various time during the page load. I also
2006 Feb 19
1
TextCtrl width
What''s the best way to specify the width of a TextCtrl in characters instead of pixels? -- R. Mark Volkmann Partner, Object Computing, Inc.
2005 Sep 01
0
Finding the width of a div inside a div.
Hello. I have this code. [code] <div style="position:relative;width:800px;height:25px;overflow:hidden;border: 1px solid #000;" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"> <div id="iemarquee" style="position:absolute;left:0px;top:0px"><nobr><font face="Arial">Thank