Re: [R] Extract lines from pdf files

2019-11-19 Thread Jeff Newmiller
Please don't spam the mailing list. Especially with HTML format messages. See the Posting Guide. PDF is designed to present data graphically. It is literally possible to place every character in the page in random order and still achieve this visual readability while practically making it nearl

[R] Extract lines from pdf files

2019-11-19 Thread Thomas Subia via R-help
Colleagues,   I can extract specific data from lines in a pdf using:   library(pdftools) pdf_text("10619.pdf") txt <- pdf_text(".pdf") write.table(txt,file="mydata.txt") con <- file('mydata.txt') open(con) serial <- read.table(con,skip=5,nrow=1) #Extract[3]flatness <- read.table(con,sk

Re: [R] Separating Output of Modularity Analyses

2019-11-19 Thread Jim Lemon
Hi Chelsea, A brute force method, but I think it does what you want: # create a sequence of integers to make checking easy null.cz<-1:68 separate_interdigitated_vectors<-function(x,nv=2,vlen=17) { xlen<-length(x) starts<-seq(1,xlen-vlen*nv+1,by=vlen*nv) cat(xlen,starts,"\n") for(start in start

[R] Extracting specific lines from pdfs

2019-11-19 Thread Thomas Subia
Colleagues, I can extract specific data from lines in a pdf using: library(pdftools) pdf_text("10619.pdf") txt <- pdf_text(".pdf") write.table(txt,file="mydata.txt") con <- file('mydata.txt') open(con) serial <- read.table(con,skip=5,nrow=1) #Extract[3] flatness <- read.table(con,skip=11,nrow=1)#

Re: [R] Cross validation multivariate kernel regression

2019-11-19 Thread Abby Spurdle
> I am planning to implement Nadaraya-Watson regression model, with I'm not sure what you mean by "implement". Write a package, fit a model, or something else... Reading your whole post, I get the impression you want mid-level "building blocks", so you customize the model fitting process, in some

Re: [R] Why does nlme::getVarCov not Work for nlme Models?

2019-11-19 Thread David Winsemius
On 11/19/19 8:59 AM, b...@denney.ws wrote: Hi Bert, If the statistical reason is off topic here, do you have a suggestion of a better forum? There are two forums of the top of my head. The first should have been obvious if you had reviewed the mailing lists under the r-project.org do

Re: [R] Why does nlme::getVarCov not Work for nlme Models?

2019-11-19 Thread bill
Hi Bert, If the statistical reason is off topic here, do you have a suggestion of a better forum? Thanks, Bill From: Bert Gunter Sent: Tuesday, November 19, 2019 11:52 AM To: b...@denney.ws Cc: R-help Subject: Re: [R] Why does nlme::getVarCov not Work for nlme Models? 1. The

Re: [R] Why does nlme::getVarCov not Work for nlme Models?

2019-11-19 Thread Bert Gunter
1. The Help page for getVarCov says that it supports lme and gls models only. So not nonlinear models. As to why it does not, that is off topic here, as that is a statistical question. 2. As this is longstanding, it almost certainly has good reason for being there, so I would seriously doubt it. B

[R] Separating Output of Modularity Analyses

2019-11-19 Thread Chelsea Hinton
Hello, I am working to evaluate the structure of shrub-pollinator networks using modularity analyses. I have generated 100 null model networks to test for modularity and extract c and z scores for each (measuring statistical significance in real networks). However, the output of the "czvalues" for

Re: [R] pairs.panels ()

2019-11-19 Thread Sarah Goslee
Hi, nameless querent, It's important to tell us where you got your function from. In this case, I'm assuming that you are using pairs.panels() from the psych package. Looking at the help for that function, I see, in the arguments section: … other options for pairs Which means that if you don't

[R] pairs.panels ()

2019-11-19 Thread Medic
Point me, please, the parameter for changing the font size for the variable name in pairs.panels () __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://w

[R] Fractional deviance for lambda in cv.glmnet for non-negative Lasso

2019-11-19 Thread Pierre Maho
Hi, I want to solve the following optimisation problem: [image: \hat{\beta} = \arg \min_{\beta \geq 0} \| y-A\beta \|_2^2 + \lambda \|\beta\|_1] For that, I am using glmnet package (cv.glmnet for finding 𝜆 and lower.limits = 0 to impose non-negativity). I would like to modify the fdev parameter