Re: [R] r kernlab find best cost parameter automatically

2019-05-26 Thread Luigi Marongiu
That giving the best trade between sensitivity and specificity. On Sat, May 25, 2019 at 12:47 AM Abby Spurdle wrote: > > > Would be possible to automate the selection of the best value? > > Can you define "best", precisely? > > -- Best regards, Luigi _

Re: [R] kableExtra: How to change kable font family

2019-05-26 Thread Jeff Newmiller
Perhaps... ?cell_spec On May 26, 2019 11:13:04 AM PDT, Paul Smith wrote: >Dear All, > >Is it possible to change the font family to typewriter of the tables >generated by kable from kableExtra package? > >Thanks in advance, > >Paul > >__ >R-help@r-projec

[R] kableExtra: How to change kable font family

2019-05-26 Thread Paul Smith
Dear All, Is it possible to change the font family to typewriter of the tables generated by kable from kableExtra package? Thanks in advance, Paul __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listin

Re: [R] Increasing number of observations worsen the regression model

2019-05-26 Thread R. Mark Sharp via R-help
Raffa, I ran this on a MacOS machine and got what you expected. I added a call to sessionInfo() for your information. > rm(list=ls()) > N = 3 > xvar <- runif(N, -10, 10) > e <- rnorm(N, mean=0, sd=1) > yvar <- 1 + 2*xvar + e > plot(xvar,yvar) > lmMod <- lm(yvar~xvar) > print(summary(lmMod))

Re: [R] Increasing number of observations worsen the regression model

2019-05-26 Thread Fox, John
Dear Raffaele, Using your code, with one modification -- setting the seed for R's random number generator to make the result reproducible -- I get: > set.seed(12345) . . . > lmMod <- lm(yvar~xvar) > print(summary(lmMod)) Call: lm(formula = yvar ~ xvar) Residuals: Min 1Q Median

[R] Increasing number of observations worsen the regression model

2019-05-26 Thread Raffa
I have the following code: ``` rm(list=ls()) N = 3 xvar <- runif(N, -10, 10) e <- rnorm(N, mean=0, sd=1) yvar <- 1 + 2*xvar + e plot(xvar,yvar) lmMod <- lm(yvar~xvar) print(summary(lmMod)) domain <- seq(min(xvar), max(xvar))    # define a vector of x values to feed into model lines(domain, p

[R] Error in unique() man page

2019-05-26 Thread Juan Gomez
Function unique() man page states that: "The array method calculates for each element of the dimension specified by MARGIN if the remaining dimensions are identical to those for an earlier element (in row-major order). " I think that the last precission: "(in row-major order)" is meaningless here,