search for: spos

Displaying 3 results from an estimated 3 matches for "spos".

Did you mean: pos
2008 May 07
1
use of sequence on ridge regression
...e use of this option when variables are highly linear correlated. I'm running a model where the variables HtShoes and Ht have high VIF values. My program is written below, but I'm not sure about the correct way of using the sequence option: library (faraway) data (seatpos) attach (seatpos) spos.mod <- lm(hipcenter ~ .,seatpos) summary (spos.mod) library(MASS) lm.ridge(hipcenter ~ .,seatpos) plot(lm.ridge(hipcenter ~ .,seatpos, lambda = seq(0,0.1,0.001))) select(lm.ridge(hipcenter ~ ., seatpos,lambda = seq(0,0.1,0.001))) Any advice will be appreaciated. Rodrigo B.
2011 Feb 28
1
Creating new variables. How do you get them into a data frame?
Hi I'm an R newbie. I can't seem to add new variables to data frames. Here are the stages (1) I import the data using read.csv. (2) I fix it using fix(data) (3) I create a new variable using spos<-tagPOS(stim,language="en",model=NULL,tagdict=NULL). (tagPOS is a function in the OpenNLP toolkit, which tags a string for part of speech. "stim" is a variable in the current data frame) What happens is that the new variable, "spos" is saved as an object, but not...
2002 Nov 08
0
Polar plot, circular plot (angular data): II
...bels = t.lab, ...) else return(NULL) }, angular.tick.marks = function (len = 0.05, ...) { if (len != 0) { if (!is.null(pp$text.lab) || is.numeric(pp$num.lab)) dd <- pp$labDir2 else dd <- pp$rDir fpos <- pp$cartesian(max(pp$rpretty), dd) spos <- pp$cartesian((1 + len) * max(pp$rpretty), dd) segments(fpos[, 1], fpos[, 2], spos[, 1], spos[, 2], ...) } else return(NULL) }, plot.lines = function (...) points(pp$cartesian(pp$r, pp$fit.rad2(pp$theta)), ...), plot.polygon = function (...) polygon(pp$cartesian(...