search for: nir

Displaying 20 results from an estimated 631 matches for "nir".

Did you mean: dir
2017 Jul 13
3
How to formulate quadratic function with interaction terms for the PLS fitting model?
I have two ideas about it. 1- i) Entering variables in quadratic form is done with the command I (variable ^ 2) - plsr (octane ~ NIR + I (nir ^ 2), ncomp = 10, data = gasTrain, validation = "LOO" You could also use a new variable NIR_sq <- (NIR) ^ 2 ii) To insert a square variable, use syntax I (x ^ 2) - it is very important to insert I before the parentheses. iii) If you want to make the interaction between x and...
2009 Oct 22
1
data frame is killing me! help
Usage data(gasoline) Format A data frame with 60 observations on the following 2 variables. octane a numeric vector. The octane number. NIR a matrix with 401 columns. The NIR spectrum and I see the gasoline data to see below NIR.1686 nm NIR.1688 nm NIR.1690 nm NIR.1692 nm NIR.1694 nm NIR.1696 nm NIR.1698 nm NIR.1700 nm 1 1.242645 1.250789 1.246626 1.250985 1.264189 1.244678 1.245913 1.221135 2 1.189116 1.223242 1.253306 1.282889 1....
2017 Jul 13
0
How to formulate quadratic function with interaction terms for the PLS fitting model?
Below. -- Bert Bert Gunter On Thu, Jul 13, 2017 at 3:07 AM, Luigi Biagini <luigi.biagini at gmail.com> wrote: > I have two ideas about it. > > 1- > i) Entering variables in quadratic form is done with the command I > (variable ^ 2) - > plsr (octane ~ NIR + I (nir ^ 2), ncomp = 10, data = gasTrain, validation = > "LOO" > You could also use a new variable NIR_sq <- (NIR) ^ 2 > > ii) To insert a square variable, use syntax I (x ^ 2) - it is very > important to insert I before the parentheses. True, but better I believe: se...
2012 Oct 07
3
what exactly is the dim of data set yarn in package "pls"?
Hi list, I am looking at the data yarn in package, I don't understand what is dimension of this data set. I did the following: > library(pls) > data(yarn) > dim(yarn) [1] 28 3 > head(yarn) NIR.1 NIR.2 NIR.3 NIR.4 NIR.5 NIR.6 NIR.7 NIR.8 NIR.9 NIR.10 NIR.11 1 3.06630 3.08610 3.10790 3.09720 2.99790 2.82730 2.62330 2.40390 2.19310 2.00580 1.83790 2 3.06750 3.08570 3.09580 3.06920 2.98180 2.84080 2.67600 2.50590 2.35060 2.22300 2.11920 3 3.07500 3.09660 3.09160 3.02880 2...
2017 Jul 16
2
How to formulate quadratic function with interaction terms for the PLS fitting model?
...ter > > > > On Thu, Jul 13, 2017 at 3:07 AM, Luigi Biagini <luigi.biagini at gmail.com> wrote: >> I have two ideas about it. >> >> 1- >> i) Entering variables in quadratic form is done with the command I >> (variable ^ 2) - >> plsr (octane ~ NIR + I (nir ^ 2), ncomp = 10, data = gasTrain, validation = >> "LOO" >> You could also use a new variable NIR_sq <- (NIR) ^ 2 >> >> ii) To insert a square variable, use syntax I (x ^ 2) - it is very >> important to insert I before the parentheses. > >...
2017 Jul 13
2
Quadratic function with interaction terms for the PLS fitting model?
...inear model, I want to fit my data with a quadratic function with interaction terms. But I am not sure how. I will use an example to illustrate my problem: Following the example in the PLS manual: ## Read data data(gasoline) gasTrain <- gasoline[1:50,] ## Perform PLS gas1 <- plsr(octane ~ NIR, ncomp = 10, data = gasTrain, validation = "LOO") where octane ~ NIR is the model that this example is fitting with. NIR is a collective of variables, i.e. NIR spectra consists of 401 diffuse reflectance measurements from 900 to 1700 nm. Instead of fitting with predict.octane[i] = a[0]...
2017 Jul 13
4
Quadratic function with interaction terms for the PLS fitting model?
poly(NIR, degree = 2) will work if NIR is a matrix, not a data.frame. The degree argument apparently *must* be explicitly named if NIR is not a numeric vector. AFAICS, this is unclear or unstated in ?poly. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along a...
2017 Jul 16
0
How to formulate quadratic function with interaction terms for the PLS fitting model?
?? If I haven't misunderstood, they are completely different! 1) NIR must be a matrix, or poly(NIR,...) will fail. 2) Due to the previously identified bug in poly, degree must be explicitly given as poly(NIR, degree =2,raw = TRUE). Now consider the following example: > df <-matrix(runif(60),ncol=3) > y <- runif(20) > mdl1 <-lm(y~df*I(df^2)) >...
2005 Apr 21
1
Strange data frame
Hello, I'm playing around with the PLS package and found a data set (NIR) whose structure I don't understand. Forgive me if this is a stupid question, as I feel like it must be since I am less experienced with aspects of modeling. My problem, the pls NIR data frame does not seem to be a typical data frame as, while it is a list, its variables are not of equal leng...
2017 Jul 13
0
Quadratic function with interaction terms for the PLS fitting model?
...a quadratic function with interaction terms. But I am not sure > how. I will use an example to illustrate my problem: > > Following the example in the PLS manual: > ## Read data > data(gasoline) > gasTrain <- gasoline[1:50,] > ## Perform PLS > gas1 <- plsr(octane ~ NIR, ncomp = 10, data = gasTrain, validation = "LOO") > > where octane ~ NIR is the model that this example is fitting with. > > NIR is a collective of variables, i.e. NIR spectra consists of 401 diffuse > reflectance measurements from 900 to 1700 nm. > > Instead of fi...
2017 Jul 13
0
Quadratic function with interaction terms for the PLS fitting model?
> On Jul 13, 2017, at 10:43 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > > poly(NIR, degree = 2) will work if NIR is a matrix, not a data.frame. > The degree argument apparently *must* be explicitly named if NIR is > not a numeric vector. AFAICS, this is unclear or unstated in ?poly. I still get the same error with: library(pld) data(gasoline) gasTrain <- gasoline[1:50...
2017 Jul 13
0
Quadratic function with interaction terms for the PLS fitting model?
...las." The issue of having to explicitly name arguments that follow the three dots has come up over the years, but I cannot recall where that is documented in the manuals. Regards, Marc > On Jul 13, 2017, at 12:43 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > > poly(NIR, degree = 2) will work if NIR is a matrix, not a data.frame. > The degree argument apparently *must* be explicitly named if NIR is > not a numeric vector. AFAICS, this is unclear or unstated in ?poly. > > > -- Bert > > Bert Gunter > > "The trouble with having an...
2006 Feb 24
2
samba 3.0.21b glibc error
Hi all I have samba 3.0.21b with openldap 2.3.19 on Redhat Enterprise Linux 4 ES with Kernel Version 2.6.9-5. i have allready posted this error in bugzilla, bug 3545 i have created 70 groups, (test1-test70), and created a user "nir" and made "nir" member to these 70 groups. >From Windows system it was the same error ""Remote procedure call was cancelled"" when i am connecting through smbclient, smbclient //testbdc/nir -U nir%nir the following error comes ""session setup failed...
2017 Jul 13
2
Quadratic function with interaction terms for the PLS fitting model?
...itly name arguments that follow the three dots has come up over the years, but I cannot recall where that is documented in the manuals. > > Regards, > > Marc > > > >> On Jul 13, 2017, at 12:43 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: >> >> poly(NIR, degree = 2) will work if NIR is a matrix, not a data.frame. >> The degree argument apparently *must* be explicitly named if NIR is >> not a numeric vector. AFAICS, this is unclear or unstated in ?poly. >> >> >> -- Bert >> >> Bert Gunter >> >>...
2002 Nov 28
2
Trusted domains with Samba 3.0alpha21?
Hi there! I appear to be having problems with trusted domains using 3.0a21. Using Samba as a member server, as user "nirs" on domain "Exanet-il" I am unable to log on to a member server ("snow") who is a member of the "Exanet-qa" domain. The "exanet-qa" is supposed to trust "exanet-il", and it all worked with 2.2 . This is the relevant log snippet I can find: [2...
2015 Nov 13
3
llvm TGSI backend (WIP) questions
On Fri, Nov 13, 2015 at 9:25 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote: > Hello Hans, > > Not to muddy the waters or anything, have you thought about the NIR > integration that Rob was thinking about ? > I'm pretty sure he'll be happy to have extra people helping him out. How would that in any way plug into llvm or nouveau? There's no OpenCL C -> NIR, and there's no NIR -> nv50 IR... -ilia
2005 May 12
1
pls -- crossval vs plsr(..., CV=TRUE)
...up: Mac OS 10.3.9 R: Aqua GUI 1.01, v 2.0.1 I want to get R^2 and Q^2 (LOO and Leave-10-Out) values for each component for my model. I was running into a few problems so I played with the example a little and the results do not match up with the comments in the help pages. $ library(pls) $ data(NIR) $ testing.plsNOCV <- plsr(y ~ X, 6, data = NIR, method="kernelpls", validation="none") $ NIR.plsCV <- plsr(y ~ X, 6, data = NIR, CV=TRUE, method="kernelpls") $ testing.plsCV <- crossval(testing.plsNOCV) $ R2(NIR.plsCV) (Intercept) 1 comps 2 comps...
2017 Jul 13
0
Quadratic function with interaction terms for the PLS fitting model?
...has come up over the years, but I cannot recall where that is documented in the manuals. >> >> Regards, >> >> Marc >> >> >> >>> On Jul 13, 2017, at 12:43 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: >>> >>> poly(NIR, degree = 2) will work if NIR is a matrix, not a data.frame. >>> The degree argument apparently *must* be explicitly named if NIR is >>> not a numeric vector. AFAICS, this is unclear or unstated in ?poly. >>> >>> >>> -- Bert >>> >>>...
2017 Jul 12
0
How to formulate quadratic function with interaction terms for the PLS fitting model?
...inear model, I want to fit my data with a quadratic function with interaction terms. But I am not sure how. I will use an example to illustrate my problem: Following the example in the PLS manual: ## Read data data(gasoline) gasTrain <- gasoline[1:50,] ## Perform PLS gas1 <- plsr(octane ~ NIR, ncomp = 10, data = gasTrain, validation = "LOO") where octane ~ NIR is the model that this example is fitting with. NIR is a collective of variables, i.e. NIR spectra consists of 401 diffuse reflectance measurements from 900 to 1700 nm. Instead of fitting with octane[i] = a[0] * NIR[0...
2011 Jul 21
1
Error: bad index in plotmo functions for MARS model (package earth)
...rror message: > plotmo( mars ) Error: bad index (missing column in x?) I don't no how to workround this... :-( I thanks in advanced by some help! Thanks. Cleber ############### > > ### example code: > library( earth ) > data( gasoline, package='pls' ) > > nir <- gasoline$NIR > dim( nir ) [1] 60 401 > class( nir ) [1] "AsIs" > > oct <- gasoline$octane > > mars <- earth( oct ~ nir, nk=300, nfold=10, degree=3, trace=0 ) > > plotmo( mars ) Error: bad index (missing column in x?) > plotmo( mars, all1=...