Displaying 11 results from an estimated 11 matches for "n_id".
Did you mean:
_id
2009 Feb 07
1
fixed effects regression
...would not have any fundamental error. Well, hopefully. I have been using this code for a while..)
And does anyone know how I can include another fixed effect into this code? :(
Any help will be deeply appreciated....
feols = function(y,X,id) {
n = length(y);
uniq_id = unique(id);
n_id = length(uniq_id);
dummy = matrix(rep(0,n*(n_id-1)),nrow=n);
for (i in 1:(n_id-1))
dummy[id==uniq_id[i],i] = 1;
X = cbind(rep(1,n),X,dummy);
k = ncol(X);
invXX = solve(t(X) %*% X);
b = as.numeric(invXX %*% (t(X) %*% y));
res = y - X%*%b;
s2 = as.numeric(t...
2015 Jul 29
2
[PATCH] ssh: Add option to present certificates on command line
...3,72 @@ ssh_session2(void)
options.escape_char : SSH_ESCAPECHAR_NONE, id);
}
+/* Load certificate file(s) specified in options. */
+static void
+load_certificate_files(void)
+{
+ char *filename, *cp, thishost[NI_MAXHOST];
+ char *pwdir = NULL, *pwname = NULL;
+ struct passwd *pw;
+ int i, n_ids;
+ struct sshkey *cert;
+ char *certificate_files[SSH_MAX_CERTIFICATE_FILES];
+ struct sshkey *certificates[SSH_MAX_CERTIFICATE_FILES];
+
+ n_ids = 0;
+ memset(certificate_files, 0, sizeof(certificate_files));
+ memset(certificates, 0, sizeof(certificates));
+
+ if ((pw = getpwuid(original_real_u...
2024 Oct 07
1
Optimizar bucle for
Hola, ¿qué tal?
Modifica esto:
----
library(plyr)
n_reg <- 332505
n_ids <- 63738
dif_days <- 90
df <- data.frame(
id = sample(n_ids, n_reg, replace = T),
dates = sample(1000, n_reg, replace = T)
)
# important!
df <- df[order(df$id, df$date),]
n_borrar <- 1
while (n_borrar > 0) {
df <- ddply(df, .(id), transform, delta = c(1000, diff(dat...
2024 Oct 07
1
Optimizar bucle for
...que puede estar pasando?
Muchas gracias por la ayuda y saludos!
On Mon, 7 Oct 2024 13:24:56 +0200
"Carlos J. Gil Bellosta" <gilbellosta en gmail.com> wrote:
> Hola, ¿qué tal?
>
> Modifica esto:
>
> ----
>
> library(plyr)
>
> n_reg <- 332505
> n_ids <- 63738
>
> dif_days <- 90
>
> df <- data.frame(
> id = sample(n_ids, n_reg, replace = T),
> dates = sample(1000, n_reg, replace = T)
> )
>
> # important!
> df <- df[order(df$id, df$date),]
>
> n_borrar <- 1
>
> while (n_borrar >...
2009 Jul 27
1
Website Updates
...devices that support FLAC format and I am sure there
are others.
ASUS Brings High Definition Entertainment to the Living Room with the O!Play HDP-R1 HD Media Player
The Easiest Way to Stream and Enjoy a Wide Range of High Definition Content on Large-screen TVs at Home
http://www.asus.com/News.aspx?N_ID=wUbKQ3nv6gSQaey2
Mvix Ultio (MX-800HD) 1080p Media Center, a new generation of media center, brings your digital entertainment to your living room. A Hard-Disk based set-top media player capable of HD playback with video output as high as 1080p, it delivers spectacular picture quality of HD video...
2024 Oct 07
1
Optimizar bucle for
...!
>
> On Mon, 7 Oct 2024 13:24:56 +0200
> "Carlos J. Gil Bellosta" <gilbellosta en gmail.com> wrote:
>
> > Hola, ¿qué tal?
> >
> > Modifica esto:
> >
> > ----
> >
> > library(plyr)
> >
> > n_reg <- 332505
> > n_ids <- 63738
> >
> > dif_days <- 90
> >
> > df <- data.frame(
> > id = sample(n_ids, n_reg, replace = T),
> > dates = sample(1000, n_reg, replace = T)
> > )
> >
> > # important!
> > df <- df[order(df$id, df$date),]
> >
&...
2024 Oct 07
1
Optimizar bucle for
Hola a todos:
Tengo un bucle que tarda horas y me gustaría optimizarlo. Me explico. Simplificando, tengo una tabla con 332.505 registros de 63.738 individuos. Cada registro es una medida realiza de unos
días a unos meses o años después de la anterior. Lo que quiero es borrar aquellos registros que entre él y el anterior hayan transcurrido menos
de 6 meses, de manera que me quede una tabla con
2012 Dec 21
0
File Attachments for previous bug report
...mset(x1_proof, 0, x1_proof_len);
+ memset(x2_proof, 0, x2_proof_len);
xfree(x1_proof);
xfree(x2_proof);
-------------- next part --------------
--- ssh.c.orig 2012-12-19 17:30:53.992528775 -0800
+++ ssh.c 2012-12-19 17:32:16.421511581 -0800
@@ -1509,8 +1509,8 @@
#endif /* PKCS11 */
n_ids = 0;
- bzero(identity_files, sizeof(identity_files));
- bzero(identity_keys, sizeof(identity_keys));
+ memset(identity_files, 0, sizeof(identity_files));
+ memset(identity_keys, 0, sizeof(identity_keys));
#ifdef ENABLE_PKCS11
if (options.pkcs11_provider != NULL &&
@@ -1584...
2012 Dec 20
4
Deprecated calls to bzero() and index() found in OpenSSH 6.1p1
...In file 'ssh.c', I've replaced the bzero() calls with
the equivalent memset() calls. The patch file is below in
(diff -u) format:
--- ssh.c.orig 2012-12-19 17:30:53.992528775 -0800
+++ ssh.c 2012-12-19 17:32:16.421511581 -0800
@@ -1509,8 +1509,8 @@
#endif /* PKCS11 */
n_ids = 0;
- bzero(identity_files, sizeof(identity_files));
- bzero(identity_keys, sizeof(identity_keys));
+ memset(identity_files, 0, sizeof(identity_files));
+ memset(identity_keys, 0, sizeof(identity_keys));
#ifdef ENABLE_PKCS11
if (options.pkcs11_provider != NULL...
2018 Mar 22
16
Call for testing: OpenSSH 7.7
Hi,
OpenSSH 7.7p1 is almost ready for release, so we would appreciate testing
on as many platforms and systems as possible. This is a bugfix release.
Snapshot releases for portable OpenSSH are available from
http://www.mindrot.org/openssh_snap/
The OpenBSD version is available in CVS HEAD:
http://www.openbsd.org/anoncvs.html
Portable OpenSSH is also available via git using the
instructions at
2010 Apr 15
4
Does "sink" stand for anything?
Hello Everyone,
Learning about R and its wonderful array of functions. If it's not obvious, I usually try to find out what a function stands for. I think this helps me remember better.
One function that has me stumped is "sink." Can anyone tell me if this stands for something?
Thanks,
Paul
__________________________________________________
[[alternative HTML