-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpruebas.R
47 lines (36 loc) · 910 Bytes
/
pruebas.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
setwd("git/irtppscripts/")
source(file = "funcionesDB.R")
## Conectarse a DB
mongo = mongo.create(host = "localhost", db="irtpptest")
mongo.is.connected(mongo)
## Ejemplos
## Cosas que se pueden buscar con query
#"items"
#"individuals"
#"model"
#"s_function"
#"s_count"
## Funciones disponibles
#query_itempars
#query_to_df
query = list("model"="1PL","individuals"=1000,"s_count"=1)
query = list("individuals"=18000)
query=list()
qrm = query_itempars(query)
query = list("individuals"=10000,"s_function"="f_sics")
qrs = query_to_df(query)
qrs
qr = query_itempars(query)
qr[1:10,]
names(qr)
qrm = query_to_df(query)
qr
## Guardar
saveRDS(qrm,"dataframe18000est.RDS")
##Ruta donde quedo guardado
getwd()
qr[]
library(ggplot2)
qplot(data=qr,x=qr$rep,y = qr$t_em,color=qr$func,shape=qr$model)
qplot(data=qrm,x=qrm$rep,y = qrm$t_em,color=qrm$model)
qplot(data=qrs,x=qrs$rep,y = qrs$t_em,color=qrs$model)