Questions tagged as 'r'

0
answers

Generate multiple samples

I'm trying to generate 500 samples of size 50 each, but it's not working. The program follows below. require("gsl") n=50 amostra = 500 alpha = 2 beta = 3 X=NULL X<-matrix(0,nrow=n,ncol=amostra) ##### FUNCAO PARA GERAR UMA AMOSTRA ree =...
asked by 16.12.2016 / 12:46
1
answer

Function hnp - Package hnp of R

My template was created with the glmer function, of pacete lme4 . It is a generalized linear mixed model with Binomial response. form=status~(A1+A2+ B1 + ... + B10 +  (1 | escola)) Mod1 <- glmer(form, data = dadosesc, family = binom...
asked by 05.12.2016 / 20:04
2
answers

Concatenate values within the same columns of the data frame in the R software

Can anyone help me? Anyway, I'm already grateful!     
asked by 09.11.2016 / 01:25
0
answers

Metrics of machine learning [closed]

I'd like to know how to evaluate which model is best. For example: I am learning machine learning using the titanic dataset, and I used decisions tree, logistic regression, and random forest, but how can I evaluate which one will have the highes...
asked by 10.11.2016 / 02:22
2
answers

How to make R import, read, and convert the reading of the cross data to a data frame (see figure)

Good morning, I have a table that is not in the standard R reading format, that is, it has one column variable (time) and two in line with data arranged side by side (subject and treatment). Could someone give me a light on how to get R to...
asked by 05.11.2016 / 21:53
0
answers

Logging into site with R, what is the error?

I'm trying to login to a site, the site's value is merely illustrative, does anyone know why the function is not working? login <- function (xxxx_user, xxxx_pass) { url_login <- 'http://www.valor.com.br/login' curlhand &l...
asked by 21.02.2017 / 22:21
0
answers

Transform phylogenetic tree into 'phyDat' in R [closed]

Does anyone know how to transform a phylogenetic tree, which is in the 'txt' format to 'phyDat', in R?     
asked by 12.10.2016 / 00:04
0
answers

Data import [closed]

I am trying to import a table with datetime values in r, and the values are not imported. The column with the values appears with NA and the following error is reported. Parsed with column specification: cols( HTV = col_time(format = "...
asked by 28.01.2017 / 23:15
0
answers

PowerBI Desktop and error with R (GGPLOT)

I'm really stuck and need help. After installing R 3.5.1, I get this error message in the R views in Power BI Desktop that I was working on previously.    "Error: package or namespace load failed for 'ggplot2': package   'scales' was insta...
asked by 07.12.2018 / 19:52
0
answers

Influence.measures using LOESS

Is it possible to use influence.measures from the result obtained with LOESS? For example, be the following excerpt: x <- 1:120 y <- sin(2*pi*x/period) + runif(length(x),-1,1) plot(x,y, main="Sine Curve + 'Uniform' Noise") y.loess <-...
asked by 25.04.2016 / 18:29