[R] How do I use R to build a dictionary of proper nouns?

2017-05-04 Thread θ "
�� �� ���c�� OneDrive �n��Ҫ�zҕ�nՈ�B�Y�� [https://r1.res.office365.com/owa/prem/images/dc-png_20.png] 2.corpus_patent text.PNG

[R] How to run Linear mixed model for an experiment design with species nested in an random block experiment

2017-05-04 Thread Faming Wang
Dear all, I have conducted an N and P field addition experiment in a tropical forest, and we used a random block design in this experiment, briefly, we had four plots in each block (Control, +N, +P, and +NP), and five blocks located in the forest randomly. Totally we have 20 plots, with four t

[R] Non-Linear Regression Help

2017-05-04 Thread Zachary Shadomy
I am having some errors come up in my first section of code. I have no issue in plotting the points. Is there an easier method for creating a non-linear regression using C*(x+a)^n. The .txt file is named stage_discharge with the two variables being stage and discharge. The data is a relatively smal

[R] I cannot run R.EXE or RSCRIPT.EXE

2017-05-04 Thread Dominik Szewczyk
I cannot run R.EXE or RSCRIPT.EXE. It produces this error: 'C:\Program' is not recognized as an internal or external command, operable program or batch file. I have attempted to put quotes around the full path including the executable and also running the exectuable from within the path itself

[R] lmomRFA: update "regfit" object

2017-05-04 Thread Douglas Hultstrand
Hello, I am creating error bounds based on simulated data across multiple data durations. I was wondering if there is a way to update an object class from "regfit" from lmomRFA package? The reason is for consistency across durations. Example below: library(lmom); library(lmomRFA) data <- c

Re: [R] 3D equal-spaced closed mesh

2017-05-04 Thread Bert Gunter
The r-sig-geo list and corresponding cran task view *might* be a better place to post and/look. Bert On May 4, 2017 12:51 PM, "Eric Krantz" wrote: > I have sonar image which is basically a point cloud (x, y, z) of an > irregular underground cone-shaped structure. I am trying to create either >

[R] 3D equal-spaced closed mesh

2017-05-04 Thread Eric Krantz
I have sonar image which is basically a point cloud (x, y, z) of an irregular underground cone-shaped structure. I am trying to create either (1) a closed 3D mesh with "equally spaced" mesh grid, or (2) a smooth closed surface, for instance by calculating connected localized regression surfaces.

Re: [R] How to extract values after using metabin from the package meta?

2017-05-04 Thread Michael Dewey
Try using str(the_name_of_your_object) and see if you get any clues as to where it is putting them. Sorry I cannot help further but I do not use meta myself. On 04/05/2017 15:29, jan Pierre wrote: Hello, I’m trying to do a meta-analysis with R. I tried to use the function metabin from the pac

Re: [R] Sparse (dgCMatrix) Matrix row-wise normalization

2017-05-04 Thread Murat Tasan
Thanks, Stefan, I'll take a look! Also, I figured out another solution (~15 minutes after posting :-/): ``` row_normalized_P <- Matrix::Diagonal(x = 1 / sqrt(Matrix::rowSums(P^2))) %*% P ``` Cheers, -m On Thu, May 4, 2017 at 12:23 PM, Stefan Evert wrote: > > > On 4 May 2017, at 20:13, Murat

Re: [R] Sparse (dgCMatrix) Matrix row-wise normalization

2017-05-04 Thread Stefan Evert
> On 4 May 2017, at 20:13, Murat Tasan wrote: > > The only semi-efficient method I've found around this is to `apply` across > rows (more accurately through blocks of rows coerced into dense > sub-matrices of P), but I'd like to try to remove the looping logic from my > codebase if I can, and I'

[R] Sparse (dgCMatrix) Matrix row-wise normalization

2017-05-04 Thread Murat Tasan
Hi all --- I have a large sparse matrix, call it P: ``` > str(P) Formal class 'dgCMatrix' [package "Matrix"] with 6 slots ..@ i : int [1:7868093] 4221 6098 8780 10313 11102 14243 20570 22145 24468 24977 ... ..@ p : int [1:7357] 0 0 269 388 692 2434 3662 4179 4205 4256 ... ..

Re: [R] Non standard Beta Distribution

2017-05-04 Thread David Winsemius
> On May 3, 2017, at 11:43 PM, Collins Ochieng Onyanga > wrote: > > Hi, > > I would like to fit a non standard beta distribution with the two scale > parameters and lower and upper boundaries to data like the one shown without > normalizing it. > [1] 37.50 46.79 48.30 46.04 43.40 39.25 38.

Re: [R] adding counter to df by group

2017-05-04 Thread Davide Piffer
Thanks David! I tried this but didn't work. Got a bunch of warning messages: Warning messages: 1: In `[<-.factor`(`*tmp*`, i, value = 1:52) : On 4 May 2017 at 02:23, David Winsemius wrote: > >> On May 3, 2017, at 11:24 AM, Davide Piffer wrote: >> > > You should look at this result more closely.

[R] How to extract values after using metabin from the package meta?

2017-05-04 Thread jan Pierre
Hello, I’m trying to do a meta-analysis with R. I tried to use the function metabin from the package meta : data <- data.frame(matrix(rnorm(40,25), nrow=17, ncol=8)) centres<-c("SVP","NANTES","STRASBOURG","GRENOBLE","ANGERS","TOULON","MARSEILLE","COLMAR","BORDEAUX","RENNES","VALENCE","CAEN","NAN

Re: [R] Non-standard Beta distribution

2017-05-04 Thread David L Carlson
You could try installing package ExtDist and using distribution Beta_ab in that package. - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.o

Re: [R] Perfect prediction of AR1 series using package dlm, posted on stack exchange

2017-05-04 Thread peter dalgaard
I am not an expert on dlm, but it seems to me that you are getting perfect _filtering_ not _prediction_. If you cast an AR model as a state space model, there is no measurement error on the state values, hence the conditional distribution of theta_t given y_t is just the point value of y_t... -

[R] Perfect prediction of AR1 series using package dlm, posted on stack exchange

2017-05-04 Thread Ashim Kapoor
Dear all, I have made a dlm model,where I am getting a perfect prediction. Here is a link to the output: http://pasteboard.co/9IxVQwjm6.png The query and code is on: https://stats.stackexchange.com/questions/276449/perfect-prediction-in-case-of-a-univariate-ar1-model-using-dlm Can someone her

[R] Non-standard Beta distribution

2017-05-04 Thread Collins Ochieng Onyanga
Hi, I would like to fit a non standard beta distribution with the two scale parameters and lower and upper boundaries to data like the one shown without normalizing it. [1] 37.50 46.79 48.30 46.04 43.40 39.25 38.49 49.51 40.38 36.98 40.00[12] 38.49 37.74 47.92 44.53 44.91 44.91 40.00 41.51 47.92