similar to: funciones (findInterval, which) y simulación discreta

Displaying 20 results from an estimated 200 matches similar to: "funciones (findInterval, which) y simulación discreta"

2007 Aug 30
0
Problem with data migration and acts_as_tree
Hi, this is my first post here, my name is Lucas and I''m just starting with rails. For one of the first models I made (an accounts plan), I had some example data in a CSV file, so I created this migration, the idea is to detect the parent/child relationships according to the account number, the code works right (if I insert some puts here and there, I can see it), but when the migration
2015 Jan 23
2
Simulación de modelo logit con interacción
Hola, ¿qué tal? Cierto, cierto, había un error en el código que publiqué. Pero el diagnóstico es parecido. Cuando los datos se generan con el coeficiente de x2 igual a 7, los coeficientes estimados tienen una distribución extraña, bimodal (aparentemente), en lugar de _normalmente_ distribuida alrededor del 7 como se espera. Supongo que depende del número de casos en que x2 = 1 e y = 0. Un
2015 Jan 22
5
Simulación de modelo logit con interacción
Hola, Deseo simular un modelo logit con interacción, estimar sus coeficientes y comprobar si son o no parecidos al modelo teórico. Con este ejemplo obtengo que los coeficientes estimados no se asemejan mucho a los originales. ¿Se le ocurre a alguien cuál es el motivo de esta discrepancia? ¿y cómo solucionarlo? Muchas gracias Emilio logisticsimulation <- function(n){ dat <-
2014 Apr 26
3
Acumulado hasta una fecha exacta según individuo
Buenas noches a todos las personas del foro, Me dirijo a vosotros con la siguiente cuestión: ¿Cómo es posible obtener, para cada individuo (identificado con la variable ID) de un data frame, la CANTIDAD ACUMULADA hasta una determinada fecha (día, mes y año), que es diferente para cada individuo y que se denota por la variable ENTRADA? Ejemplo: require(data.table) datos2 <-
2015 Jun 10
2
Duda glmer
Hola, Tengo una base de datos con estructura jerárquica en la que quiero clasificar observaciones en distintas categorías. En el caso más simple, tengo una variable con dos categorías (variable Y1) y dentro de cada una de ellas hay otras dos categorías (variable Y2). Además tengo una variable explicativa cuantitativa discreta X. El banco de datos sería de este tipo: X Y1 Y2 5 0 1 9 0 0 2
2014 Mar 12
2
Frecuencia absoluta acumulada por individuo y por
Por si tienes especial interés en utilizar sqldf: todos <- sqldf( "select distinct a.ID,b.YEAR from dt a , dt b;") suma <- sqldf( "select ID,YEAR,sum(CANTIDAD) as CANTIDAD from dt group by ID,YEAR;") todos <- sqldf( "select a.ID,a.YEAR, CANTIDAD from todos a left join suma b on a.ID = b.ID and a.YEAR = b.YEAR group by a.ID,a.YEAR;") todos$CANTIDAD =
2014 Mar 10
3
Frecuencia absoluta acumulada por individuo y por año
Hola, Vaya, en el código que he enviado, cusum no se incrementaba.. Y has indicado que se introduce un año más, con el mismo ID que el anterior y con la misma cantidad acumulada. Pero si el siguiente año es del mismo ID, acumula el valor de la cantidad que hemos introducido en esa fila... Con el siguiente código se resuelve este error y además ya está preparado para contemplar cualquier tipo de
2013 Mar 06
3
almacenamiento en lista y funcion lapply
Estimados su ayuda, tengo un total de 20 matrices las cuales deseo colocarlas como componentes de la lista, es decir matrices<-list(matriz1,matriz2,matriz3,...,matriz20) existe alguna manera de hacer esto de manera automatica ya que puede que exista un mayor numero de matrices por ejemplo 100, donde el ingreso de una por una puede resultar un poco cansado. A su vez a las matrices ingresadas
2009 Jun 18
1
Inverting a square... (PR#13762)
Refiling this. The actual fix was slightly more complicated. Will soon be committed to R-Patched (aka 2.9.1 beta). -p rvaradhan at jhmi.edu wrote: > Full_Name: Ravi Varadhan > Version: 2.8.1 > OS: Windows > Submission from: (NULL) (162.129.251.19) >=20 >=20 > Inverting a matrix with solve(), but using LAPACK=3DTRUE, gives erroneo= us > results: Thanks, but there seems
2017 May 18
4
PLOTEO DEL DATO MENSUAL DESDE EL ACUMULADO
Hola estimados: He tratado de encontrar la mejor forma de automatizar un proceso de "datos mensuales de precipitación". El tema es que tengo solo la serie acumulada anual de Pp. Por ende, busco una forma de plotear un gráfico, extrayendo "los datos mensuales desde el acumulado" Ejemplo; ene feb mar abr may jun jul ago sep oct nov dic 1 5 8 10 20 30 50 80
2014 Mar 10
4
Frecuencia absoluta acumulada por individuo y por año
Hola, Hola a todos, Os escribo porque no consigo finalizar el script necesario para realizar lo que a continuación planteo. Partiendo de un data frame (2 millones de casos), tengo: > datos2 ID FECHA YEAR CANTIDAD 1 100 2005-08-02 2005 1 2 100 2005-10-19 2005 2 3 100 2007-02-09 2007 1 4 100 2007-10-25 2007 1 5 100 2007-10-29 2007 1 6 120 2006-05-11
2009 Dec 10
0
Is there a variant of findInterval() such that v[i[j]] < x[j] <= v[i[j] + 1]?
In findInterval's help page, it says 'v[i[j]] <= x[j] < v[i[j] + 1]'. I'm wondering if there is a variant of it such that 'v[i[j]] < x[j] <= v[i[j] + 1]'.
2004 Sep 20
1
findInterval in compiled code.
Hi all, I am writing some C code where I want to use the findInterval function documented in "Writing R extensions/Utility functions". i.e. the C-version not the R version. It all compiles but the shared library is causing seg-faults and I'm obviously stuffing something up. Has anyone got any examples of calling this function they'd be will to share? I've searched through
2020 Mar 06
1
findInterval Documentation Suggestion
> On Friday, March 6, 2020, 8:56:54 AM EST, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > Note that the? * -> LaTex -> PDF rendered version looks a bitnicer. Ah yes, that does indeed look quite a bit nicer. > I wrote the function and that help page originally. And thank you for doing so. It is a wonderful function. (0 sarcasm here). > For that reason,
2020 Mar 06
0
findInterval Documentation Suggestion
>>>>> brodie gaslam via R-devel >>>>> on Thu, 5 Mar 2020 22:18:33 +0000 (UTC) writes: > I've found over time that R documentation that comes off as terse at > first blush is usually revealed to be precise, concise, and complete > on close reading.? I'm sure this is also true of `?findInterval`, but > for whatever reason my
2008 Sep 22
1
findInterval(), binary search, log(N) complexity
Dear R users, the help for findInterval(x,vec) suggests a logarithmic dependence on N (=length(vec)), which would imply a binary search type algorithm. However, when I "test" this hypothesis, in the following manner: set.seed(-3645); l <- vector(); N.seq <- c(5000, 500000, 1000000, 10000000, 50000000);k <- 1 for (N in N.seq){ tmp <- sort(round(stats::rt(N, df=2), 2));
2017 May 18
4
PLOTEO DEL DATO MENSUAL DESDE EL ACUMULADO
Interesante. Cada uno de los valores de mi tabla tiene asociada una fecha. Se le podría asignar un tipo de ?break? ,para que le ?diff? sea asociado a cada mes? Por ejemplo? [Descripción: FIRMA3] De: Carlos Ortega [mailto:cof en qualityexcellence.es] Enviado el: jueves, 18 de mayo de 2017 12:35 Para: Javier Valdes Cantallopts (DGA) CC: r-help-es en r-project.org Asunto: Re: PLOTEO DEL DATO
2016 Aug 04
1
findInterval(all.inside=TRUE) for degenerate 'vec' arguments
What should findInterval(x,vec,all.inside=TRUE) return when length(vec)<=1, so there are no inside intervals? R-3.3.0 gives a decreasing map of x->output when length(vec)==1 and -1's when length(vec)==0. Would '0' in all those cases be better? > findInterval(x=c(10, 11, 12), vec=11, all.inside=TRUE, rightmost.closed=FALSE, left.open=FALSE) [1] 1 0 0 >
2012 Dec 16
1
graficar funciones Prior
Hola, si tengo estas dos funciones de distribucion y quiero en una grafica verla, como le hago en R? [image: Imágenes integradas 1] Cual es el comando en R para graficar estas funciones? Saludos, Tania ------------ próxima parte ------------ Se ha borrado un adjunto en formato HTML... URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20121215/7d185b91/attachment-0001.html>
2013 Jul 16
1
Paquetización: funciones visibles
Hola a tod@s: Quisiera saber cómo tengo que hacer para que, al paquetizar, sólo estén visibles determinadas funciones de mi proyecto, y no otras tantas que son meramente auxiliares. Gracias. Saludos! Eva [[alternative HTML version deleted]]