similar to: loop problem for extract coefficients

Displaying 20 results from an estimated 4000 matches similar to: "loop problem for extract coefficients"

2009 Aug 04
2
error in Elastic net
Dear R users,   I am new user for elastic net. I am trying to use elasticnet library. I have marker data with 359 markers and 168 samples, and response is metabolites. I am trying to do regression between a metabolite and markers.  But i am getting the following error:   > en<-enet(marker,as.numeric(vio),lambda=0.5,normalize=FALSE,intercept=TRUE) Error in one %*% x : requires numeric
2013 Mar 14
1
Elasticnet - Cross validation problem
Hello, I am attempting to use elasticnet to classify a number of documents. The features are words. The data is coded into a matrix with each document as a row and each word as a column. The data is binary, with {0,1} indicating the presence of a word. I want to use the cross validation function of elasticnet (cv.enet). However, when the code selects a random subset of the data for a given
2009 May 04
1
Caret package: coeffcients for regression
Dear All, I am using "Caret"package for SVM regression and elastic net regression . I can get the final fiited vs observed values. How can I get the coefficients? Any ideas? Thanks Alex [[alternative HTML version deleted]]
2009 Aug 25
1
Elastic net in R (enet package)
Dear R users, I am using "enet" package in R for applying "elastic net" method. In elastic net, two penalities are applied one is lambda1 for LASSO and lambda2 for ridge ( zou, 2005) penalty. But while running the analysis, I realised tht, I optimised only one lambda. ( even when I looked at the example in R, they used only one penality) So, I am
2008 Aug 21
0
Elastic net loop problem
Dear Members, I am working on Elastic net and using R package for that. I have two matrix. My response is a matrix of size 50X50 and predictor is also in same size. I want to extract only cloumns from the matrix and do the elastic net analysis then store them as a matrix. library(elasticnet) library(lars) XB<-matrix(rnorm(2500,0,1), ncol=50,nrow=50) y1<-matrix(rnorm(2500,0,1),
2009 Jul 12
0
Plotting problem [lars()/elasticnet()]
Dear all, I am using modified LARS algorithm (ref: The Adaptive Lasso and Its Oracle Properties, Zou 2006) for adaptive lasso penalized linear regression. 1. w(j) <- |beta_ols(j)|^(-gamma) gamma>0 and j = 1,...,p 2. define x_new(j) <- x(j)*w(j) 3. apply LARS to solve modified lasso problem out.adalasso <- lars(X_new,y,type="lasso") or enet(X_new,
2007 Nov 29
0
New versions of the caret (3.08) and caretLSF (1.12) packages
New versions of the caret (3.08) and caretLSF (1.12) packages have been released. caret (short for "Classification And REgression Training") aims to simplify the model building process. The package has functions for data splitting, pre-processing and model tuning, as well as other miscellaneous functions. In the new versions: - The elasticnet and the lasso (from the enet package)
2007 Nov 29
0
New versions of the caret (3.08) and caretLSF (1.12) packages
New versions of the caret (3.08) and caretLSF (1.12) packages have been released. caret (short for "Classification And REgression Training") aims to simplify the model building process. The package has functions for data splitting, pre-processing and model tuning, as well as other miscellaneous functions. In the new versions: - The elasticnet and the lasso (from the enet package)
2006 Apr 23
1
help! A quetion about the Elasticnet package in R
Can anybody help me to run the Elasticnet package of R to build some model, i am a freshman to R language , when i use the Elasticnet package to my data, it always reture a error, but i can't settle that problem. I consider if there is any constrant of the data to that package? Can anyone help me to run the elasticnet and check my data as you convenient? I put the data in attachment. Thank
2008 Sep 18
1
caret package: arguments passed to the classification or regression routine
Hi, I am having problems passing arguments to method="gbm" using the train() function. I would like to train gbm using the laplace distribution or the quantile distribution. here is the code I used and the error: gbm.test <- train(x.enet, y.matrix[,7], method="gbm", distribution=list(name="quantile",alpha=0.5), verbose=FALSE,
2011 May 17
4
Multi-Threading?
I have a backup server now restoring 6TB of data to a client machine. This has been going on for four days now, and no sign of getting close to completion. The connexion is Gb enet end-to-end, and is running at only 40Mb/s. It has far more capacity than that. The only limiting factor I can see is on the backup server one core of the CPU is running 100% rsync. Clearly rsync is not
2005 Sep 15
1
Coefficients from LM
Hi everyone, Can anyone tell me if its possibility to extract the coefficients from the lm() command? For instance, imagine that we have the following data set (the number of observations for each company is actually larger than the one showed...): Company Y X1 X2 1 y_1 x1_1 x2_1 1 y_2 x1_2 x2_2 1 y_3 x1_3 x2_3 (...) 2 y_4 x1_4 x2_4 2 y_5 x1_5 x2_5 2 y_6 x1_6 x2_6 (...) n y_n x1_n x2_n n
2005 Jul 18
2
Vizufon Video Phone
So I won one of these on ebay, in the auction it says it has the RJ45 ports on it but it doesn't :( If I were to get an analog adapter would I be able to use the video portion of this or am I SOL? The auction requires me to pay for shipping back, so I end up losing money unless I sell it on my own. Or has anyone hacked these to work on enet?
2011 Feb 03
1
glmnet with binary predictors
Hi Everybody! I must start with a declaration that I am a sparse user of R. I am creating a credit scorecard using a dataset which has a variable depicting actual credit history (good/bad) and 41 other variables of yes/no type. The procedure I am asked to follow is to use a penalized logistic procedure for variable selection. I have located the package "glmnet" which gives the complete
2005 Mar 22
9
am i the only one with this problem?
(clean install) >gem install rails Attempting local installation of ''rails'' Local gem file not found: rails*.gem Attempting remote installation of ''rails'' Install required dependency activesupport? [Yn] y Install required dependency activerecord? [Yn] y Install required dependency actionpack? [Yn] y Install required dependency actionmailer? [Yn] y
2007 Jul 26
5
ROC curve in R
Hi, I need to build ROC curve in R, can you please provide data steps / code or guide me through it. Thanks and Regards Rithesh M Mohan [[alternative HTML version deleted]]
2008 Apr 09
3
Problem with Dovecot Delivery Agent, Extra "From" lines and mbox
When an mbox email contains a line that looks like a "Mail" header it should be quoted (per RFC 4155). Sendmail's delivery agent does this, as does Procmail delivery agent. Dovecot deliver does not do this. Example line, with ">" quote: >From hokan at hokan.org Thu Mar 8 17:28:01 2008 When reading email (IMAP) that contains such an unquoted line, the email
2009 Jun 23
1
plotting ROC from coefficient in the model
Hi everyone. Probably this is statistical question rather than an R, but it involves packages from R I am asking here since I am unable to find an answer. In the parametric modeling packages like glmnet, lasso etc......., we are able to obtain the coeffcients that have entered the model. for eg in glmnet if we are working on a dataset containing 15 variables the coeffecient parameters output
2017 Aug 01
1
How automatic Y on install y/n prompts?
You are right, maintainer does keep a list of model's packages. So how do I use a variable instead of $adaboost$? getModelInfo()$adaboost$library Also, server not found: http://rwiki.sciviews.org/doku.php?id=getting-started:reference-cards:getting-help On Tue, Aug 1, 2017 at 11:46 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > I have provided you all the
2009 Apr 02
0
Sparse PCA problem
Dear R user, I want to do sparse principal component analysis (spca). I am using elastic net package for this and spca() and the code is following from the example. My question is How can I decide the *K =? *and *para=c(7,4,4,1,1,1)) . So, here k=6 i.e the no of Principal Components. and each pcs say , * ** pc1 number of non zero loading is 7 pc2 number of non zero loading