Displaying 20 results from an estimated 50 matches similar to: "Intercept Coefficient in a Model with Orthogonal Polynomials"
2011 Jan 25
0
Multivariate polynomials Howto
Good Evening,
I would like to work with multivariate polynomials (x and y variables).
I know that there is a package called multipol but I am not sure that supports my needs.
I use a function (in reality legendre.polynomials) which creates me the polynomials I want.
For example the following returns
> legendre.polynomials(2)[[2]]
x (first order polynomial)
I would like to calculate the
2007 Feb 12
1
How to get the polynomials out of poly()
Hi Folks!
Im using the function poly to generate orthogonal polynomials, but Id like
to see the actual polynomials so that I could convert it to a polynomial
in my original variable. Is that possible and if so how do I do it?
/E
2006 Mar 27
0
products and polynomials in formulae
Hi
I can do this:
formula = as.factor(outcome) ~ .
in glm and other model building functions. I think there is a way to
get the product of the determinants (that is d1 * d2, d1 * d3, etc) and
also another way to get all the polynomials (that is like poly(d1,2)
would produce for a single determinant).
Can anyone tell me how you write them?
Stephen
[[alternative HTML version deleted]]
2009 Jun 23
0
Fractional Polynomials in Competing Risks setting
Dear All,
I have analysed time to event data for continuous variables by
considering the multivariable fractional polynomial (MFP) model and
comparing this to the untransformed and log transformed model to
determine which transformation, if any, is best. This was possible as
the Cox model was the underlying model. However, I am now at the
situation where the assumption that the competing risks
2008 Jul 01
1
Orthogonal polynomials and poly
Dear All,
I have found in the poly help this sentence:
The orthogonal polynomial is summarized by the coefficients, which can be
used to evaluate it via the three-term recursion given in Kennedy & Gentle
(1980, pp. 343–4), and used in the predict part of the code.
My question: which type of orthogonal polynomials are used by this function?
Hrmite, legendre..
TIA
Giovanni
[[alternative HTML
2009 Feb 08
0
recursive derivative a list of polynomials
Dear list,
This is quite a specific question requiring the package orthopolynom.
This package provides a nice implementation of the Legendre
polynomials, however I need the associated Legendre polynomial which
can be readily expressed in terms of the mth order derivative of the
corresponding Legendre polynomial. (For the curious, I'm trying to
calculate spherical harmonics [*]).
2009 Jun 18
0
Fractional Polynomials (mfp) for Weibull Model
Dear R-users,
I am trying to modify the mfp() function in the mfp package to model
Weibull survival using fractional polynomials approach. However, I keep
getting into trouble when mfp.fit and other "hidden" functions can't be
found. I did find some of them in Splus but it's getting nowhere. I
wonder if any of you can give me some tips on how to modify it or any
experience
2010 Sep 27
0
Bayesian Fractional Polynomials package "bfp" on CRAN
Fractional polynomials ("FPs") are an automatic way of fitting
non-linear, parametric effects. The R-package mfp implements a
frequentist inference approach for FP models. Recently, we have proposed
a Bayesian inference approach for normal FP models, which is based on
the quasi-default hyper-/g/ prior for the regression coefficients [1].
This approach is implemented in the new
2010 Sep 27
0
Bayesian Fractional Polynomials package "bfp" on CRAN
Fractional polynomials ("FPs") are an automatic way of fitting
non-linear, parametric effects. The R-package mfp implements a
frequentist inference approach for FP models. Recently, we have proposed
a Bayesian inference approach for normal FP models, which is based on
the quasi-default hyper-/g/ prior for the regression coefficients [1].
This approach is implemented in the new
2010 Dec 08
2
Legendre polynomials
Hello everyone,
I would like to find out if there are already implemented function for legendre
polynomials. I tried google but returns nothing. How do you suggest me to search
for that?
Regards
Alex
[[alternative HTML version deleted]]
2011 Jan 26
0
Bivariate polynomials in R
Have you ever worked in R with bivariate polynomials? How did you implement simple operators like addition/multiplication?
I found a package called multipol that seems to support these kinds of operators but I do keep receiving error.
Check for example the following snippet of code (you can copy & paste)
require('orthopolynom')
require('polynom')
require('multipol')
2005 Nov 10
2
polynomials transformation
Dear All,
Need some help in polynomials transformation to get the coefficients. I have tried "poly.transform" as applied in S-plus but it does not work.
Thanks in advanced for any helps.
Regards.
Abd. Rahman Kassim (PhD)
Head Forest Ecology Branch
Forest Management & Ecology Program
Forestry and Conservation Division
Forest Research Institute Malaysia
Kepong 52109
Selangor,
2009 Jul 21
1
Elementary Symmetric Polynomials
We are interested in obtaining an efficient function that for a given
vector of length t will output a vector of length t+1 that contains the
associated values of the elementary symmetric polynomials in t
variables. Below is what we have at the moment, but it is a little slow
for our needs. Any suggestions?
Thanks ahead of time for any help you can offer,
Austin H. Jones
Department of
2006 Jan 26
2
Prediction when using orthogonal polynomials in regression
Folks,
I'm doing fine with using orthogonal polynomials in a regression context:
# We will deal with noisy data from the d.g.p. y = sin(x) + e
x <- seq(0, 3.141592654, length.out=20)
y <- sin(x) + 0.1*rnorm(10)
d <- lm(y ~ poly(x, 4))
plot(x, y, type="l"); lines(x, d$fitted.values, col="blue") # Fits great!
all.equal(as.numeric(d$coefficients[1] + m
2006 Mar 29
2
bivariate case in Local Polynomials regression
Hi:
I am using the package "KernSmooth" to do the local polynomial regression. However, it seems the function "locpoly" can only deal with univariate covaraite. I wonder is there any kernel smoothing package in R can deal with bivariate covariates? I also checked the package "lcofit" in which function "lcofit" can indeed deal with bivariate case. The
2002 Oct 09
1
Summary Orthogonal Polynomials
As usual, the R newsgroup set me straight (thanks to Douglas Bates, Robert
Balshaw and Albyn Jones).
There is really no difference between using orthogonal polynomials of the
form:
Linear -3 -1 1 3
Quadratic 1 -1 -1 1
Cubic -1 3 -3 1
Versus
> poly(c(1:4),3)
1 2 3
[1,] -0.6708204 0.5 -0.2236068
[2,] -0.2236068 -0.5 0.6708204
[3,] 0.2236068
2002 Oct 08
2
Orthogonal Polynomials
Looking to the wonderful statistical advice that this group can offer.
In behavioral science applications of stats, we are often introduced to
coefficients for orthogonal polynomials that are nice integers. For
instance, Kirk's experimental design book presents the following
coefficients for p=4:
Linear -3 -1 1 3
Quadratic 1 -1 -1 1
Cubic -1 3 -3 1
In R orthogonal
1997 Aug 15
2
R-beta: Polynomials in lm/glm
R users,
I was a bit surprised to find that when I attempted to add a polynomial
term to a linear model using either lm or glm as could be done in S
resulted in a fit without that term included and without warning(!!), e.g.
> lm(response ~ x + x^2, data).
As far as I can gather, there is no poly() yet in R, and if lm/glm do not
allow functions of variables as their formula arguements, is
2005 Jun 14
2
ordinary polynomial coefficients from orthogonal polynomials?
How can ordinary polynomial coefficients be calculated
from an orthogonal polynomial fit?
I'm trying to do something like find a,b,c,d from
lm(billions ~ a+b*decade+c*decade^2+d*decade^3)
but that gives: "Error in eval(expr, envir, enclos) :
Object "a" not found"
> decade <- c(1950, 1960, 1970, 1980, 1990)
> billions <- c(3.5, 5, 7.5, 13, 40)
> #
2005 Feb 01
3
polynomials REML and ML in nlme
Hello everyone,
I hope this is a fair enough question, but I don’t have access to a copy
of Bates and Pinheiro. It is probably quite obvious but the answer might
be of general interest.
If I fit a fixed effect with an added quadratic term and then do it as
an orthogonal polynomial using maximum likelihood I get the expected
result- they have the same logLik.