Displaying 20 results from an estimated 20000 matches similar to: "Finding out the format of an object"
2004 Aug 06
2
gam --- a new contributed package
I have contributed a "gam" library to CRAN,
which implements "Generalized Additive Models".
This implementation follows closely the description in
the GAM chapter 7 of the "white" book "Statistical Models in S"
(Chambers & Hastie (eds), 1992, Wadsworth), as well as the philosophy
in "Generalized Additive Models" (Hastie & Tibshirani 1990,
2004 Aug 06
2
gam --- a new contributed package
I have contributed a "gam" library to CRAN,
which implements "Generalized Additive Models".
This implementation follows closely the description in
the GAM chapter 7 of the "white" book "Statistical Models in S"
(Chambers & Hastie (eds), 1992, Wadsworth), as well as the philosophy
in "Generalized Additive Models" (Hastie & Tibshirani 1990,
2006 Dec 27
1
Question about predict function
I am working with a non-parametic smoothing operation using a
Generalized Additive Model. It is a bivariate data set. I know how to
do the smooth, and out comes a nice smooth curve.
Now I want to find the value of the smoothed curve for several values
of x (the abscissa). This can be done (please correct me if I am
wrong) by using the predict.gam function. You feed the predict.gam
function a
2008 Aug 03
1
output components of GAM
I would like to request help with the following:
I am trying to use a Generalized Additive Model (gam) to examine the density distribution of fish as a function of latitude and longitude as continuous variables, and year as a categorical variable. The model is written as:
gam.out <- gam(Density ~ s(Lat) + s(Lon) + as.factor(Year))
The fitted model prediction of the link function is
2010 Aug 05
2
compare gam fits
Hi folks,
I originally tried R-SIG-Mixed-Models for this one
(https://stat.ethz.ch/pipermail/r-sig-mixed-models/2010q3/004170.html),
but I think that the final steps to a solution aren't mixed-model
specific, so I thought I'd ask my final questions here.
I used gamm4 to fit a generalized additive mixed model to data from a
AxBxC design, where A is a random effect (human participants in
2010 Dec 14
2
Use generalised additive model to plot curve
Readers,
I have been reading 'the r book' by Crawley and think that the
generalised additive model is appropriate for this problem. The
package 'gam' was installed using the command (as root)
install.package("gam")
...
library(gam)
> library(gam)
Loading required package: splines
Loading required package: akima
> library(mgcv)
This is mgcv 1.3-25
Attaching
2005 Oct 04
1
Rcmdr and scatter3d
Hi folks,
I'd like to use scatter3d (which is in R commander) to plot more than one
dataset in the same graph, each dataset with a different color. The kind
of stuff you would do with "holdon" in Matlab.
I read a recent message that was posted to this list with a similar
problem, but I couldn't understand the reply. Could someone give me one
example? How do you plot subgroups
2011 Jun 20
3
About GAM in R, Need YOUR HELP!
I'm beginner in R! I have a lot of problems on R.....
I have three questions about GAM
1. What is the function of Gaussian distribution in GAM?(if I choose family
is Gaussian)
Is it used in the predictand value (Y)?
2. How to plot a graph the gam function?
For example: y<-gam(a~s(b),family=gaussian (link=log)
,Data)
how to plot x axis is s(b) and y axis is log a???
3. if I use GAM to
2006 Mar 23
1
gam y-axis interpretation
Sorry if this is an obvious question...
I'm estimating a simple binomial generalized additive model using the
gam function in the package mgcv. The model makes sense given my data,
and the predicted values also make sense given what I know about the
data.
However, I'm having trouble interpreting the y-axis of the plot of the
gam object. The y-axis is labeled "s(x,2.52)"
2013 Jul 08
1
error in "predict.gam" used with "bam"
Hello everyone.
I am doing a logistic gam (package mgcv) on a pretty large dataframe
(130.000 cases with 100 variables).
Because of that, the gam is fitted on a random subset of 10000. Now when I
want to predict the values for the rest of the data, I get the following
error:
> gam.basis_alleakti.1.pr=predict(gam.basis_alleakti.1,
+
2008 Mar 31
1
unexpected GAM result - at least for me!
Hi
I am afraid i am not understanding something very fundamental.... and does not matter how much i am looking into the book "Generalized Additive Models" of S. Wood i still don't understand my result.
I am trying to model presence / absence (presence = 1, absence = 0) of a species using some lidar metrics (i have 4 of these). I am using different models and such .... and when i
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
2010 Jan 28
4
plotting additive ns components
I have an additive model of the following form :
zmdlfit <- lm(z~ns(x,df=6)+ns(y,df=6))
I can get the fitted values and plot them against z easily enough, but I
also want to both obtain and plot the two additive components (the estimates
of the two additive terms on the RHS)
I've been looking at manuals and searching on the internet and searching the
archives, but I'm apparently
2012 Oct 10
2
GAM without intercept
Hi everybody,
I am trying to fit a GAM model without intercept using library mgcv.
However, the result has nothing to do with the observed data. In fact
the predicted points are far from the predicted points obtained from the
model with intercept. For example:
#First I generate some simulated data:
library(mgcv)
x<-seq(0,10,length=100)
y<-x^2+rnorm(100)
#then I fit a gam model with
2006 Dec 04
1
package mgcv, command gamm
Hi
I am an engineer and am running the package mgcv and specifically the
command gamm (generalized additive mixed modelling), with random
effects. i have a few queries:
1. When I run the command with 1000/2000 observations, it runs ok.
However, I would like to see the results as in vis.gam command in the
same package, with the 3-d visuals. It appears no such option is
available for gamm in the
2008 Nov 12
1
gam help (really a vegan question)
What does Generalized Cross Validation score mean. I preform and
ordisurf on an ordination (nmds) with an environmental variable. I am
trying to figure out "how well" the environmental varibles
predict/explain the sites placements in species space. Any help would
be greatly appreciated. Any pointers to literature... would be
welcome.
thanks in advance,
--
Stephen Sefick
Research
2004 Oct 15
1
2d approx
Hi,
I am looking for a function that generalizes 'approx' to two (or more)
dimensions. The references on the approx help page point toward splines,
but a) splines is what I am trying to avoid in the first place and b)
splines (except for mgcv splines) seem to be one dimensional.
Here is a more detailed account. Using mgcv:gam I fit an additive model
xy.gam according to the formula y ~
2012 Sep 11
1
plotting smoother function on raw data
Hi,
I have used the mgcv library to generate a simple additive model. I want to
know how to plot the function on the raw data with confidence intervals whan
I have TWO variables in the model. I get it to work with one variable but
not with two. I am on the limit for what I understand in R, so be gentle. I
have read the help file on predict.gam, but did not get any help out of it.
#My model:
2008 Jun 09
1
package mgcv
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20080609/960593f6/attachment.asc>
2006 Oct 27
3
R & gams
At office I have been introduced by another company to new, complex energy
forecasting models using gams as the basic software.
I have been told by the company offering the models that gams is specialised
in dealing with huge, hevy-weight linear and non-linear modelling (see an
example in http://www.gams.com/modtype/index.htm) and they say it is almost
the only option for doing it.
I would