Displaying 20 results from an estimated 9000 matches similar to: "Does the smooth terms in GAM have a functional form?"
2007 Apr 15
1
Use estimated non-parametric model for sensitivity analysis
Dear all,
I fitted a non-parametric model using GAM function in R. i.e.,
gam(y~s(x1)+s(x2)) #where s() is the smooth function
Then I obtained the coefficients(a and b) for the non-parametric terms. i.e.,
y=a*s(x1)+b*s(x2)
Now if I want to use this estimated model to do optimization or sensitivity analysis, I am not sure how to incorporate the smooth function since s() may not
2007 Apr 02
2
How to choose the df when using GAM function?
Dear all,
When using GAM function in R, we need to specify the degree of freedom for the smooth function (i.e. s=(x, df=#)). I am wondering how to choose an appropriate df.
Thanks a lot,
Jin
----
North Carolina State University
USA
---------------------------------
[[alternative HTML version deleted]]
2009 May 05
1
A question about using “by” in GAM model fitting of interaction between smooth terms and factor
I am a little bit confusing about the following help message on how to fit a
GAM model with interaction between factor and smooth terms from
http://rss.acs.unt.edu/Rdoc/library/mgcv/html/gam.models.html:
?Sometimes models of the form:
E(y)=b0+f(x)z
need to be estimated (where f is a smooth function, as usual.) The
appropriate formula is:
y~z+s(x,by=z)
- the by argument ensures that the smooth
2007 Apr 13
1
How can i add multiple callerids to an inbound route?
Hi,
I have configured the below things:
Extensions
Trunk
Outbound route
Inbound route
IVR
Ring group
If anybody call to my DID number, my IVR is responded. After that, if he press 1, then Ring group will be activated. All are working fine.
My Problem:
I want to avoid IVR for some phone numbers depends on their called IDs. If my common users will call to my DID
2007 Apr 19
5
Polycom IP 501 is displaying wrong time
Hi,
This is Chandra. I have Polycom IP 501 phone. Its showing wrong time on the display screen. How can I set the "New York" time? What value I have to give to GMT offset value?
Look forward to your response. Thank you.
Regards,
Chandra.
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
2007 Apr 17
3
DomU Kernel Mapping
Where is the code that maps the kernel of a DomU into memory?
i.e, when you do a xm create <config file>
what code is called to actually map the kernel into memory?
Is it a python script or is it re-directed to Dom0 to do?
Thanks.
-Brian
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
2007 Apr 17
3
DomU Kernel Mapping
Where is the code that maps the kernel of a DomU into memory?
i.e, when you do a xm create <config file>
what code is called to actually map the kernel into memory?
Is it a python script or is it re-directed to Dom0 to do?
Thanks.
-Brian
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
2007 Apr 26
1
libcrypto.so: undefined reference to `utc_time'
I am trying to cross compile openssh for arm5b-jungo-gnu-gcc,,
and also using openssl and zlib from same compiler arm5b-jungo-gnu-gcc
but i am getting following error,,,
/usr/local/openrg/armv5b-jungo-linux-gnu/bin/armv5b-jungo-linux-gnu-ld: warning: cannot find entry symbol _start; defaulting to 0000b9c8
/usr/local/openrg/armv5b-jungo-linux-gnu/bin/../armv5b-jungo-linux-gnu/lib/libcrypto.so:
2006 Dec 04
1
GAM model selection and dropping terms based on GCV
Hello,
I have a question regarding model selection and dropping of terms for GAMs fitted with package mgcv. I am following the approach suggested in Wood (2001), Wood and Augustin (2002).
I fitted a saturated model, and I find from the plots that for two of the covariates,
1. The confidence interval includes 0 almost everywhere
2. The degrees of freedom are NOT close to 1
3. The partial
2007 Apr 19
2
error: *** zlib missing
I am very new to linux and openSSH ,, i am trying to compile openssh for jungo openrg IXP45. but while configuring i am getting following error,,
hecking for libgen.h... yes
checking for getspnam... yes
checking for library containing basename... none required
checking for deflate in -lz... no
configure: error: *** zlib missing - please install first or check config.log ***
if anybody will me
2007 Apr 16
2
basic include files for speex
Hi Jean,
I'm trying to compile the encode.c and or the test programs that are on the site and in libspeex respectively. however, i keep getting some undefined references to the basic speex functions(see compiler log). a query on google showed that this question was posed but no answer given. I traced them down to speex.c. however when i build my project i still get these undefined referneces.
2008 May 06
1
mgcv::gam shrinkage of smooths
In Dr. Wood's book on GAM, he suggests in section 4.1.6 that it might be
useful to shrink a single smooth by adding S=S+epsilon*I to the penalty
matrix S. The context was the need to be able to shrink the term to zero if
appropriate. I'd like to do this in order to shrink the coefficients towards
zero (irrespective of the penalty for "wiggliness") - but not necessarily
all the
2009 Oct 13
2
How to choose a proper smoothing spline in GAM of mgcv package?
Hi, there,
I have 5 datasets. I would like to choose a basis spline with same knots in
GAM function in order to obtain same basis function for 5 datasets.
Moreover, the basis spline is used to for an interaction of two covarites.
I used "cr" in one covariate, but it can only smooth w.r.t 1 covariate. Can
anyone give me some suggestion about how to choose a proper smoothing spline
2007 Oct 08
2
variance explained by each term in a GAM
Hello fellow R's,
I do apologize if this is a basic question. I'm doing some GAMs using the mgcv package, and I am wondering what is the most appropriate way to determine how much of the variability in the dependent variable is explained by each term in the model. The information provided by summary.gam() relates to the significance of each term (F, p-value) and to the
2009 Feb 25
1
monotonic GAM with more than one term
Hi,
Does anyone know how to fit a GAM where one or more smooth terms are
constrained to be monotonic, in the presence of "by" variables or
other terms? I looked at the example in ?pcls but so far have not been
able to adapt it to the case where there is more than one predictor.
For example,
require(mgcv)
set.seed(0)
n<-100
# Generate data from a monotonic truth.
2007 Jun 22
1
two basic question regarding model selection in GAM
Qusetion #1
*********
Model selection in GAM can be done by using:
1. step.gam {gam} : A directional stepwise search
2. gam {mgcv} : Smoothness estimation using GCV or UBRE/AIC criterion
Suppose my model starts with a additive model (linear part + spline part).
Using gam() {mgcv} i got estimated degrees of freedom(edf) for the smoothing
splines. Now I want to use the functional form of my model
2005 Sep 23
1
Smooth terms significance in GAM models
hi,
i'm using gam() function from package mgcv with default option (edf
estimated by GCV).
>G=gam(y ~ s(x0, k = 5) + s(x1) + s(x2, k = 3))
>SG=summary(G)
Formula:
y ~ +s(x0, k = 5) + s(x1) + s(x2, k = 3)
Parametric coefficients:
Estimate std. err. t ratio Pr(>|t|)
(Intercept) 3.462e+07 1.965e+05 176.2 < 2.22e-16
Approximate significance of smooth
2007 Apr 30
1
TDM400P and Junghanns QuadBRI issue
Hi List,
I'm setting up a system with one TDM400P (2*FXO + 2 * FXS) and one Junghanns QuadBRI
on a Fedora Core 6 (Kernel 2.6.20-1.2944.fc6).
I'm using the bristuff-0.3.0-PRE-1y-e kit. It download zaptel-1.2.16, libpri-1.2.4
and asterisk-1.2.17
When it's the time for ztcfg to do its job it complains with
<ZT_SPANCONFIG failed on span 2: No such device or address (6)>
2008 Jun 11
1
mgcv::gam error message for predict.gam
Sometimes, for specific models, I get this error from predict.gam in library
mgcv:
Error in complete.cases(object) : negative length vectors are not allowed
Here's an example:
model.calibrate <-
gam(meansalesw ~ s(tscore,bs="cs",k=4),
data=toplot,
weights=weight,
gam.method="perf.magic")
> test <- predict(model.calibrate,newdata)
Error in
2011 Nov 10
1
Sum of the deviance explained by each term in a gam model does not equal to the deviance explained by the full model.
Dear R users,
I read your methods of extracting the variance explained by each
predictor in different places. My question is: using the method you
suggested, the sum of the deviance explained by all terms is not equal to
the deviance explained by the full model. Could you tell me what caused
such problem?
> set.seed(0)
> n<-400
> x1 <- runif(n, 0, 1)
> ## to see problem