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
Interaction variable (using dummy and date variables)

Interaction variable (using dummy and date variables)

Sunday, July 31, 2022 Data Cleaning Data management Data Processing
Hello everyone, I am trying to create an interaction variable by multiplying a dummy variable (0,1) with a date variable. I am thinking th...
regress help requested

regress help requested

7:23 PM Data Cleaning Data management Data Processing
I have a dataset in which all the dependent variables are for the years 2020 & 2021. I have 4 dependent variables, which are used in 4 d...
Subgroup analysis using Metan command

Subgroup analysis using Metan command

6:23 PM Data Cleaning Data management Data Processing
Dear group, Stata novice here trying to create meta-analysis forest plots using Stata. I am really struggling to figure out how to do sub...
Confidence intervals for percent change

Confidence intervals for percent change

5:23 PM Data Cleaning Data management Data Processing
Dear all, This question might sound stupid but I can't find the way to calculate 95%CI for percent change between frequencies (but not...
A loop problem

A loop problem

3:23 PM Data Cleaning Data management Data Processing
Dear all: I have a problem when dealing with my data, for one variable. There is only "1","2", and "0", I wa...
Estimated parameters more than the observations

Estimated parameters more than the observations

2:23 PM Data Cleaning Data management Data Processing
Hello everyone, I am writing my Bachelor's thesis. I am doing a time series analysis and using a VECM model. I have noticed that the ...
Unbalanced covariates when the treatment variable has 3 levels

Unbalanced covariates when the treatment variable has 3 levels

1:23 AM Data Cleaning Data management Data Processing
Hello, I have performed covariate balancing test and after seeing the result I am confused. Could you please suggest me how to correct the u...
Looping with paired values but not for every variable

Looping with paired values but not for every variable

Saturday, July 30, 2022 Data Cleaning Data management Data Processing
Hi, let's say I want to create a series of dummy variables as follows: Code: order work_deg_sector*,sequential egen dummy1_1970 = an...
"[" invalid command name error while running simple linear regression in STATA

"[" invalid command name error while running simple linear regression in STATA

10:23 PM Data Cleaning Data management Data Processing
Hi, I am trying to run the linear regression command (reg dep independent variables) in STATA but apparently, it gives an error when I exe...
bar graph

bar graph

6:23 PM Data Cleaning Data management Data Processing
Dear All, Suppose that I have this data set: Code: * Example generated by -dataex-. For more info, type help dataex clear input str63 Jour...
type mismatch error in declaring a function of a class

type mismatch error in declaring a function of a class

5:23 PM Data Cleaning Data management Data Processing
Dear Statalist, I have one question regarding the mata programming. I couldn't figure out why mata reports an error " type mismat...
traj plugin

traj plugin

3:23 PM Data Cleaning Data management Data Processing
Dear all I would like to run group based trajectory modelling in STATA. Please advise how I can download this plugin and install in a VDI....
Modeling a skewed categorical (ordinal) variable

Modeling a skewed categorical (ordinal) variable

2:23 PM Data Cleaning Data management Data Processing
Hi Statalist, The response scale of my dependent variable is structured as "Not at all" "To a small extent" "To a...
Generate data set using cross tabulation cell frequency

Generate data set using cross tabulation cell frequency

Friday, July 29, 2022 Data Cleaning Data management Data Processing
Dear all, Is it possible to generate data set include two variable using cross tabulation cell frequency exposed unexposed Total c...
realise a(n)=a(n-1)*b(n) in stata

realise a(n)=a(n-1)*b(n) in stata

5:23 PM Data Cleaning Data management Data Processing
Dear all: Sorry for bothering you. I have a problem when I use stata, could you give me some adive? So, I am using time series data, tr an...
How to extract selected features from LASSO in stata

How to extract selected features from LASSO in stata

4:23 PM Data Cleaning Data management Data Processing
Hi, I have somewhat of a basic question. I am running the lasso linear command and wanted to use that to extract the selected variables an...
Help Extracting Year from Date

Help Extracting Year from Date

4:23 PM Data Cleaning Data management Data Processing
Hello everyone, I'm brand new to learning STATA, so I apologize if I am omitting any pertinent information. I have looked through previo...
Logical operation using generate

Logical operation using generate

3:23 PM Data Cleaning Data management Data Processing
I have a database with three variables: 27 states, 10 years and a GDP for each year. I want to generate a variable with the resulting logica...
Logic operations with generate

Logic operations with generate

2:23 PM Data Cleaning Data management Data Processing
I have a database with three variables: 27 states, 10 years and a GDP for each year. I want to generate a variable with the resulting logica...
Quade's test (non-parametric ANCOVA)

Quade's test (non-parametric ANCOVA)

Thursday, July 28, 2022 Data Cleaning Data management Data Processing
Hello Stata users I wondered if you could inform me whether STATA performs the nonparametric ANCOVA test (i.e., Quade's test). I checke...
Identifying the first & last non-missing AdjClose (i.e. observation) by year for each group

Identifying the first & last non-missing AdjClose (i.e. observation) by year for each group

5:23 PM Data Cleaning Data management Data Processing
I have 1200 companies that are identified by CIQ_IDs. I also have an id variable within each CIQ_ID, which are numbered 1 through approximat...
How to collate multiple, individual regression outputs

How to collate multiple, individual regression outputs

4:23 PM Data Cleaning Data management Data Processing
Looking for some help on the following: I want to tabulate the univariate association of 8 variables (v1-v8) with an outcome (outcome). F...
How to Mark the Demoted Students Out in Long Format Data in Stata?

How to Mark the Demoted Students Out in Long Format Data in Stata?

4:23 PM Data Cleaning Data management Data Processing
Hello, Folks, I have a small dataset like this, clear input byte (id year gr kg5 k68 k912) 1 1 0 0 0 0 1 2 1 0 0 0 1 3 2 0 0 0 1 4 3 ...
Misleading median?

Misleading median?

3:23 PM Data Cleaning Data management Data Processing
Hi everyone! I'm doing research on how real estate values impact corporate savings. I have computed all the variables however I notice...
First difference of a squared term

First difference of a squared term

2:23 PM Data Cleaning Data management Data Processing
Dear all, I am working with a panel dataset and am trying to run a non-linear (quadratic) regression using the first difference operator (...
Store significant variables in Logistic Regression

Store significant variables in Logistic Regression

1:23 AM Data Cleaning Data management Data Processing
Hi, I am running a logistic regression with about 30 variables, most of which are categorical variables, and I would like to run a command...
need to count experiences of employee with respect to year

need to count experiences of employee with respect to year

Wednesday, July 27, 2022 Data Cleaning Data management Data Processing
Hi experts I want to count the experiences of employees (i.e., personalID), with respect to years such as if they worked in 2001 with compa...
estout: what is the stats label for LR chi2 in logistic regression

estout: what is the stats label for LR chi2 in logistic regression

9:23 PM Data Cleaning Data management Data Processing
I run a logistic regression and would like to print out LR Chi2 statistics using Code: estout Code: eststo: quietly logit y x1 x2 Cod...
intercation term same value as main variable

intercation term same value as main variable

3:23 PM Data Cleaning Data management Data Processing
Dear all, Since I think it is more appropriate to ask this question in a different topic, I created a new topic. I was wondering what it ...
Bootstrap local projections impulse responses/historical decompositions

Bootstrap local projections impulse responses/historical decompositions

3:23 PM Data Cleaning Data management Data Processing
Dear Statalisters, I am trying to bootstrap the impulse response function that I obtain from a local projection. The tricky bit is that th...
Multinomial Logit and estout

Multinomial Logit and estout

3:23 PM Data Cleaning Data management Data Processing
I am using estout (SSC) on Stata 16.1 to tabulate the results of a multinomial logit regression. I would like to label each column with the ...
Loading user table to ICIO for GVC analyses

Loading user table to ICIO for GVC analyses

3:23 PM Data Cleaning Data management Data Processing
Hi, I am using the long-run WIOD table for GVC analysis using the STATA command icio. One needs to load the IO table using the icio_load ...
Calling in SQL through ODBC--String variables & choosing data

Calling in SQL through ODBC--String variables & choosing data

2:23 PM Data Cleaning Data management Data Processing
Hello Statalist , I am using Stata 17 on Windows. I am new to the ODBC process and I am trying to call in a large dataset from SQL. The da...
Does anyone know a clever way to add R2 to "graph twoway lfit"?

Does anyone know a clever way to add R2 to "graph twoway lfit"?

Tuesday, July 26, 2022 Data Cleaning Data management Data Processing
I am using the below code to fit a linear regression line, Private_Hospital is a binary variable graph twoway lfit Private_Hospital_1 Diff...
Return how many variables were overwritten (because they had the same name) in a merge?

Return how many variables were overwritten (because they had the same name) in a merge?

4:23 PM Data Cleaning Data management Data Processing
If I merge two datasets and two variables in the datasets had the same name, how can I get Stata to tell me how many variables (and which) w...
Ordering Multiples variables

Ordering Multiples variables

4:23 PM Data Cleaning Data management Data Processing
I am having a dataset in wide format for almost 80 years for 100 countries for about 200 variables. Variables bring the 3-letter ISO country...
Help with selecting type of ANOVA

Help with selecting type of ANOVA

4:23 PM Data Cleaning Data management Data Processing
Hello statalisters, I am trying to perform an analysis on a dataset that contains information on patient values (r2-r4) from 4 different t...
Calculation of Blau Index / Simpson Index

Calculation of Blau Index / Simpson Index

4:23 PM Data Cleaning Data management Data Processing
Hello everyone! I am trying to analyze the degree of national and gender diversity of TMTs of german companies over a period of 10 years. ...
expand data

expand data

3:23 PM Data Cleaning Data management Data Processing
Dear Stata users, I have a panel database of countries observed on a yearly basis from 2004 to 2018, I want to expand the observations to ...
treatment turns on and off

treatment turns on and off

Monday, July 25, 2022 Data Cleaning Data management Data Processing
Hello everyone, I hope you are very well, I have some monthly panel data at the state level, in this database I have a type of treatment t...
How to convert my FE-IV model (with intuitions borrowed from the RDD literature) into STATA language - Is IVREGHDFE the one?

How to convert my FE-IV model (with intuitions borrowed from the RDD literature) into STATA language - Is IVREGHDFE the one?

6:23 PM Data Cleaning Data management Data Processing
Hello dear stata friends! I am having some confusion regarding the implementation of my I ndividual-Fixed Effects IV Design in Stata. This...
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)
      • Interaction variable (using dummy and date variables)
      • regress help requested
      • Subgroup analysis using Metan command
      • Confidence intervals for percent change
      • A loop problem
      • Estimated parameters more than the observations
      • Unbalanced covariates when the treatment variable ...
      • Looping with paired values but not for every variable
      • "[" invalid command name error while running simpl...
      • bar graph
      • type mismatch error in declaring a function of a c...
      • traj plugin
      • Modeling a skewed categorical (ordinal) variable
      • Generate data set using cross tabulation cell freq...
      • realise a(n)=a(n-1)*b(n) in stata
      • How to extract selected features from LASSO in stata
      • Help Extracting Year from Date
      • Logical operation using generate
      • Logic operations with generate
      • Quade's test (non-parametric ANCOVA)
      • Identifying the first & last non-missing AdjClose ...
      • How to collate multiple, individual regression out...
      • How to Mark the Demoted Students Out in Long Forma...
      • Misleading median?
      • First difference of a squared term
      • Store significant variables in Logistic Regression
      • need to count experiences of employee with respect...
      • estout: what is the stats label for LR chi2 in log...
      • intercation term same value as main variable
      • Bootstrap local projections impulse responses/hist...
      • Multinomial Logit and estout
      • Loading user table to ICIO for GVC analyses
      • Calling in SQL through ODBC--String variables & ch...
      • Does anyone know a clever way to add R2 to "graph ...
      • Return how many variables were overwritten (becaus...
      • Ordering Multiples variables
      • Help with selecting type of ANOVA
      • Calculation of Blau Index / Simpson Index
      • expand data
      • treatment turns on and off
      • How to convert my FE-IV model (with intuitions bor...
      • How to Correct Data Errors in Longitudinal Format ...
      • Editing a spatial weighting matrix in neighbor lis...
      • Run Seemingly unrelated regression (SUREG) with on...
      • getting multiple variables information in one vari...
      • Adding baseline variables to a linear mixed model
      • Strange Clustering Result from rdrobust
      • Strange Clustering Results from rdrobust
      • Generating a new variable year-1/year+1
      • Proportion surviving after 5 years | stcox/stcurve
      • sigma_u=0 in random effects model
      • [Q] NRI package for survival analysis
      • Create Percent table
      • How to Distinctively Remove the Observations with ...
      • Merge if variable name is similar
      • How to Correctly Create a Variable to Indicate if ...
      • Connect X and Y axis
      • Stata interpreting the same string value as differ...
      • Two-way scatter plot title and axis title
      • Ripley's spatial K-function: Generating clusters b...
      • Need help to add observations for each category.
      • Meta - Forest plot - How do we get high-res figure...
      • how to combine (as in overlap) multiple catplots?
      • Graph export to a specific folder
      • Multiple Regression
      • Interpreting regression results if some clusters a...
      • Help with specifying a multi-line local
      • sparklines (or similar) with varying y-axis values...
      • Data format reshape
      • ANCOVA - planned contrast tests code
      • Eventstudy using either the estudy or eventstudy2 ...
      • Validity check for South African identity numbers ...
      • Difference between two dates in days
      • Two-way graph for panel data
      • Two-way graph for panel data
      • Model Validation Using Stata
      • Finding the totals of string variables
      • Differences in correlation coefficients produced b...
      • eventstudy2: why my command neglects results of Mo...
      • Revenue Growth Trend
      • Loop for collapse + save file
      • Looping over many variables to create new variable...
      • Fixed or Random Effect Model in Cross -Sectional data
      • Undo for "save" command
      • Imposing nonlinear constraint in moptimize()
      • correlation analysis
      • Getting error while creating interaction dummy wit...
      • Merging issue with using data since the variables ...
      • Creating Dummy Variable r(109) error
      • Ex-post MDE
      • Renaming the variables by parsing a string
      • did_multiplegt option average_effect() incorrectly...
      • Help with loop
      • Exchange axes of tabstat
      • Difference in Difference Regression using xtdidreg...
      • How to drop some observations based on tab results ?
      • How to split variable that does not have spaces
      • Combining two time variables (Year & Period of yea...
      • Panel specific ar vs common ar
      • How can I correctly remove the missing values with...
    • ►  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)
    • ►  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