Home
last modified time | relevance | path

Searched +refs:is +refs:pconsecutive +refs:pseries (Results 1 – 14 of 14) sorted by relevance

/dports/finance/R-cran-plm/plm/man/
H A Dis.pconsecutive.Rd3 \name{is.pconsecutive}
4 \alias{is.pconsecutive}
5 \alias{is.pconsecutive.default}
7 \alias{is.pconsecutive.pseries}
12 is.pconsecutive(x, ...)
18 \method{is.pconsecutive}{pseries}(x, na.rm.tindex = FALSE, ...)
71 observations for an individuals in the (p)data.frame/pseries (it is not
72 about "neighbouring" rows). If the object to be evaluated is a pseries or a
75 \verb{as.numeric(as.character(index(<pseries/pdata.frame>)[[2]]))]} is
89 pdata.frame and pseries interface, ordering is not performed because both
[all …]
H A Dmake.pconsecutive.Rd7 \alias{make.pconsecutive.pseries}
16 \method{make.pconsecutive}{pseries}(x, balanced = FALSE, ...)
20 or \code{pseries},}
36 pdata.frame, data.frame or a pseries which is made
61 pseries), this results in nrow(make.pconsecutive, balanced = FALSE) <=
87 is.pconsecutive(Grunfeld_missing_period) # check for consecutiveness
97 all(is.pconsecutive(Grunfeld_unbalanced)) # FALSE
101 all(is.pconsecutive(g_consec_bal)) # TRUE
107 all(is.pconsecutive(g_consec)) # TRUE
132 all(is.pconsecutive(g_bal)) # FALSE
[all …]
H A Dmake.pbalanced.Rd6 \alias{make.pbalanced.pseries}
22 \method{make.pbalanced}{pseries}(
37 or \code{pseries};}
54 pdata.frame, data.frame or a pseries which is made balanced
87 \code{\link[=make.pconsecutive]{make.pconsecutive()}} (and, optionally, set argument
126 all(is.pconsecutive(Grunfeld_unbalanced)) # FALSE
145 # pseries interface
150 all(is.pconsecutive(g_consec)) # TRUE
157 all(is.pconsecutive(g_consec_bal)) # TRUE
168 \code{\link[=is.pconsecutive]{is.pconsecutive()}} to check if data are consecutive;
[all …]
H A Dis.pbalanced.Rd3 \name{is.pbalanced}
4 \alias{is.pbalanced}
8 \alias{is.pbalanced.pseries}
10 \alias{is.pbalanced.pgmm}
13 is.pbalanced(x, ...)
21 \method{is.pbalanced}{pseries}(x, ...)
29 \code{pseries}, \code{panelmodel}, or \code{pgmm},}
73 # pseries interface
80 balanced; \code{\link[=is.pconsecutive]{is.pconsecutive()}} to check if data are
81 consecutive; \code{\link[=make.pconsecutive]{make.pconsecutive()}} to make data
[all …]
H A Dlag.plm.Rd8 \alias{lag.pseries}
9 \alias{lead.pseries}
29 If \code{k} is an integer with length > 1 (\code{k = c(k1, k2, ...)}), a
30 \code{matrix} with multiple lagged \code{pseries} is returned,}
36 functions is performed (see Details and Examples).}
66 \ldots{} where t is an integer (from a technical viewpoint,
72 time index is not relevant in this case.
109 # delete 2nd time period for first individual (1978 is missing (not NA)):
111 is.pconsecutive(Em_hole) # check: non-consecutive for 1st individual now
123 individual, see \code{\link[=is.pconsecutive]{is.pconsecutive()}}.
[all …]
H A Dpdata.frame.Rd104 a \code{pdata.frame} object: this is a \code{data.frame} with an
107 resulting pdata.frame is sorted by the individual index, then
111 An object of class 'pdata.frame' is a data.frame with an index
120 a character string which is the name of the individual index
122 a new variable called "time" is added, assuming consecutive and
135 attribute \code{"pseries"} is added. The \code{"["} method behaves as for
148 attributes specific to a pdata.frame; if a list of pseries is
160 # Hedonic is an unbalanced panel, townid is the individual index
165 # individuals data set 'Wages' is organized as a stacked time
170 # lapply on a pdata.frame by making it a list of pseries first
[all …]
/dports/finance/R-cran-plm/plm/inst/tests/
H A Dtest_make.pconsecutive_pbalanced.Rout.save21 > ## in separate file test_is.pconsecutive.R: test of is.pconsecutive.*
73 > # make.pconsecutive.indexes: pseries interface
131 + stop("failure for already consecutive pseries: result is not identical to input")
159 > if (!all(is.pconsecutive(make.pconsecutive(pinv_missing_periods)))) stop("failure")
287 > # pseries is consecutive but not balanced and balancedness requested
309 > # pseries is consecutive but not balanced and balancedness requested
345 > # pdata.frame and pseries: this is checking for new factor levels
400 > # if (!(all(is.pconsecutive(age_consec)))) stop("failure")
410 > # if (!all(is.pconsecutive(df_nlswork_r8_consec))) stop("failure")
431 > # if (!all(is.pconsecutive(pdf_pnlswork_r8_consec))) stop("failure")
[all …]
H A Dtest_misc.Rout.save599 > ## is.pconsecutive
600 > is.pconsecutive(Grunfeld)
603 > is.pconsecutive(Grunfeld, index=c("firm", "year"))
610 > is.pconsecutive(Grunfeld_missing_period)
625 > is.pconsecutive(Grunfeld_wo_1937) # all FALSE
632 > is.pconsecutive(pGrunfeld) # all TRUE
643 > is.pconsecutive(mod_pGrunfeld)
646 > is.pconsecutive(mod_pGrunfeld_missing_period)
659 > is.pconsecutive(pinv)
662 > is.pconsecutive(pinv_missing_period)
[all …]
H A Dtest_is.pconsecutive.Rout.save18 > # tests for is.pconsecutive
38 > is.pconsecutive(Grunfeld)
62 > is.pconsecutive(Grun_not_ordered)
110 > # test on pseries
114 > is.pconsecutive(pinv)
221 > # test on pseries
225 > if(!isTRUE(all.equal(is.pconsecutive(pmv), expected_Hed, check.names = FALSE))) stop("is.pconsecu…
226 …sTRUE(all.equal(is.pconsecutive(pmv_missing_period), expected_Hed_missing_period, check.names = FA…
242 > is.pconsecutive(pGasoline)
319 > if(!isTRUE(all.equal(is.pconsecutive(Grunfeld_NA_time), is.pconsecutive(pGrunfeld_NA_time))))
[all …]
H A Dtest_lag_lead.Rout.save321 > if(!isTRUE(all(is.na(plm:::lagr.pseries(Grunfeld$inv, 20))))) stop("all-NA case not correct") # 2…
322 > if(!isTRUE(all(is.na(plm:::lagr.pseries(Grunfeld$inv, 21))))) stop("all-NA case not correct") # 2…
323 > if(!isTRUE(all(is.na(plm:::leadr.pseries(Grunfeld$inv, 20))))) stop("all-NA case not correct") # …
324 > if(!isTRUE(all(is.na(plm:::leadr.pseries(Grunfeld$inv, 21))))) stop("all-NA case not correct") # …
939 > # Hedonic is an unbalanced panel, townid is the individual index
995 > is.pconsecutive(pGrunfeld_missing_period)
1036 > is.pconsecutive(Hed_missing_period)
1068 …head(test_Hed_miss_p_lag2 <- plm:::lagr.pseries(Hed_missing_period$age, 2), 20) # plm:::lagr.pseri…
1108 > is.pconsecutive(Hed_missing_period2)
1188 > # pnlswork_r8_consec <- make.pconsecutive(pnlswork_r8)
[all …]
H A Dtest_lagt_leadt.Rout.save326 > if(!isTRUE(all(is.na(lag(Grunfeld$inv, 20))))) stop("all-NA case not correct") # 20 is no of obs …
328 > if(!isTRUE(all(is.na(lead(Grunfeld$inv, 20))))) stop("all-NA case not correct") # 20 is no of obs…
944 > # Hedonic is an unbalanced panel, townid is the individual index
998 > is.pconsecutive(pGrunfeld_missing_period)
1051 > is.pconsecutive(Hed_missing_period)
1138 > is.pconsecutive(Hed_missing_period2)
1226 > if (!isTRUE(identical(plm:::lagt.pseries(Grunfeld$inv, k = c(-3,-2,-1,0,1,2,3)), plm:::lagr.pseri…
1257 > # pnlswork_r8_consec <- make.pconsecutive(pnlswork_r8)
1258 > # pnlswork_r8_consec_bal <- make.pconsecutive(pnlswork_r8, balanced = TRUE)
1261 > # if (!all.equal(plm:::lagr.pseries(pnlswork_r8_consec$age), plm:::lagt.pseries(pnlswork_r8_conse…
[all …]
/dports/finance/R-cran-plm/plm/
H A DNAMESPACE61 S3method(is.pbalanced,pseries)
62 S3method(is.pconsecutive,data.frame)
63 S3method(is.pconsecutive,default)
64 S3method(is.pconsecutive,panelmodel)
65 S3method(is.pconsecutive,pdata.frame)
66 S3method(is.pconsecutive,pseries)
72 S3method(make.pconsecutive,data.frame)
74 S3method(make.pconsecutive,pseries)
207 export(is.pconsecutive)
208 export(is.pseries)
[all …]
H A DMD517 acb15c196d8326325ac846681b81f7b5 *R/is.pconsecutive_pbalanced.R
98 606a3dbf3841d5e81b1d90e8dcac9487 *inst/tests/test_is.pconsecutive.R
99 922626f7fe969cd67e3ddaea87723d54 *inst/tests/test_is.pconsecutive.Rout.save
199 508ec8bdb4a4014892fe9e15df9fca9c *man/is.pbalanced.Rd
200 6a43dff7a1d779f31371e4c01a1f45fc *man/is.pconsecutive.Rd
201 600395679fd85cc1d4abc7c74c54031b *man/is.pseries.Rd
204 cfca1b7b1c1d671a33fec12cb9f5c556 *man/make.pconsecutive.Rd
234 f9440ec632fda32bc4c73fac73f0bace *man/pseries.Rd
H A DNEWS.md230 * Ops.pseries: use of is.vector() was too strict, now uses is.atomic() with
348 * make.pconsecutive for pseries: for consecutive pseries, the argument
359 performed on pseries, e.g., c("pseries", "integer") is propagated
392 * is.pseries: added function to check if an object qualifies as a pseries.
680 * make.pconsecutive: new function to make a (p)data.frame or pseries consecutive, meaning having co…
746 * is.pconsecutive: default method exported so it can be used for arbitrary vectors.
771 * is.pconsecutive:
1027 * an index method is added for panelmodel, pdata.frame and pseries.
1110 * lag.pseries is now able to deal with vector arguments for lags,
1159 * 'pserie' is renamed 'pseries'.
[all …]