Displaying 20 results from an estimated 2000 matches similar to: "fitted values with locfit"
2012 Mar 17
0
multivariate locfit regression
Dear memberships,
I'm trying to estimate the following multivariate local regression model using the "locfit" package:
BMI=m1(RCC)+m2(WCC)
where (m1) and (m2) are unknown smooth functions.
My problem is that once I get the regression done I cannot get the fitted values of each of this smooth functions (m1) and (m2). My program is the following:
library(locfit)
2011 Aug 25
2
How to store the output of a loop into a matrix??
Hello,
I want to create a matrix of N random numbers with a uniform distributions. Later, I want to repeat T times each row of this matrix. For this I do the following loop:
N<-45
T<-10
n<-N*T
a<-matrix(runif(N,min=-1,max=1),nr=N)
mymat<-matrix(rep(NA,n),nr=n,nc=1)
for(i in i:N){
b<-rep(a[i,],T)
mymat[i,]<-b
}
Mi problem is that with this loop I can see the output of the
2011 Aug 25
2
Create two uniformly random variables correlated
Hello,
I want to create two random variables (x1,x2) both with uniform distribution bounded by (-1) and (1) that has a correlation of 0.6 between them.
Does somebody know how I can do it? For normal random variables I known how to implement it with the rmvnorm command but I don't know how to do it with variables uniformly distributed.
Thanks a lot.
Alexandra
[[alternative HTML
2009 Jan 12
2
problems with download.file() from ftp?
Dear list,
I am trying to download a text file from an ftp site using download.file().
I used the following code:
url <- "ftp://ftp.wcc.nrcs.usda.gov/data/snow/snow_course/table/history/idaho/13e19.txt"
dest <- "c:/test/downloadtest.txt"
download.file(url, dest)
I get this error message, indicating that R is unable to open the connection:
trying URL
2005 Nov 09
2
problem with Running Locfit
Dear R users,
i am using locfit package developed by loader in R software, my problem is that as i am doing independont forecast using locfit object , i am able to do independont forecast for more than one years simultaniously. But when i am doing one year forecast(single) this code is giving following error...
"Warning message:
'newdata' had 1 rows but variable(s) found have 24
2009 Jun 26
1
The Claw Density and LOCFIT
I am trying to reproduce Figure 10.5 of Loader's book: Local Regression and Likelihood. The code provided in the book does not seem to work.
I have managed (a while ago) to get the accompanied R-code for the figures in the book (file called lffigs.R) from somewhere - cannot find it on the web anymore. The code in the .R script file does not work either.
Could anybody please direct me in
2005 Apr 14
1
LOCFIT: What's it doing?
Dear R-users,
One of the main reasons I moved from GAUSS to R (as an econometrician) was because of the existence of the library LOCFIT for local polynomial regression. While doing some checking between my former `GAUSS code' and my new `R code', I came to realize LOCFIT is not quite doing what I want. I wrote the following example script:
2003 Mar 25
2
locfit troubles
Dear R experts,
We've been playing with the locfit package and are experiencing a
problem I am hoping for some help on.
We have a dataset of 13k points, one dimension of which is "judgment",
either 0 or 1, and the other "score", an arbitrary scalar (in this case
it's between .65 and .85). We use
2010 Jan 25
1
locfit questions/problems
Hi,
I'm trying to work through the examples and code in Loader's
LOCAL REGRESSION AND LIKELIHOOD, and have run into a problem
with the code for one sided smoothing and change point analysis
(p. 110-112).
The code, after loading locfit:
midp<-(1945:1988)+0.5
fitl<-locfit(thickness~left(year), data=penny, alpha=c(0,10), deg=1, ev=midp)
2009 Jan 19
3
download/retain text file structure with RCurl/getURL()
Dear list,
I'm trying to download a text file directly from the internet using the RCurl package and the command getURL. Duncan Lang graciously helped me solve the first step in this problem using the following command:
#################
txtfile <- getURL('ftp://ftp.wcc.nrcs.usda.gov/data/snow/snow_course/table/history/idaho/13e19.txt',
ftp.use.epsv = FALSE)
#################
2006 Oct 18
2
Adding locfit confidence intervals in trelis xyplot
Dear all,
I am trying to include confidence intervals in a xyplot.
This is what I am doing:
xyplot(x ~ y|z, alpha = 1,band = "global",panel = panel.locfit)
(more specifically, in my case x is a binary response from a logistic
regression model)
The output plot was fine but it did not include the confidence intervals
Anyone knows how to do it? (xYplot did not work either)
many thanks
2002 Mar 29
2
How to get the datapoints of an density estimation with locfit?
Hello!!!
I'm just a beginner of R.
I work with locfit to get the density from an numeric vector. It looks good when I plot the graph, but I need the output data of locfit.
For example I need somthing like that (only integer values for the input):
numeric vector (input of locfit) density (output of locfit)
1 0.05....
2 0.04..
3 0.01
...
Thank you for your help and your time.
2010 Feb 25
1
locfit: max number of predictors?
Hi All,
In another thread Andy Liaw, who CRAN lists as locfit maintainer; said:
<quote>
From: "Liaw, Andy" <andy_liaw at merck.com>
To: "Guy Green" <guygreen at netvigator.com>; <r-help at r-project.org>
Subject: Re: Alternatives to linear regression with multiple variables
Date: 22 February 2010 17:50
You can try the locfit package, which I believe
2004 Nov 03
1
Kernel Density estimation - locfit package
Hello there,
I am presently using the locfit package in "R" and would appreciate some
help here. Could anyone tell me tell me how I can obtain the various
components (x and y values)of the density estimation after using the "R"
command "locfit"? For example, with the command
"fhat<-density(somename)" I can obtain the x and y values by simply
calling
2004 Apr 05
1
GAM with Locfit components
Hi,
I?m trying to combine the Locfit Package with the Mgcv package (to use
Generalized Additive Models with Locfit components). I read the book
written by Clive Loader where it?s said that, for the S language, you just
have to "load" the locfit package using the command :
Library(locfit, first="T")
in order to use locfit components in an additive model.
But I can?t. I guess
1998 Mar 17
0
R-beta: locfit -> CRAN
The locfit library is now available through CRAN, in the
Contributed R Code directory. Locfit fits local regression,
likelihood and density estimation models, in the spirit
of loess but with many additional features. To install,
unpack the locfit_19980309.tar.gz file, and
R INSTALL locfit
Most of the functionality and examples on my home page
http://cm.bell-labs.com/stat/project/locfit/ should
1998 Mar 17
0
R-beta: locfit -> CRAN
The locfit library is now available through CRAN, in the
Contributed R Code directory. Locfit fits local regression,
likelihood and density estimation models, in the spirit
of loess but with many additional features. To install,
unpack the locfit_19980309.tar.gz file, and
R INSTALL locfit
Most of the functionality and examples on my home page
http://cm.bell-labs.com/stat/project/locfit/ should
2000 Sep 05
2
still problem with installation of locfit on DEC alphaev56-dec-osf4.0d
Dear all,
after building the R-1.1.1 from source on our alpha everything
seems to work, but locfit still hangs...
I installed locfit with install.packages(...),
the installation process went fine, but calling locfit() blocks the
R environment.
Has anybody got an idea howto get to the roots of this problem?
Thanks
M. Eger
--
+-------------------------------------------------------
| Marcus
2000 Aug 31
2
Problem with R INSTALL locfit on DEC alphaev56-dec-osf4.0d
Dear all,
usually I work under linux, but I tried to install R-1.1.1 on
our alpha's which worked well.
However, installation of the locfit package produced the following
warning:
---------%<----------------
Installing package `locfit' ...
libs
/vol/bin/gcc -I/vol/math/R/include -I/usr/local/include -mieee -g
-O2 -c S_e
nter.c -o S_enter.o
S_enter.c: In function `basis':
2009 Dec 08
1
coefficients of each local polynomial from locfit
Hi list,
This was asked a couple of years ago but I can't find a resolution. Is
there any way to get the coefficients from one of the local polynomial fits
in locfit. I realize that locfit only constructs polynomials at a handful
of intelligently selected points and uses interpolation to predict any other
points. I would like to know the terms of the polynomials at these points.
It seems