Questions tagged as 'r'

1
answer

Error while executing method nls in R - 'arg' must be NULL or a character vector

When I use the n0 <- nls(Y~expo.der(x, A, B, C), data=dados_Indice, start=start, na.omit(NA), trace = TRUE) expo.der is the name of the created function that defines the formula used in the regression, I changed it to MM MM <- deri...
asked by 18.09.2018 / 19:27
1
answer

How to transform a vector list into R?

How to transform a vector list into R? The list is a set of words and numbers and I need to add the numbers in the list. mylist <- list ("2 tomates", "5 tomates", "9 tomates") If I want total tomatoes, how do I do it?     
asked by 26.05.2014 / 01:08
1
answer

Integer overflow in R

I'm working on a population dynamics simulation that involves integer generation. Due to the assumptions of my model, I'm generating random numbers through the rmultinom function of R. However, I'm having overflow problems in my simulatio...
asked by 22.09.2016 / 18:07
2
answers

Error using plm - Error in x [! na.check]: (subscript) logical subscript too long

I'm using the plm package to do analysis on a dashboard. To structure the base as a panel, I used the pdata.frame function of the same package. With this, I had a panel with the following characteristics: Dai,Iwouldliketorunaregressio...
asked by 23.08.2016 / 19:15
1
answer

Add 3 graphs using plot

I want to merge the three graphs below using the plot function. I do the basics starting with the command par(mfrow=c(1,3)) but I can not join them. The problem I believe is that it is using a direct summary object of the quanti...
asked by 14.09.2016 / 00:21
1
answer

R: Insert date difference into a function for time difference

I found a function made by J.Ahumada and found it super interesting, everything to do with my work. The function is to separate photographic records of a species into a given sample unit (ua) from a desired range of independence. I created an...
asked by 08.05.2016 / 17:32
1
answer

How to reproduce a graph that was created with the plot command using ggplot2?

How to reproduce the graph below using ggplot2 ? I do not know how to add multiple graphs to a single layer ! bs<-function(t,mu,phi){ fdp=((exp(phi/2)*sqrt(phi+1))/(4*sqrt(pi*mu)*t^(3/2)))*(t+((phi*mu)/(phi+1)))* exp((-phi...
asked by 23.03.2017 / 19:02
1
answer

Build Accumulated Density Probability using R

I have this two-frame date frame (Y and X) With the quantreg package I can estimate the quantiles of Y given x. Done, I can not construct the conditional Y-CUMP density function. Could someone help me? Estimating the quantiles: libra...
asked by 08.10.2016 / 21:51
1
answer

Quadratic Curve Estimation Minima Square using R

I have a quadratic model that I want to run a simple multivariate regression using Minimal Ordinary Squares. This is my code: df<-data.frame(rnorm(50),rnorm(50)) x_Square<-df[,2]^2 data<-cbind(df,x_Square) names(data)<-c("y","x"...
asked by 05.10.2016 / 03:42
1
answer

How to erase axis title in graphics in R?

I'm doing multiple regressions for the same X variable and plotting joins using the command par(mfrow) on R . But I want to put only one title on the X axis at the end of all my graphics. I already know how to put the title, however...
asked by 02.04.2015 / 00:14