BJ Data Tech Solution

Specialized on Data processing, Data management Implementation plan, Data Collection tools - electronic and paper base, Data cleaning specifications, Data extraction, Data transformation, Data load, Analytical Datasets, and Data analysis. BJ Data Tech Solutions teaches on design and developing Electronic Data Collection Tools using CSPro, and STATA commands for data manipulation. Setting up Data Management systems using modern data technologies such as Relational Databases, C#, PHP and Android.

  • Home
  • Data Management
  • Data Analysis
  • Data Collection Tools Tips
Taking the average of observations within a specific date range

Taking the average of observations within a specific date range

Sunday, June 30, 2019 Data Cleaning Data management Data Processing
Hi, I want to compute the average of a variable (teamsize) for observations within a specific time period. I have a date variable formatt...
Create a two-way line graph/bar chart

Create a two-way line graph/bar chart

10:18 PM Data Cleaning Data management Data Processing
Hi all I want to create a line graph/bar chart which looks at the consumption of 3 main fertilizers- UREA, TSP and MOP over a 3 year perio...
interaction effects: Poisson or Double-limit Tobit

interaction effects: Poisson or Double-limit Tobit

8:48 PM Data Cleaning Data management Data Processing
Hi All, I am working with the DHS data across five countries and looking at relationship between women's empowerment and children'...
Estimation output for Svy: meologit and melogit commands

Estimation output for Svy: meologit and melogit commands

5:58 PM Data Cleaning Data management Data Processing
Hi all, I am using Stata 14.1 and i am getting an odd but of output. I am estimating a series of mixed effect ordered logit and binary l...
How to filter dates within an interval from a set of observation

How to filter dates within an interval from a set of observation

5:28 PM Data Cleaning Data management Data Processing
Hello, i have a dataset of around 900,000 observations from about 130,000 ids. The variables i am working with are mostly dates. i wanted ...
how to get x-standardized coefficient in logistic regression, i.e., reproduce results from "listcoef" command

how to get x-standardized coefficient in logistic regression, i.e., reproduce results from "listcoef" command

4:03 PM Data Cleaning Data management Data Processing
I was trying to get the standardized coefficient from ologit model. "listcoef" can produce the table nicely, but I want to reprodu...
reshape - wide connections

reshape - wide connections

3:07 PM Data Cleaning Data management Data Processing
I have variables in wide that belong together i groups (eg. var1a and var2a). I would like to reshape into long while assigning the value i...
Cox regression assumption

Cox regression assumption

2:28 PM Data Cleaning Data management Data Processing
I am doing a research to examine the association between sleep and all-cause mortality. The average follow-up time is only 5 years for both ...
SEM, error coefficients output.

SEM, error coefficients output.

1:22 PM Data Cleaning Data management Data Processing
Hi, How can I receive the outputs for the "path coefficient" of error terms to each items of a latent variable? The output only s...
New Stata 16 versions of dolog, dotex and dologx on SSC

New Stata 16 versions of dolog, dotex and dologx on SSC

12:37 PM Data Cleaning Data management Data Processing
Thanks as always to Kit Baum, new versions of the dolog , dotex and dolog x packages are now available for download from SSC. In Stata,use t...
Gravity model of migration: ppml vs. ppmlhdfe

Gravity model of migration: ppml vs. ppmlhdfe

11:42 AM Data Cleaning Data management Data Processing
Dear all, I'm working on a gravity model of migration for my thesis. My data contains 28 EU countries as destination countries, 130 no...
Probit Marginal Effect

Probit Marginal Effect

11:27 AM Data Cleaning Data management Data Processing
Hello Everyone, I am working on a Probit regression for my research, I want to report the marginal effect but I can't seem to figure ou...
Recoding in panel data

Recoding in panel data

11:22 AM Data Cleaning Data management Data Processing
How to recode values by groups in panel data by using Stata commands? For example, the score for id1 at wave 1 is 3, and I seek to let the s...
Propensity Score matching: how to define the dependent variable

Propensity Score matching: how to define the dependent variable

10:52 AM Data Cleaning Data management Data Processing
Hello everyone, we are trying to use propensity score matching (PSM) to find the suitable control group. Our data set is at the exporter (Ch...
Create fiscal years from years and months

Create fiscal years from years and months

9:02 AM Data Cleaning Data management Data Processing
Dear Statalist, I would like to create a fiscal year variable that take values like 2005-06, 2006-07 and so on till 2018-19, from the var...
Values of multiple columns in one column using a loop

Values of multiple columns in one column using a loop

7:42 AM Data Cleaning Data management Data Processing
Hi everyone, I'd like to place all values of multiple columns in one column. I tried stack using a loop: Code: foreach id of loca...
Variable Labels

Variable Labels

6:22 AM Data Cleaning Data management Data Processing
Hello dear forum members, I am new here and am currently learning Stata. I am a beginner and have only one question. Maybe there is already...
Problems creating Herfindahl-Hirschman Index

Problems creating Herfindahl-Hirschman Index

5:22 AM Data Cleaning Data management Data Processing
Hello everyone, I want to create the Herfindahl-Hirschman Index for my data. I have quartlery data for different banks. I want to have the...
Taking the average of observations within a specific date range

Taking the average of observations within a specific date range

4:32 AM Data Cleaning Data management Data Processing
Hi, I want to compute the average of a variable (teamsize) for observations within a specific time period. I have a date variable formatte...
Code of Patell Z-statistic

Code of Patell Z-statistic

4:32 AM Data Cleaning Data management Data Processing
Goodmorning everyone, I'd like to derive a Z-statistic by means of the Patell test ( https://www.eventstudytools.com/sign...e-tests#Pa...
renaming variables using values they hold

renaming variables using values they hold

1:32 AM Data Cleaning Data management Data Processing
Hey everyone, Is there a simple command (or few lines of code) to rename variables based on a specific string value they hold? In more d...
How to display the P value of the mediation with khb command?

How to display the P value of the mediation with khb command?

1:32 AM Data Cleaning Data management Data Processing
Hi all, Recently I read a paper published in JAMA Pediatrics(doi:10.1001/jamapediatrics.2019.1212), the authors provide the P value of the...
Sample size estimation for comparison of three proportions: Control, Treatment1 and Treatment2

Sample size estimation for comparison of three proportions: Control, Treatment1 and Treatment2

12:12 AM Data Cleaning Data management Data Processing
Dear StataList, How can I calculate the sample size requirements for proportions in 3 (three) groups, namely: Control, Treatment1, and Trea...
Random Effect Autocorrelation Test

Random Effect Autocorrelation Test

12:02 AM Data Cleaning Data management Data Processing
Dear Good People, I am currently shifting to using Random Effect for my data and I would like to know if there is a spesific command to ex...
Average calculation issues

Average calculation issues

Saturday, June 29, 2019 Data Cleaning Data management Data Processing
Hi there, I would like to calculate the average account receivable using netaccountsreceivable and lag_net_account_receivable. However, ...
Expression builder dialog

Expression builder dialog

8:22 PM Data Cleaning Data management Data Processing
Is there any way to make the expression builder dialog larger? The lists are too small to be usable and require constant scrolling both vert...
Python means no more calling RDBMSs to get the UTC offset

Python means no more calling RDBMSs to get the UTC offset

7:57 PM Data Cleaning Data management Data Processing
Updated my -tslog.ado-. See log file attached.
Panel Data with same values/data for independent variables across multiple countries

Panel Data with same values/data for independent variables across multiple countries

5:57 PM Data Cleaning Data management Data Processing
I am analyzing the impact of US monetary policy variables on capital flows to emerging markets and intend to use panel data analysis. I have...
Roommates' max expenditure with parents' educations

Roommates' max expenditure with parents' educations

4:32 PM Data Cleaning Data management Data Processing
Dear All, I was asked this question here . The data set is Code: * Example generated by -dataex-. To install: ssc install dataex clear in...
Combining local macros in Stata

Combining local macros in Stata

3:07 PM Data Cleaning Data management Data Processing
I am trying to create a loop that copies specific files (which have a specific identifier at the end of the filename) from a list of folders...
Blog entry on quickly setting up Python with Stata 16

Blog entry on quickly setting up Python with Stata 16

2:17 PM Data Cleaning Data management Data Processing
Here is my first blog entry on how to quickly set up Python with Stata 16 https://fintechprofessor.com/2019/06...with-stata-16/
Can Stata 16 frames be appended?

Can Stata 16 frames be appended?

1:07 PM Data Cleaning Data management Data Processing
Fellow Statalsters (especially StataCorp) Many thanks to StataCorp for Stata 16. The frames are a specially welcome addition, and I have b...
Mixed-effects logistic regression for panel data

Mixed-effects logistic regression for panel data

12:47 PM Data Cleaning Data management Data Processing
Hello, I am using mixed-effects logistic regression for panel data in STATA 15, and I was wondering if my commands are correct. My DV is a...
Ereturn Scalar on MI Estimate?

Ereturn Scalar on MI Estimate?

12:37 PM Data Cleaning Data management Data Processing
Hi All, I currently am trying to perform a bootstrap on mi estimate: logistic. However, when I run my code, I get the following error: B...
2x2 AB/BA crossover trial analysis resources/advice

2x2 AB/BA crossover trial analysis resources/advice

10:22 AM Data Cleaning Data management Data Processing
Hi all. I would like to conduct the analysis of a trial comparing two drugs (A and B) on reducing pain associated with a procedure. Subj...
Summarizing special character of string variable*

Summarizing special character of string variable*

7:52 AM Data Cleaning Data management Data Processing
Is there any command by which I can summarize special characters (e.g. *,-.) of string variable?
Observations in descriptive and multivariate analyses

Observations in descriptive and multivariate analyses

4:42 AM Data Cleaning Data management Data Processing
Hi, I am just writing to ask something about the observations in descriptive and multivariate analyses in my paper. Do I Need to make them i...
PCA vs MCA for index with survey weights

PCA vs MCA for index with survey weights

3:32 AM Data Cleaning Data management Data Processing
Dear All, I am trying to calculate a wealth index using Principal Component Analysis. The quintiles derived from it are to be used as prox...
Constrained systems of sfcross regressions!

Constrained systems of sfcross regressions!

2:47 AM Data Cleaning Data management Data Processing
Hi everyone, I'm trying to do something which I'm not sure is possible with Stata. Basically, I'm trying to replicate a pape...
mixed models xtreg xtmixed

mixed models xtreg xtmixed

2:17 AM Data Cleaning Data management Data Processing
Hi All, I have a question about xtreg and xtmixed. If I enter the following command I get this result. xtset interven2 xtreg difftot...
Different markers with rcapsym

Different markers with rcapsym

1:32 AM Data Cleaning Data management Data Processing
Hi, I would like to have 2 different markers for the starting points and the end points. So for example, the 07 starting score should be a...
Regarding the question of the spmatrix import comand

Regarding the question of the spmatrix import comand

Friday, June 28, 2019 Data Cleaning Data management Data Processing
i do a spmatrix import, while it Array i modify my matrix from the command of spmatrix export, so i am sure my matrix is correct because ...
How to drop duplicate ID observation series with different variable values

How to drop duplicate ID observation series with different variable values

5:47 PM Data Cleaning Data management Data Processing
Hi all, I hava an panel dataset for firms and stock returns between 2005 and 2015. However, for some observations (sorted by FirmID and Da...
appending a string and time variables

appending a string and time variables

2:07 PM Data Cleaning Data management Data Processing
Two of the variables in my dataset needs to be appended into a new variable. The first of represents a data in this format (string variable)...
Error Code r 601

Error Code r 601

12:37 PM Data Cleaning Data management Data Processing
Hello, I am trying to import an excel file into STATA but I receive the error code r 601. I am using the correct syntax and path location....
Problems with -collapse- command

Problems with -collapse- command

11:12 AM Data Cleaning Data management Data Processing
Hi all, I have a problem when I use the -collapse- command. In the following code every time I use the command -collapse- it does not matt...
power analysis after ttest

power analysis after ttest

10:07 AM Data Cleaning Data management Data Processing
I'm trying to import the means and stds from a two sample ttest into power twosample, but the power command seems to accept only typed-i...
xtqreg and reghdfe

xtqreg and reghdfe

9:52 AM Data Cleaning Data management Data Processing
Hello, My question can be summarized as... why does xtqreg and reghdfe produce similar results when my data set has large outliers on both...
How to control for something within a Diff in Diff Graph

How to control for something within a Diff in Diff Graph

9:02 AM Data Cleaning Data management Data Processing
Hello everybody, I am currently trying to create the usual Diff in Diff Graph e.g: Array My setting: I have panel data of about 4 mil...
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Latest Articles

Categories

  • CouchDb Skills
  • Data Analysis
  • Data Cleaning
  • Data management
  • Data Processing
  • Research Methodology

Popular Articles

  • How to drop random years from panel data?
    I have a panel data set, consisting of 125 countries, 36 years. I want to run an IV regression multible times and randomly drop 5 (of the 36...
  • Saving pointer matrixes using -mata matsave-
    I am relatively new to the use of pointers in Mata and have thusfar been impressed with their utility. Specific to this query, I have been...
  • instrumenting a binary endogenous regressor
    Hello, I am trying to run a model with a binary endogenous regressor. I am still learning econometrics so I am sorry if this may be a trivi...
  • "tsegen" by group
    Hi, I would like to calculate the moving average of _b_LogSize _b_LogBM _b_MOM12 _b_cons by months of the year over the last 10 years. For...
  • Fixed Effects for a Panel at a Coarser Level
    Hello, I want to include some fixed effects in my model that I believe are difficult to include so any advice on how exactly this can be d...
  • RDD rdrobust problem
    Dear all, I am researching the effect of grade retention on exam results (which can vary from 0 to 20) and I am using a RDD to research th...
  • Growth model - No convergence
    I would like to develop a latent growth model (LGM) with Stata. The point is to illustrate estimated effects of predictors by using Stata...
  • Nvidia Organizational Structure: functional and hybrid
    Nvidia is 7th largest company in the world with a market cap of USD 1 trillion. Due to the size and scope of its operations, it is difficult...
  • Getting values from second to last loop of a -while- loop
    Hi fellow Statalisters, I am using a -while- loop for a particular application, where I need to retrieve a particular value from the secon...
  • Using weights with xtheckman | xtheckman's fixed effects equivalent
    Hi, I am using six waves of the PSID to estimate several determinants (particularly wealth) of the wage equation and the selection equatio...

Recomended Articles

Powered by Blogger.

About Me

Mtenga Baltazar
View my complete profile

Blog Archive

  • ►  2024 (6)
    • ►  February (6)
  • ►  2023 (877)
    • ►  November (1)
    • ►  October (9)
    • ►  September (14)
    • ►  July (9)
    • ►  June (15)
    • ►  May (133)
    • ►  April (174)
    • ►  March (176)
    • ►  February (157)
    • ►  January (189)
  • ►  2022 (2201)
    • ►  December (181)
    • ►  November (180)
    • ►  October (198)
    • ►  September (182)
    • ►  August (182)
    • ►  July (194)
    • ►  June (174)
    • ►  May (167)
    • ►  April (181)
    • ►  March (186)
    • ►  February (170)
    • ►  January (206)
  • ►  2021 (7379)
    • ►  December (327)
    • ►  November (645)
    • ►  October (646)
    • ►  September (639)
    • ►  August (557)
    • ►  July (649)
    • ►  June (656)
    • ►  May (697)
    • ►  April (683)
    • ►  March (697)
    • ►  February (518)
    • ►  January (665)
  • ►  2020 (7956)
    • ►  December (653)
    • ►  November (659)
    • ►  October (598)
    • ►  September (654)
    • ►  August (660)
    • ►  July (682)
    • ►  June (683)
    • ►  May (708)
    • ►  April (692)
    • ►  March (698)
    • ►  February (638)
    • ►  January (631)
  • ▼  2019 (9458)
    • ►  December (601)
    • ►  November (643)
    • ►  October (650)
    • ►  September (637)
    • ►  August (645)
    • ►  July (681)
    • ▼  June (654)
      • Taking the average of observations within a specif...
      • Create a two-way line graph/bar chart
      • interaction effects: Poisson or Double-limit Tobit
      • Estimation output for Svy: meologit and melogit co...
      • How to filter dates within an interval from a set ...
      • how to get x-standardized coefficient in logistic ...
      • reshape - wide connections
      • Cox regression assumption
      • SEM, error coefficients output.
      • New Stata 16 versions of dolog, dotex and dologx o...
      • Gravity model of migration: ppml vs. ppmlhdfe
      • Probit Marginal Effect
      • Recoding in panel data
      • Propensity Score matching: how to define the depen...
      • Create fiscal years from years and months
      • Values of multiple columns in one column using a loop
      • Variable Labels
      • Problems creating Herfindahl-Hirschman Index
      • Taking the average of observations within a specif...
      • Code of Patell Z-statistic
      • renaming variables using values they hold
      • How to display the P value of the mediation with k...
      • Sample size estimation for comparison of three pro...
      • Random Effect Autocorrelation Test
      • Average calculation issues
      • Expression builder dialog
      • Python means no more calling RDBMSs to get the UTC...
      • Panel Data with same values/data for independent v...
      • Roommates' max expenditure with parents' educations
      • Combining local macros in Stata
      • Blog entry on quickly setting up Python with Stata 16
      • Can Stata 16 frames be appended?
      • Mixed-effects logistic regression for panel data
      • Ereturn Scalar on MI Estimate?
      • 2x2 AB/BA crossover trial analysis resources/advice
      • Summarizing special character of string variable*
      • Observations in descriptive and multivariate analyses
      • PCA vs MCA for index with survey weights
      • Constrained systems of sfcross regressions!
      • mixed models xtreg xtmixed
      • Different markers with rcapsym
      • Regarding the question of the spmatrix import comand
      • How to drop duplicate ID observation series with d...
      • appending a string and time variables
      • Error Code r 601
      • Problems with -collapse- command
      • power analysis after ttest
      • xtqreg and reghdfe
      • How to control for something within a Diff in Diff...
      • Regression
      • Share of observations with repeated pairwise ids
      • Can SAS do ordered logit regressions with panel data?
      • Testing for serial correlation --> Panel Data
      • System GMM Hansen Test Problem
      • The command "vce(cluster panel_id)"
      • multilevel mediation analysis with dichotomous dep...
      • graph hbar - labstyle-Option shifts label into axis
      • Converting Date format
      • (Two-Way) Fixed Effects Model: (Too) Many Post-Tre...
      • One-sided t test regression
      • Estimate GARCH Model from Time Series
      • How to create dummy variable with condition that i...
      • Calculating changes in a variable over irregular i...
      • Birth Cohorts
      • Herfindahl-Hirschman Index, command ignores existi...
      • Getting the underlying data from LROC
      • How to run the rank-based and sign-based variance-...
      • Poisson pseudo maximum-likelihood in a Diff-in-Dif...
      • Function to count categorical data
      • help for line graph
      • Annual stock return
      • brant can only be used after ologit
      • Is it possible to use two datasets at once?
      • Agreement (kappa)
      • Hypothetical default rate
      • Check if coefficient from two different reghdfe re...
      • SUR-like technique for same outcome but multiple p...
      • Drop rows that are empty in all variables
      • mcp error "There was a problem executing -margins-."
      • fit a quadratic time trend using rangestat
      • Calculating joint significance
      • Graph bar colors by group
      • Is collinearity a problem here?
      • Converting string to date without any missing values
      • putdocx table - formatting numerical data
      • Generate variable: optimisation based on constrain...
      • testing mixed model assumptions
      • obtainning negative values when calculating elapse...
      • Reference to other rows
      • Herfindahl-Index
      • Can I ignore bins with high p-values
      • WDI data
      • Days between two dates, separated by year.
      • test pointwise distance with measurement error
      • New version of descsave on SSC
      • New version of vallabsave on SSC
      • Clustering standard errors with teffects ipwra
      • Assessing differences between ordinal ranks based ...
      • Combining data
      • Resetting mlibs in running Stata
    • ►  May (1034)
    • ►  April (1079)
    • ►  March (1122)
    • ►  February (876)
    • ►  January (836)
  • ►  2018 (931)
    • ►  December (692)
    • ►  November (239)

© BJ Data Tech Solution | Theme by Rifki.id | Premium Blogger Templates | PBT | Powered by Blogger |-| About | Privacy Policy | Sitemap | Contact | Disclaimer